@Immutable public final class CSSRectHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static CSSRect |
getAsRect(String sCSSValue)
Interpret the passed value as a CSS rectangle and convert it to a
CSSRect. |
static String[] |
getRectValues(String sCSSValue)
Get all the values from within a CSS rectangle definition.
|
static boolean |
isRectValue(String sCSSValue)
Check if the passed value is CSS rectangle definition or not.
|
public static boolean isRectValue(@Nullable String sCSSValue)
rect(a,b,c,d)) and the old syntax (
rect(a b c d)).sCSSValue - The value to check. May be null.true if the passed value is a rect value,
false if not@Nullable public static String[] getRectValues(@Nullable String sCSSValue)
sCSSValue - The CSS values to check. May be null.null if the passed String is not a CSS rectangle. An
array with 4 Strings if the passed value is a CSS rectangle.Copyright © 2014–2022 Philip Helger. All rights reserved.