Package tripleplay.gesture
Enum Class Gesture.State
- All Implemented Interfaces:
Serializable
,Comparable<Gesture.State>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA complete gesture has successfully completed, indicating that no further gesture evaluation should be performed for the remainder of this user interaction.A greedy gesture has had its minimum requirements met and is therefore considered to be actively being performed by the user.For a gesture to be passive, the user interaction thus far has qualified toward completing this gesture, but has not yet met a minimum requirement, or the gesture is not greedy by nature.The current user action does not trigger this gesture, or a greedy gesture has superceded this gesture's evaluation. -
Method Summary
Modifier and TypeMethodDescriptionstatic Gesture.State
Returns the enum constant of this class with the specified name.static Gesture.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PASSIVE
For a gesture to be passive, the user interaction thus far has qualified toward completing this gesture, but has not yet met a minimum requirement, or the gesture is not greedy by nature. -
GREEDY
A greedy gesture has had its minimum requirements met and is therefore considered to be actively being performed by the user. There should only be one greedy gesture active at a time, and if there is an active gesture in the greedy state, any passive gestures that were being considered will no longer receive events. -
COMPLETE
A complete gesture has successfully completed, indicating that no further gesture evaluation should be performed for the remainder of this user interaction. -
UNQUALIFIED
The current user action does not trigger this gesture, or a greedy gesture has superceded this gesture's evaluation. Once a gesture enters UNQUALIFIED, it is assumed that it will stay there until a call to start() puts it back in PASSIVE.
-
-
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
-