Class CssBackgroundUtils
java.lang.Object
com.itextpdf.styledxmlparser.css.util.CssBackgroundUtils
Utilities class for CSS background parsing.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets background property name corresponding to its type.parseBackgroundRepeat
(String value) Parses the background repeat string value.Resolves the background property type using it's value.
-
Method Details
-
parseBackgroundRepeat
Parses the background repeat string value.- Parameters:
-
value
- the string which stores the background repeat value - Returns:
-
the background repeat as a
BackgroundRepeat.BackgroundRepeatValue
instance
-
getBackgroundPropertyNameFromType
public static String getBackgroundPropertyNameFromType(CssBackgroundUtils.BackgroundPropertyType propertyType) Gets background property name corresponding to its type.- Parameters:
-
propertyType
- background property type - Returns:
- background property name
-
resolveBackgroundPropertyType
public static CssBackgroundUtils.BackgroundPropertyType resolveBackgroundPropertyType(String value) Resolves the background property type using it's value.- Parameters:
-
value
- the value - Returns:
- the background property type value
-