Class BackgroundPositionShorthandResolver
java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.shorthand.impl.BackgroundPositionShorthandResolver
- All Implemented Interfaces:
IShorthandResolver
IShorthandResolver
implementation for background-position.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
checkProperty
(Map<String, String> resolvedProps, String key) private static boolean
parseCenter
(String positionValue, Map<String, String> values) private static boolean
parseHorizontal
(String positionValue, Map<String, String> values) private static boolean
private static boolean
parseNonNumericValue
(String positionValue, Map<String, String> values) private static boolean
private static boolean
private static boolean
private static boolean
parseVertical
(String positionValue, Map<String, String> values) resolveShorthand
(String shorthandExpression) Resolves a shorthand expression.private static BackgroundPositionShorthandResolver.BackgroundPositionType
typeOfValue
(String value) private static void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
POSITION_VALUES_MAX_COUNT
private static final int POSITION_VALUES_MAX_COUNT- See Also:
-
-
Constructor Details
-
BackgroundPositionShorthandResolver
public BackgroundPositionShorthandResolver()
-
-
Method Details
-
resolveShorthand
Resolves a shorthand expression.- Specified by:
resolveShorthand
in interfaceIShorthandResolver
- Parameters:
shorthandExpression
- the shorthand expression- Returns:
- a list of CSS declaration
-
checkProperty
-
updateValue
-
parsePositionShorthand
-
parseNumericValue
-
parseShortNumericValue
-
parseLargeNumericValue
-
parseNonNumericValue
-
parseHorizontal
-
parseVertical
-
parseCenter
-
typeOfValue
-