public enum ScreenOrientation extends java.lang.Enum<ScreenOrientation>
Enum Constant and Description |
---|
LANDSCAPE_LEFT |
LANDSCAPE_RIGHT |
PORTRAIT |
PORTRAIT_UPSIDE_DOWN |
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 PORTRAIT
public static final ScreenOrientation PORTRAIT_UPSIDE_DOWN
public static final ScreenOrientation LANDSCAPE_RIGHT
public static final ScreenOrientation LANDSCAPE_LEFT
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