public static enum MotionEvent.Direction extends java.lang.Enum<MotionEvent.Direction>
Enum Constant and Description |
---|
LookAt
The target looks at a point.
|
None
The target stays in the starting direction.
|
Path
The target rotates with the direction of the path.
|
PathAndRotation
The target rotates with the direction of the path but with the addition of a rotation.
|
Rotation
The target rotates with the given rotation.
|
Modifier and Type | Method and Description |
---|---|
static MotionEvent.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MotionEvent.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MotionEvent.Direction None
public static final MotionEvent.Direction Path
public static final MotionEvent.Direction PathAndRotation
public static final MotionEvent.Direction Rotation
public static final MotionEvent.Direction LookAt
public static MotionEvent.Direction[] values()
for (MotionEvent.Direction c : MotionEvent.Direction.values()) System.out.println(c);
public static MotionEvent.Direction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null