public static enum MouseEvent.PointerType extends Enum<MouseEvent.PointerType> implements InputEvent.InputType
Enum Constant and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
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. FIXMEpublic static final MouseEvent.PointerType Undefined
MouseEvent.PointerClass.Undefined
?. Ordinal 4.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 nameNullPointerException
- 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 ]Copyright 2010 JogAmp Community.