public final class CssGradientUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isCssLinearGradientValue(String cssValue)
Checks whether the provided value is a linear gradient or repeating linear gradient function.
|
static StrategyBasedLinearGradientBuilder |
parseCssLinearGradient(String cssGradientValue,
float emValue,
float remValue)
Parses the provided linear gradient or repeating linear gradient function
|
public static boolean isCssLinearGradientValue(String cssValue)
cssValue - the value to checktrue if the provided argument is the linear gradient
or repeating linear gradient function (even if the arguments list is invalid)public static StrategyBasedLinearGradientBuilder parseCssLinearGradient(String cssGradientValue, float emValue, float remValue)
cssGradientValue - the value to parseemValue - the current element's em valueremValue - the current element's rem valueStrategyBasedLinearGradientBuilder constructed from the parsed linear gradient
or null if the argument value is not a linear gradient or repeating linear gradient
functionStyledXMLParserException - if the provided argument is a linear gradient
or repeating linear gradient function, but the arguments list is invalidCopyright © 1998–2024 Apryse Group NV. All rights reserved.