Serializable, Comparable<TextLayout.CursorMoveDirection>public static enum TextLayout.CursorMoveDirection extends Enum<TextLayout.CursorMoveDirection>
| 枚举常量 | 说明 |
|---|---|
AFTER |
Indicates that the cursor moves in the direction with a larger character index value.
|
BEFORE |
Indicates that the cursor moves in the direction with a smaller character index value.
|
DOWN |
Indicates the downward direction.
|
LEFT |
In the LTR text, the cursor is moved towards the direction with a smaller character index value.
|
RIGHT |
In the LTR text, the cursor is moved towards the direction with a larger character index value.
|
UP |
Indicates the upward direction.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static TextLayout.CursorMoveDirection |
getByInt(int enumInt) |
Obtains the
CursorMoveDirection object based on the specified enumInt. |
int |
getValue() |
Obtains the value of
CursorMoveDirection in this TextLayout. |
static TextLayout.CursorMoveDirection |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static TextLayout.CursorMoveDirection[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (TextLayout.CursorMoveDirection c : TextLayout.CursorMoveDirection.values()) System.out.println(c); |
public static final TextLayout.CursorMoveDirection LEFT
public static final TextLayout.CursorMoveDirection RIGHT
public static final TextLayout.CursorMoveDirection UP
public static final TextLayout.CursorMoveDirection DOWN
public static final TextLayout.CursorMoveDirection BEFORE
public static final TextLayout.CursorMoveDirection AFTER
public static TextLayout.CursorMoveDirection[] values()
for (TextLayout.CursorMoveDirection c : TextLayout.CursorMoveDirection.values()) System.out.println(c);
public static TextLayout.CursorMoveDirection valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
CursorMoveDirection in this TextLayout.CursorMoveDirection.public static TextLayout.CursorMoveDirection getByInt(int enumInt)
CursorMoveDirection object based on the specified enumInt.enumInt - Indicates the enumeration value of the indicator.CursorMoveDirection object of the matched enumInt value.