Enum Class TextDirection
- All Implemented Interfaces:
Serializable,Comparable<TextDirection>,Constable
指定文本方向。
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription水平文本方向。将文本旋转270度角。将文本旋转90度。堆叠的文字,其阅读顺序是从左到右。堆叠的文本,文本阅读顺序是从右到左。垂直文本方向。 -
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
水平文本方向。 -
Vertical
垂直文本方向。 -
Rotate90
将文本旋转90度。 -
Rotate270
将文本旋转270度角。 -
Stacked
堆叠的文字,其阅读顺序是从左到右。 -
StackedRtl
堆叠的文本,文本阅读顺序是从右到左。
-
-
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
-