public static enum PageFormat.Type extends java.lang.Enum<PageFormat.Type>
Enum Constant | Description |
---|---|
ROLL |
Defines a roll paper format.
|
SHEET |
Defines a cut-sheet paper format.
|
TRACTOR |
Defines a tractor paper format.
|
Modifier and Type | Method | Description |
---|---|---|
static PageFormat.Type |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PageFormat.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageFormat.Type SHEET
public static final PageFormat.Type TRACTOR
public static final PageFormat.Type ROLL
public static PageFormat.Type[] values()
for (PageFormat.Type c : PageFormat.Type.values()) System.out.println(c);
public static PageFormat.Type 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