Class MediaFeature
java.lang.Object
com.itextpdf.styledxmlparser.css.media.MediaFeature
Class that bundles all the media feature values.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device.static final String
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device.static final String
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device.static final String
Value:which is an that can only have the 0 and 1 value.
Media: all
Accepts min/max prefixes: no
Determines whether the output device is a grid device or a bitmap device.static final String
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer).static final String
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device.static final String
Value: landscape | portrait
Media: visual
Accepts min/max prefixes: no
Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode.static final String
Value:
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device.static final String
Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices.static final String
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The width media feature describes the width of the rendering surface of the output device (such as the width of the document window, or the width of the page box on a printer). -
Method Summary
-
Field Details
-
COLOR
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device. If the device is not a color device, this value is zero.- See Also:
-
COLOR_INDEX
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device.- See Also:
-
ASPECT_RATIO
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device. This value consists of two positive integers separated by a slash ("/") character. This represents the ratio of horizontal pixels (first term) to vertical pixels (second term).- See Also:
-
GRID
Value:which is an that can only have the 0 and 1 value.
Media: all
Accepts min/max prefixes: no
Determines whether the output device is a grid device or a bitmap device. If the device is grid-based (such as a TTY terminal or a phone display with only one font), the value is 1. Otherwise it is zero.- See Also:
-
SCAN
Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices.- See Also:
-
ORIENTATION
Value: landscape | portrait
Media: visual
Accepts min/max prefixes: no
Indicates whether the viewport is in landscape (the display is wider than it is tall) or portrait (the display is taller than it is wide) mode.- See Also:
-
MONOCHROME
Value:
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device. If the device isn't monochrome, the device's value is 0.- See Also:
-
HEIGHT
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The height media feature describes the height of the output device's rendering surface (such as the height of the viewport or of the page box on a printer).- See Also:
-
RESOLUTION
Value:
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device. The resolution may be specified in either dots per inch (dpi) or dots per centimeter (dpcm).- See Also:
-
WIDTH
Value:
Media: visual, tactile
Accepts min/max prefixes: yes
The width media feature describes the width of the rendering surface of the output device (such as the width of the document window, or the width of the page box on a printer).- See Also:
-