public enum Rotation extends Enum<Rotation>
Rotation class.
Enum Constant and Description |
---|
LEFT
Constant useful for rotating the text 90 degrees counter clockwise.
|
NONE
Constant useful for displaying the text without rotating it
|
RIGHT
Constant useful for rotating the text 90 degrees clockwise.
|
UPSIDE_DOWN
Constant useful for rotating the text 180 degrees.
|
Modifier and Type | Method and Description |
---|---|
static Rotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rotation NONE
public static final Rotation LEFT
public static final Rotation RIGHT
public static final Rotation UPSIDE_DOWN
public static Rotation[] values()
for (Rotation c : Rotation.values()) System.out.println(c);
public static Rotation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2021. All rights reserved.