public static enum PrintPage.Shape extends 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()<getHeight()
|
SQUARE
Represents square shape, that is to say that getWidth()==getHeight()
|
Modifier and Type | Method and Description |
---|---|
static PrintPage.Shape |
valueOf(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(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