public enum ScreenOrientation extends java.lang.Enum<ScreenOrientation>
Enum Constant and Description |
---|
LANDSCAPE
Orientation is Landscape
|
PORTRAIT
Orientation is portrait
|
REVERSE_LANDSCAPE
Orientation is reverse landscape
|
REVERSE_PORTRAIT
Orientation is reverse portrait
|
Modifier and Type | Method and Description |
---|---|
static ScreenOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScreenOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScreenOrientation LANDSCAPE
public static final ScreenOrientation REVERSE_PORTRAIT
public static final ScreenOrientation REVERSE_LANDSCAPE
public static final ScreenOrientation PORTRAIT
public static ScreenOrientation[] values()
for (ScreenOrientation c : ScreenOrientation.values()) System.out.println(c);
public static ScreenOrientation 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