public static enum Graphics.OrientationDetail extends java.lang.Enum<Graphics.OrientationDetail>
| Enum Constant and Description |
|---|
FACE_DOWN
Parallel to the ground, face down.
|
FACE_UP
Parallel to the ground, face up.
|
LANDSCAPE_LEFT
Perpendicular to the ground, top of device to the left.
|
LANDSCAPE_RIGHT
Perpendicular to the ground, top of device to the right.
|
PORTRAIT
Perpendicular to the ground, top of device up.
|
PORTRAIT_UPSIDE_DOWN
Perpendicular to the ground, top of device down.
|
UNKNOWN
Current device orientation is not known.
|
| Modifier and Type | Method and Description |
|---|---|
static Graphics.OrientationDetail |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Graphics.OrientationDetail[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Graphics.OrientationDetail UNKNOWN
public static final Graphics.OrientationDetail PORTRAIT
public static final Graphics.OrientationDetail PORTRAIT_UPSIDE_DOWN
public static final Graphics.OrientationDetail LANDSCAPE_LEFT
public static final Graphics.OrientationDetail LANDSCAPE_RIGHT
public static final Graphics.OrientationDetail FACE_UP
public static final Graphics.OrientationDetail FACE_DOWN
public static Graphics.OrientationDetail[] values()
for (Graphics.OrientationDetail c : Graphics.OrientationDetail.values()) System.out.println(c);
public static Graphics.OrientationDetail 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 nullCopyright © 2018. All Rights Reserved.