public enum OrientationType extends java.lang.Enum<OrientationType>
Enum Constant and Description |
---|
LANDSCAPE
The landscape.
|
LANDSCAPE_REVERSED
The landscape reversed.
|
PORTRAIT
The portrait.
|
PORTRAIT_REVERSED
The portrait reversed.
|
Modifier and Type | Method and Description |
---|---|
static OrientationType |
fromInteger(int x)
From integer.
|
static OrientationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrientationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrientationType LANDSCAPE
public static final OrientationType PORTRAIT
public static final OrientationType LANDSCAPE_REVERSED
public static final OrientationType PORTRAIT_REVERSED
public static OrientationType[] values()
for (OrientationType c : OrientationType.values()) System.out.println(c);
public static OrientationType 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 nullpublic static OrientationType fromInteger(int x)
x
- the integer value of the orientation