Enum Class TextDirection
- All Implemented Interfaces:
Serializable,Comparable<TextDirection>,Constable
Specifies the text direction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHorizontal text direction.Rotate text by 270 angle.Rotate text by 90 angle.Stacked text and the text reading order is from left to right.Stacked text and the text reading order is from right to left.Vertical text direction. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextDirectionforValue(int value) intgetValue()static TextDirectionReturns the enum constant of this class with the specified name.static TextDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Horizontal
Horizontal text direction. -
Vertical
Vertical text direction. -
Rotate90
Rotate text by 90 angle. -
Rotate270
Rotate text by 270 angle. -
Stacked
Stacked text and the text reading order is from left to right. -
StackedRtl
Stacked text and the text reading order is from right to left.
-
-
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
-
getValue
public int getValue() -
forValue
-