public static enum PreserveAspectRatio.Alignment extends Enum<PreserveAspectRatio.Alignment>
For the value none, the document is stretched to fit the viewport dimensions. For all
other values, the aspect ratio of the document is kept the same but the document is scaled to
fit the viewport.
| Enum Constant and Description |
|---|
none
Document is stretched to fit both the width and height of the viewport.
|
xMaxYMax
Document is positioned at the bottom right of the viewport.
|
xMaxYMid
Document is positioned at the middle right of the viewport.
|
xMaxYMin
Document is positioned at the top right of the viewport.
|
xMidYMax
Document is positioned at the bottom centre of the viewport.
|
xMidYMid
Document is centred in the viewport both vertically and horizontally.
|
xMidYMin
Document is positioned at the centre top of the viewport.
|
xMinYMax
Document is positioned at the bottom left of the viewport.
|
xMinYMid
Document is positioned at the middle left of the viewport.
|
xMinYMin
Document is positioned at the top left of the viewport.
|
| Modifier and Type | Method and Description |
|---|---|
static PreserveAspectRatio.Alignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreserveAspectRatio.Alignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreserveAspectRatio.Alignment none
public static final PreserveAspectRatio.Alignment xMinYMin
public static final PreserveAspectRatio.Alignment xMidYMin
public static final PreserveAspectRatio.Alignment xMaxYMin
public static final PreserveAspectRatio.Alignment xMinYMid
public static final PreserveAspectRatio.Alignment xMidYMid
public static final PreserveAspectRatio.Alignment xMaxYMid
public static final PreserveAspectRatio.Alignment xMinYMax
public static final PreserveAspectRatio.Alignment xMidYMax
public static final PreserveAspectRatio.Alignment xMaxYMax
public static PreserveAspectRatio.Alignment[] values()
for (PreserveAspectRatio.Alignment c : PreserveAspectRatio.Alignment.values()) System.out.println(c);
public static PreserveAspectRatio.Alignment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null