public static final class Configuration.MediaFeature extends Enum
An enum containing media feature constants.
Modifier and Type | Field and Description |
---|---|
static Configuration.MediaFeature |
ASPECT_RATIO
CSS 3 Media Feature describing the aspect ratio of the page content.
|
static Configuration.MediaFeature |
COLOR
CSS 3 Media Feature describing the number of bits per color component.
|
static Configuration.MediaFeature |
COLOR_INDEX
CSS 3 Media Feature describing the number of entries in the color lookup table.
|
static Configuration.MediaFeature |
DEVICE_ASPECT_RATIO
CSS 3 Media Feature describing the aspect ratio of the page.
|
static Configuration.MediaFeature |
DEVICE_HEIGHT
CSS 3 Media Feature describing the height of the page.
|
static Configuration.MediaFeature |
DEVICE_WIDTH
CSS 3 Media Feature describing the width of the page.
|
static Configuration.MediaFeature |
GRID
CSS 3 Media Feature defining whether the output is grid-based.
|
static Configuration.MediaFeature |
HEIGHT
CSS 3 Media Feature height of page content.
|
static Configuration.MediaFeature |
MONOCHROME
CSS 3 Media Feature describing the number of bits per pixel in a monochrome frame buffer.
|
static Configuration.MediaFeature |
ORIENTATION
CSS 3 Media Feature describing the page orientation.
|
static Configuration.MediaFeature |
RESOLUTION
CSS 3 Media Feature describing the resolution of the output device.
|
static Configuration.MediaFeature |
WIDTH
CSS 3 Media Feature width of page content.
|
Modifier and Type | Method and Description |
---|---|
static Configuration.MediaFeature |
valueOf(String name) |
static Configuration.MediaFeature[] |
values() |
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 Configuration.MediaFeature.WIDTH
and Configuration.MediaFeature.HEIGHT
. Setting a specific value does override the computed
value.
public static final Configuration.MediaFeature COLOR
CSS 3 Media Feature describing the number of bits per color component.
Default value is 8.
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, as there is no color lookup table.
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 Configuration.MediaFeature.DEVICE_WIDTH
and Configuration.MediaFeature.DEVICE_HEIGHT
. Setting a specific value does override
the computed value.
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).
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).
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.
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 1cm margin (277mm).
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, as the device is not monochrome.
public static final Configuration.MediaFeature ORIENTATION
CSS 3 Media Feature describing the page orientation.
By default, this value is computed using the values of
Configuration.MediaFeature.WIDTH
and Configuration.MediaFeature.HEIGHT
.
Setting a specific value does override the computed value.
Valid values are "portrait" or "landscape".
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 2dppx.
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 1cm margin (190mm).
public static Configuration.MediaFeature[] values()
public static Configuration.MediaFeature valueOf(String name)
This doc was generated on 2020-09-17. Copyright © 2002-2020 RealObjects GmbH. All Rights Reserved.