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