Package se.datadosen.util
Enum Orientation
java.lang.Object
java.lang.Enum<Orientation>
se.datadosen.util.Orientation
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Orientation>
,java.lang.constant.Constable
public enum Orientation extends java.lang.Enum<Orientation>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description left
leftFlipped
normal
normalFlipped
right
rightFlipped
upsideDown
upsideDownFlipped
-
Method Summary
Modifier and Type Method Description Orientation
flipped()
static Orientation
fromName(java.lang.String name)
static Orientation
fromValue(int value)
int
getAngle()
int
getValue()
boolean
isFlipped()
boolean
isRotated()
Orientation
next()
Orientation
previous()
static Orientation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Orientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue() -
getAngle
public int getAngle()- Returns:
- angle in degrees
-
next
-
previous
-
isFlipped
public boolean isFlipped() -
isRotated
public boolean isRotated() -
flipped
-
fromValue
-
fromName
-