- java.lang.Object
-
- java.lang.Enum<GlcdRotation>
-
- com.ibasco.ucgdisplay.drivers.glcd.enums.GlcdRotation
-
- All Implemented Interfaces:
GlcdOptionValue<java.lang.Integer>
,java.io.Serializable
,java.lang.Comparable<GlcdRotation>
public enum GlcdRotation extends java.lang.Enum<GlcdRotation> implements GlcdOptionValue<java.lang.Integer>
Enumeration for the available rotation modes for the display controller- Author:
- Rafael Ibasco
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ROTATION_180
180 Degrees clockwise rotationROTATION_270
270 Degrees clockwise rotationROTATION_90
90 Degrees clockwise rotationROTATION_MIRROR
No rotation.ROTATION_NONE
No rotation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<java.lang.Integer>
getType()
java.lang.Integer
toValue()
static GlcdRotation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GlcdRotation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROTATION_NONE
public static final GlcdRotation ROTATION_NONE
No rotation
-
ROTATION_90
public static final GlcdRotation ROTATION_90
90 Degrees clockwise rotation
-
ROTATION_180
public static final GlcdRotation ROTATION_180
180 Degrees clockwise rotation
-
ROTATION_270
public static final GlcdRotation ROTATION_270
270 Degrees clockwise rotation
-
ROTATION_MIRROR
public static final GlcdRotation ROTATION_MIRROR
No rotation. Landscape, display content is mirrored
-
-
Method Detail
-
values
public static GlcdRotation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GlcdRotation c : GlcdRotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GlcdRotation valueOf(java.lang.String name)
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
-
toValue
public java.lang.Integer toValue()
- Specified by:
toValue
in interfaceGlcdOptionValue<java.lang.Integer>
-
getType
public java.lang.Class<java.lang.Integer> getType()
- Specified by:
getType
in interfaceGlcdOptionValue<java.lang.Integer>
-
-