Enum Configuration.MediaFeature

java.lang.Object
java.lang.Enum<Configuration.MediaFeature>
com.realobjects.pdfreactor.Configuration.MediaFeature
All Implemented Interfaces:
Serializable, Comparable<Configuration.MediaFeature>, java.lang.constant.Constable
Enclosing class:
Configuration

public static enum Configuration.MediaFeature extends Enum<Configuration.MediaFeature>

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 Constants
    Enum Constant
    Description
    CSS 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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ANY_HOVER

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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 and HEIGHT. Setting a specific value does override the computed value.

      See Also:
    • COLOR

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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 and DEVICE_HEIGHT. Setting a specific value does override the computed value.

      See Also:
    • DEVICE_HEIGHT

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature GRID

      CSS 3 Media Feature defining whether the output is grid-based.

      Default value 0, as PDFs are not grid-based.

    • HEIGHT

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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.

    • ORIENTATION

      public static final Configuration.MediaFeature ORIENTATION

      CSS 3 Media Feature describing the page orientation.

      By default, this value is computed using the values of WIDTH and HEIGHT. Setting a specific value does override the computed value.

      Valid values are "portrait" or "landscape".

      See Also:
    • OVERFLOW_BLOCK

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature SCAN

      CSS Media Feature (Media Queries Level 4) describing the scanning process of some output devices.

      The default value is "progressive".

    • SCRIPTING

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static final Configuration.MediaFeature 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

      public static Configuration.MediaFeature[] 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

      public static Configuration.MediaFeature valueOf(String name)
      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 name
      NullPointerException - if the argument is null