Class MediaExpression
java.lang.Object
com.itextpdf.styledxmlparser.css.media.MediaExpression
Class that bundles all the media expression properties.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMediaExpression(String feature, String value) Creates a newMediaExpressioninstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(MediaDeviceDescription deviceDescription) Tries to match aMediaDeviceDescription.private static floatparseAbsoluteLength(String value) Parses an absolute length.
-
Field Details
-
DEFAULT_FONT_SIZE
private static final float DEFAULT_FONT_SIZEThe default font size.- See Also:
-
minPrefix
private boolean minPrefixIndicates if there's a "min-" prefix. -
maxPrefix
private boolean maxPrefixIndicates if there's a "max-" prefix. -
feature
The feature. -
value
The value.
-
-
Constructor Details
-
MediaExpression
Creates a newMediaExpressioninstance.- Parameters:
feature- the featurevalue- the value
-
-
Method Details
-
matches
Tries to match aMediaDeviceDescription.- Parameters:
deviceDescription- the device description- Returns:
- true, if successful
-
parseAbsoluteLength
-