Enum Configuration.MediaFeature
- All Implemented Interfaces:
Serializable
,Comparable<Configuration.MediaFeature>
,java.lang.constant.Constable
- Enclosing class:
Configuration
An enum containing media feature constants.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCSS Media Feature (Media Queries Level 4) describing whether any available input mechanism allows the user to hover over elements.CSS Media Feature (Media Queries Level 4) describing whether any available input mechanism is a pointing device, and if so, how accurate is it.CSS 3 Media Feature describing the aspect ratio of the page content.CSS 3 Media Feature describing the number of bits per color component.CSS Media Feature (Media Queries Level 4) describing the approximate range of colors that are supported by the UA and output device.CSS 3 Media Feature describing the number of entries in the color lookup table.CSS 3 Media Feature describing the aspect ratio of the page.CSS 3 Media Feature describing the height of the page.CSS 3 Media Feature describing the width of the page.CSS Media Feature (Media Queries Level 5) representing how a web application is being presented within the context of an OS.CSS Media Feature (Media Queries Level 5) representing the combination of max brightness, color depth, and contrast ratio that are supported by the user agent and output device.CSS Media Feature (Media Queries Level 5) that is used to query the characteristics of the user's display so the author can adjust the style of the document.CSS Media Feature (Media Queries Level 5) indicates whether the user-agent enforces a limited color palette.CSS 3 Media Feature defining whether the output is grid-based.CSS 3 Media Feature height of page content.CSS Media Feature (Media Queries Level 5) that describes the number of logical segments of the viewport in the horizontal direction.CSS Media Feature (Media Queries Level 4) describing whether the primary input mechanism allows the user to hover over elements.CSS Media Feature (Media Queries Level 5) indicating whether the content is displayed normally, or whether colors have been inverted.CSS 3 Media Feature describing the number of bits per pixel in a monochrome frame buffer.CSS Media Feature (Media Queries Level 5) allowing authors to know whether the user agent is providing obviously discoverable navigation controls as part of its user interface.CSS 3 Media Feature describing the page orientation.CSS Media Feature (Media Queries Level 4) describing the behavior of the device when content overflows the initial containing block in the block axis.CSS Media Feature (Media Queries Level 4) describing the behavior of the device when content overflows the initial containing block in the inline axis.CSS Media Feature (Media Queries Level 4) describing whether the primary input mechanism is a pointing device, and if so, how accurate is it.CSS Media Feature (Media Queries Level 5) reflecting the user's desire that the page use a light or dark color theme.CSS Media Feature (Media Queries Level 5) used to detect if the user has requested more or less contrast in the page.CSS Media Feature (Media Queries Level 5) used to detect if the user has a preference for being served alternate content that uses less data for the page to be rendered.CSS Media Feature (Media Queries Level 5) used to detect if the user has requested the system minimize the amount of animation or motion it uses.CSS Media Feature (Media Queries Level 5) used to detect if the user has requested the system minimize the amount of transparent or translucent layer effects it uses.CSS 3 Media Feature describing the resolution of the output device.CSS Media Feature (Media Queries Level 4) describing the scanning process of some output devices.CSS Media Feature (Media Queries Level 5) used to query whether scripting languages, such as JavaScript, are supported on the current document.CSS Media Feature (Media Queries Level 5) used to query the ability of the output device to modify the appearance of content once it has been rendered.CSS Media Feature (Media Queries Level 5) that describes the number of logical segments of the viewport in the vertical direction.CSS Media Feature (Media Queries Level 5) describing the approximate range of colors that are supported by the UA and output device's video plane.CSS Media Feature (Media Queries Level 5) representing the combination of max brightness, color depth, and contrast ratio that are supported by the UA and output device's video plane.CSS 3 Media Feature width of page content. -
Method Summary
Modifier and TypeMethodDescriptionstatic Configuration.MediaFeature
Returns the enum constant of this type with the specified name.static Configuration.MediaFeature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ANY_HOVER
CSS Media Feature (Media Queries Level 4) describing whether any available input mechanism allows the user to hover over elements.
The default value is "none".
-
ANY_POINTER
CSS Media Feature (Media Queries Level 4) describing whether any available input mechanism is a pointing device, and if so, how accurate is it.
The default value is "none".
-
ASPECT_RATIO
CSS 3 Media Feature describing the aspect ratio of the page content.
By default, this value is computed using the values of
WIDTH
andHEIGHT
. Setting a specific value does override the computed value.- See Also:
-
COLOR
CSS 3 Media Feature describing the number of bits per color component.
Default value is 8, except if the output is forced to be grayscale, in which case it is 0.
-
COLOR_GAMUT
CSS Media Feature (Media Queries Level 4) describing the approximate range of colors that are supported by the UA and output device.
The default value is "srgb".
-
COLOR_INDEX
CSS 3 Media Feature describing the number of entries in the color lookup table.
Default value is 0, except if the output format is "gif" in which case it is 256.
-
DEVICE_ASPECT_RATIO
CSS 3 Media Feature describing the aspect ratio of the page.
By default, this value is computed using the values of
DEVICE_WIDTH
andDEVICE_HEIGHT
. Setting a specific value does override the computed value.- See Also:
-
DEVICE_HEIGHT
CSS 3 Media Feature describing the height of the page.
The default height is that of a DIN A4 page (297mm).
-
DEVICE_WIDTH
CSS 3 Media Feature describing the width of the page.
The default width is that of a DIN A4 page (210mm).
-
DISPLAY_MODE
CSS Media Feature (Media Queries Level 5) representing how a web application is being presented within the context of an OS.
The default value is "fullscreen".
-
DYNAMIC_RANGE
CSS Media Feature (Media Queries Level 5) representing the combination of max brightness, color depth, and contrast ratio that are supported by the user agent and output device.
The default value is "standard".
-
ENVIRONMENT_BLENDING
CSS Media Feature (Media Queries Level 5) that is used to query the characteristics of the user's display so the author can adjust the style of the document.
The default value is "opaque".
-
FORCED_COLORS
CSS Media Feature (Media Queries Level 5) indicates whether the user-agent enforces a limited color palette.
The default value is "none".
-
GRID
CSS 3 Media Feature defining whether the output is grid-based.
Default value 0, as PDFs are not grid-based.
-
HEIGHT
CSS 3 Media Feature height of page content.
The default height is that of a DIN A4 page with 2cm margin (257mm).
-
HORIZONTAL_VIEWPORT_SEGMENTS
CSS Media Feature (Media Queries Level 5) that describes the number of logical segments of the viewport in the horizontal direction.
The default value is "1".
-
HOVER
CSS Media Feature (Media Queries Level 4) describing whether the primary input mechanism allows the user to hover over elements.
The default value is "none".
-
INVERTED_COLORS
CSS Media Feature (Media Queries Level 5) indicating whether the content is displayed normally, or whether colors have been inverted.
The default value is "none".
-
MONOCHROME
CSS 3 Media Feature describing the number of bits per pixel in a monochrome frame buffer.
Default value is 0, if the output format is not monochrome.
-
NAV_CONTROLS
CSS Media Feature (Media Queries Level 5) allowing authors to know whether the user agent is providing obviously discoverable navigation controls as part of its user interface.
The default value is "none".
-
ORIENTATION
CSS 3 Media Feature describing the page orientation.
By default, this value is computed using the values of
WIDTH
andHEIGHT
. Setting a specific value does override the computed value.Valid values are "portrait" or "landscape".
- See Also:
-
OVERFLOW_BLOCK
CSS Media Feature (Media Queries Level 4) describing the behavior of the device when content overflows the initial containing block in the block axis.
The default value is "page", except if an image output was set to continuous, in which case it is "none".
-
OVERFLOW_INLINE
CSS Media Feature (Media Queries Level 4) describing the behavior of the device when content overflows the initial containing block in the inline axis.
The default value is "none".
-
POINTER
CSS Media Feature (Media Queries Level 4) describing whether the primary input mechanism is a pointing device, and if so, how accurate is it.
The default value is "none".
-
PREFERS_COLOR_SCHEME
CSS Media Feature (Media Queries Level 5) reflecting the user's desire that the page use a light or dark color theme.
The default value is "light".
-
PREFERS_CONSTRAST
CSS Media Feature (Media Queries Level 5) used to detect if the user has requested more or less contrast in the page.
The default value is "no-preference".
-
PREFERS_REDUCED_DATA
CSS Media Feature (Media Queries Level 5) used to detect if the user has a preference for being served alternate content that uses less data for the page to be rendered.
The default value is "no-preference".
-
PREFERS_REDUCED_MOTION
CSS Media Feature (Media Queries Level 5) used to detect if the user has requested the system minimize the amount of animation or motion it uses.
The default value is "reduce".
-
PREFERS_REDUCED_TRANSPARENCY
CSS Media Feature (Media Queries Level 5) used to detect if the user has requested the system minimize the amount of transparent or translucent layer effects it uses.
The default value is "no-preference".
-
RESOLUTION
CSS 3 Media Feature describing the resolution of the output device.
This also defines the value of the
window.devicePixelRatio
property available from JavaScript.Default value is 300dpi.
-
SCAN
CSS Media Feature (Media Queries Level 4) describing the scanning process of some output devices.
The default value is "progressive".
-
SCRIPTING
CSS Media Feature (Media Queries Level 5) used to query whether scripting languages, such as JavaScript, are supported on the current document.
The default value is "initial-only" if JavaScript has been enabled or "none" otherwise.
-
UPDATE
CSS Media Feature (Media Queries Level 5) used to query the ability of the output device to modify the appearance of content once it has been rendered.
The default value is "none".
-
VERTICAL_VIEWPORT_SEGMENTS
CSS Media Feature (Media Queries Level 5) that describes the number of logical segments of the viewport in the vertical direction.
The default value is "1".
-
VIDEO_COLOR_GAMUT
CSS Media Feature (Media Queries Level 5) describing the approximate range of colors that are supported by the UA and output device's video plane.
The default value is "srgb".
-
VIDEO_DYNAMIC_RANGE
CSS Media Feature (Media Queries Level 5) representing the combination of max brightness, color depth, and contrast ratio that are supported by the UA and output device's video plane.
The default value is "standard".
-
WIDTH
CSS 3 Media Feature width of page content.
The default width is that of a DIN A4 page with 2cm margin (170mm).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-