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 check
true
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 parse
emValue
- the current element's em value
remValue
- the current element's rem value
StrategyBasedLinearGradientBuilder
constructed from the parsed linear gradient or null
if the argument value is not a linear gradient or repeating linear gradient function
StyledXMLParserException
- if the provided argument is a linear gradient or repeating linear gradient function, but the arguments list is invalid
Copyright © 1998–2023 iText Group NV. All rights reserved.