public static enum PrintPage.Shape extends java.lang.Enum<PrintPage.Shape>
| Enum Constant and Description |
|---|
LANDSCAPE
Represents landscape shape, that is to say that getWidth>getHeight()
|
PORTRAIT
Represents portrait shape, that is to say that getWidth() |
SQUARE
Represents square shape, that is to say that getWidth()==getHeight()
|
| Modifier and Type | Method and Description |
|---|---|
static PrintPage.Shape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrintPage.Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrintPage.Shape PORTRAIT
public static final PrintPage.Shape LANDSCAPE
public static final PrintPage.Shape SQUARE
public static PrintPage.Shape[] values()
for (PrintPage.Shape c : PrintPage.Shape.values()) System.out.println(c);
public static PrintPage.Shape valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null