Class CssBackgroundUtils
java.lang.Object
com.itextpdf.styledxmlparser.css.util.CssBackgroundUtils
Utilities class for CSS background parsing.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
CssBackgroundUtils
private CssBackgroundUtils()Creates a newCssBackgroundUtils
instance.
-
-
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
Resolves the background property type using it's value.- Parameters:
value
- the value- Returns:
- the background property type value
-