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 newMediaExpression
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(MediaDeviceDescription deviceDescription) Tries to match aMediaDeviceDescription
.private static float
parseAbsoluteLength
(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 newMediaExpression
instance.- Parameters:
feature
- the featurevalue
- the value
-
-
Method Details
-
matches
Tries to match aMediaDeviceDescription
.- Parameters:
deviceDescription
- the device description- Returns:
- true, if successful
-
parseAbsoluteLength
Parses an absolute length.- Parameters:
value
- the absolute length as aString
value- Returns:
- the absolute length as a
float
value
-