Class MediaFeature
- java.lang.Object
-
- com.itextpdf.styledxmlparser.css.media.MediaFeature
-
public final class MediaFeature extends java.lang.Object
Class that bundles all the media feature values.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ASPECT_RATIO
Value: <ratio>
Media: visual, tactile
Accepts min/max prefixes: yes
Describes the aspect ratio of the targeted display area of the output device.static java.lang.String
COLOR
Value: <integer>
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per color component of the output device.static java.lang.String
COLOR_INDEX
Value: <integer>
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device.static java.lang.String
GRID
Value: <mq-boolean> which is an <integer> 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 java.lang.String
HEIGHT
Value: <length>
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 java.lang.String
MONOCHROME
Value: <integer>
Media: visual
Accepts min/max prefixes: yes
Indicates the number of bits per pixel on a monochrome (greyscale) device.static java.lang.String
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.static java.lang.String
RESOLUTION
Value: <resolution>
Media: bitmap
Accepts min/max prefixes: yes
Indicates the resolution (pixel density) of the output device.static java.lang.String
SCAN
Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices.static java.lang.String
WIDTH
Value: <length>
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).
-
Constructor Summary
Constructors Modifier Constructor Description private
MediaFeature()
Creates a newMediaFeature
instance.
-
-
-
Field Detail
-
COLOR
public static final java.lang.String COLOR
Value: <integer>
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:
- Constant Field Values
-
COLOR_INDEX
public static final java.lang.String COLOR_INDEX
Value: <integer>
Media: visual
Accepts min/max prefixes: yes
Indicates the number of entries in the color look-up table for the output device.- See Also:
- Constant Field Values
-
ASPECT_RATIO
public static final java.lang.String ASPECT_RATIO
Value: <ratio>
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:
- Constant Field Values
-
GRID
public static final java.lang.String GRID
Value: <mq-boolean> which is an <integer> 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:
- Constant Field Values
-
SCAN
public static final java.lang.String SCAN
Value: progressive | interlace
Media: tv
Accepts min/max prefixes: no
Describes the scanning process of television output devices.- See Also:
- Constant Field Values
-
ORIENTATION
public static final java.lang.String 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:
- Constant Field Values
-
MONOCHROME
public static final java.lang.String MONOCHROME
Value: <integer>
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:
- Constant Field Values
-
HEIGHT
public static final java.lang.String HEIGHT
Value: <length>
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:
- Constant Field Values
-
RESOLUTION
public static final java.lang.String RESOLUTION
Value: <resolution>
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:
- Constant Field Values
-
WIDTH
public static final java.lang.String WIDTH
Value: <length>
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:
- Constant Field Values
-
-
Constructor Detail
-
MediaFeature
private MediaFeature()
Creates a newMediaFeature
instance.
-
-