Class CssBackgroundUtils
java.lang.Object
com.itextpdf.styledxmlparser.css.util.CssBackgroundUtils
Utilities class for CSS background parsing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for background related properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets 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.BackgroundRepeatValueinstance
-
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
-