Class CssBackgroundUtils
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.util.CssBackgroundUtils
-
public final class CssBackgroundUtils extends java.lang.ObjectUtilities class for CSS background parsing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCssBackgroundUtils.BackgroundPropertyTypeEnum for background related properties.
-
Constructor Summary
Constructors Modifier Constructor Description privateCssBackgroundUtils()Creates a newCssBackgroundUtilsinstance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetBackgroundPropertyNameFromType(CssBackgroundUtils.BackgroundPropertyType propertyType)Gets background property name corresponding to its type.static BackgroundRepeat.BackgroundRepeatValueparseBackgroundRepeat(java.lang.String value)Parses the background repeat string value.static CssBackgroundUtils.BackgroundPropertyTyperesolveBackgroundPropertyType(java.lang.String value)Resolves the background property type using it's value.
-
-
-
Constructor Detail
-
CssBackgroundUtils
private CssBackgroundUtils()
Creates a newCssBackgroundUtilsinstance.
-
-
Method Detail
-
parseBackgroundRepeat
public static BackgroundRepeat.BackgroundRepeatValue parseBackgroundRepeat(java.lang.String value)
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 java.lang.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(java.lang.String value)
Resolves the background property type using it's value.- Parameters:
value- the value- Returns:
- the background property type value
-
-