Package com.jogamp.newt.event
Enum MouseEvent.PointerType
- All Implemented Interfaces:
InputEvent.InputType
,Serializable
,Comparable<MouseEvent.PointerType>
,java.lang.constant.Constable
- Enclosing class:
- MouseEvent
public static enum MouseEvent.PointerType
extends Enum<MouseEvent.PointerType>
implements InputEvent.InputType
Type of pointer devices
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMouseEvent.PointerClass.Onscreen
pen usually on screen? Ordinal 3.MouseEvent.PointerClass.Offscreen
touch pad, usually using fingers.MouseEvent.PointerClass.Onscreen
touch screen, usually using fingers. -
Method Summary
Modifier and TypeMethodDescriptionstatic MouseEvent.PointerType
valueOf
(int ordinal) Returns the matching PointerType value corresponding to the given PointerType's integer ordinal.static MouseEvent.PointerType
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, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Mouse
MouseEvent.PointerClass.Offscreen
mouse. Ordinal 0. -
TouchPad
MouseEvent.PointerClass.Offscreen
touch pad, usually using fingers. Ordinal 1. -
TouchScreen
MouseEvent.PointerClass.Onscreen
touch screen, usually using fingers. Ordinal 2. -
Pen
MouseEvent.PointerClass.Onscreen
pen usually on screen? Ordinal 3. FIXME -
Undefined
MouseEvent.PointerClass.Undefined
?. Ordinal 4.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPointerClass
-
valueOf
Returns the matching PointerType value corresponding to the given PointerType's integer ordinal.given: ordinal = enumValue.ordinal() reverse: enumValue = EnumClass.values()[ordinal]
- Throws:
IllegalArgumentException
- if the given ordinal is out of range, i.e. not within [ 0 .. PointerType.values().length-1 ]
-
valuesOf
Returns the PointerType array of matching PointerType values corresponding to the given PointerType's integer ordinal values.See
valueOf(int)
.- Throws:
IllegalArgumentException
- if one of the given ordinal values is out of range, i.e. not within [ 0 .. PointerType.values().length-1 ]
-