|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<MouseEvent.PointerType>
com.jogamp.newt.event.MouseEvent.PointerType
public static enum MouseEvent.PointerType
Type of pointer devices
| Enum Constant Summary | |
|---|---|
Mouse
MouseEvent.PointerClass.Offscreen mouse. |
|
Pen
MouseEvent.PointerClass.Onscreen pen usually on screen? Ordinal 3. |
|
TouchPad
MouseEvent.PointerClass.Offscreen touch pad, usually using fingers. |
|
TouchScreen
MouseEvent.PointerClass.Onscreen touch screen, usually using fingers. |
|
Undefined
MouseEvent.PointerClass.Undefined ?. |
|
| Method Summary | |
|---|---|
MouseEvent.PointerClass |
getPointerClass()
|
static MouseEvent.PointerType |
valueOf(int ordinal)
Returns the matching PointerType value corresponding to the given PointerType's integer ordinal. |
static MouseEvent.PointerType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MouseEvent.PointerType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static MouseEvent.PointerType[] |
valuesOf(int[] ordinals)
Returns the PointerType array of matching PointerType values corresponding to the given PointerType's integer ordinal values. |
| 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 |
| Enum Constant Detail |
|---|
public static final MouseEvent.PointerType Mouse
MouseEvent.PointerClass.Offscreen mouse. Ordinal 0.
public static final MouseEvent.PointerType TouchPad
MouseEvent.PointerClass.Offscreen touch pad, usually using fingers. Ordinal 1.
public static final MouseEvent.PointerType TouchScreen
MouseEvent.PointerClass.Onscreen touch screen, usually using fingers. Ordinal 2.
public static final MouseEvent.PointerType Pen
MouseEvent.PointerClass.Onscreen pen usually on screen? Ordinal 3. FIXME
public static final MouseEvent.PointerType Undefined
MouseEvent.PointerClass.Undefined ?. Ordinal 4.
| Method Detail |
|---|
public static MouseEvent.PointerType[] values()
for (MouseEvent.PointerType c : MouseEvent.PointerType.values()) System.out.println(c);
public static MouseEvent.PointerType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic MouseEvent.PointerClass getPointerClass()
public static MouseEvent.PointerType valueOf(int ordinal)
throws IllegalArgumentException
given:
ordinal = enumValue.ordinal()
reverse:
enumValue = EnumClass.values()[ordinal]
IllegalArgumentException - if the given ordinal is out of range, i.e. not within [ 0 .. PointerType.values().length-1 ]
public static MouseEvent.PointerType[] valuesOf(int[] ordinals)
throws IllegalArgumentException
See valueOf(int).
IllegalArgumentException - if one of the given ordinal values is out of range, i.e. not within [ 0 .. PointerType.values().length-1 ]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||