public static enum TouchEvent.DirectionType extends Enum<TouchEvent.DirectionType>
文件名:TouchEvent.java
用途: 定义方向枚举,用于标记滑动的方向
编码时间:2021年4月19日下午2:25:25
修改时间:2021年4月19日下午2:25:25
Enum Constant and Description |
---|
CENTER
向中心滑动
|
DOWN
向下滑动
|
LEFT
向左滑动
|
RIGHT
向右滑动
|
UP
向上滑动
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
返回枚举的名称
|
static TouchEvent.DirectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TouchEvent.DirectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TouchEvent.DirectionType UP
public static final TouchEvent.DirectionType DOWN
public static final TouchEvent.DirectionType RIGHT
public static final TouchEvent.DirectionType LEFT
public static final TouchEvent.DirectionType CENTER
public static TouchEvent.DirectionType[] values()
for (TouchEvent.DirectionType c : TouchEvent.DirectionType.values()) System.out.println(c);
public static TouchEvent.DirectionType 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 nullpublic String getName()
Copyright © 2024. All rights reserved.