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.Loggerprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancheckProperty(Map<String, String> resolvedProps, String key) private static booleanparseCenter(String positionValue, Map<String, String> values) private static booleanparseHorizontal(String positionValue, Map<String, String> values) private static booleanprivate static booleanparseNonNumericValue(String positionValue, Map<String, String> values) private static booleanprivate static booleanprivate static booleanprivate static booleanparseVertical(String positionValue, Map<String, String> values) resolveShorthand(String shorthandExpression) Resolves a shorthand expression.private static BackgroundPositionShorthandResolver.BackgroundPositionTypetypeOfValue(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:
resolveShorthandin interfaceIShorthandResolver- Parameters:
shorthandExpression- the shorthand expression- Returns:
- a list of CSS declaration
-
checkProperty
-
updateValue
-
parsePositionShorthand
-
parseNumericValue
-
parseShortNumericValue
-
parseLargeNumericValue
-
parseNonNumericValue
-
parseHorizontal
-
parseVertical
-
parseCenter
-
typeOfValue
-