public enum Orientation extends Enum<Orientation>
This class is a serializable
version of PageFormat
's
Orientation constants.
Use fromAwtValue(int)
and awtValue
to transform from AWT class object to jadice
class objects and vice versa.
PageFormat.LANDSCAPE
,
PageFormat.PORTRAIT
,
PageFormat.REVERSE_LANDSCAPE
Enum Constant and Description |
---|
LANDSCAPE |
PORTRAIT |
REVERSE_LANDSCAPE |
Modifier and Type | Field and Description |
---|---|
int |
awtValue
The corresponding constant of
PageFormat 's orientation. |
Modifier and Type | Method and Description |
---|---|
static Orientation |
fromAwtValue(int orientation)
Transforms an AWT
PageFormat orientation instance to a jadice
Orientation instance. |
static Orientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Orientation LANDSCAPE
public static final Orientation PORTRAIT
public static final Orientation REVERSE_LANDSCAPE
public final int awtValue
PageFormat
's orientation.public static Orientation[] values()
for (Orientation c : Orientation.values()) System.out.println(c);
public static Orientation 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 nullpublic static Orientation fromAwtValue(int orientation)
PageFormat
orientation instance to a jadice
Orientation instance.orientation
- the AWT PageFormat
orientation instanceCopyright © 2017 levigo holding gmbh. All rights reserved.