org.rubato.rubettes.util
Enum LeapUtil.Axis
java.lang.Object
java.lang.Enum<LeapUtil.Axis>
org.rubato.rubettes.util.LeapUtil.Axis
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LeapUtil.Axis>
- Enclosing class:
- LeapUtil
public static enum LeapUtil.Axis
- extends java.lang.Enum<LeapUtil.Axis>
Method Summary |
double |
getAxisVal(com.leapmotion.leap.Finger f)
|
static LeapUtil.Axis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LeapUtil.Axis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
X_AXIS
public static final LeapUtil.Axis X_AXIS
Y_AXIS
public static final LeapUtil.Axis Y_AXIS
Z_AXIS
public static final LeapUtil.Axis Z_AXIS
values
public static LeapUtil.Axis[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (LeapUtil.Axis c : LeapUtil.Axis.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LeapUtil.Axis valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getAxisVal
public double getAxisVal(com.leapmotion.leap.Finger f)