Package playn.core
Enum Class Graphics.OrientationDetail
- All Implemented Interfaces:
Serializable
,Comparable<Graphics.OrientationDetail>
,java.lang.constant.Constable
- Enclosing class:
Graphics
Enumerates detailed device orientations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionParallel to the ground, face down.Parallel to the ground, face up.Perpendicular to the ground, top of device to the left.Perpendicular to the ground, top of device to the right.Perpendicular to the ground, top of device up.Perpendicular to the ground, top of device down.Current device orientation is not known. -
Method Summary
Modifier and TypeMethodDescriptionstatic Graphics.OrientationDetail
Returns the enum constant of this class with the specified name.static Graphics.OrientationDetail[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
Current device orientation is not known. -
PORTRAIT
Perpendicular to the ground, top of device up. -
PORTRAIT_UPSIDE_DOWN
Perpendicular to the ground, top of device down. -
LANDSCAPE_LEFT
Perpendicular to the ground, top of device to the left. -
LANDSCAPE_RIGHT
Perpendicular to the ground, top of device to the right. -
FACE_UP
Parallel to the ground, face up. -
FACE_DOWN
Parallel to the ground, face down.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-