Class MediaFeature

java.lang.Object
com.itextpdf.styledxmlparser.css.media.MediaFeature

public final class MediaFeature extends Object
Class that bundles all the media feature values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • COLOR

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String SCAN
      Value: progressive | interlace
      Media: tv
      Accepts min/max prefixes: no
      Describes the scanning process of television output devices.
      See Also:
    • ORIENTATION

      public static final 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:
    • MONOCHROME

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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: