public static enum WheelEvent.DeltaMode extends java.lang.Enum<WheelEvent.DeltaMode>
Enum Constant and Description |
---|
LINE
The delta units are specified in lines.
|
PAGE
The delta units are specified in pages.
|
PIXEL
The delta units are specified in pixels.
|
Modifier and Type | Method and Description |
---|---|
int |
mode()
Returns an integer representation of the delta mode.
|
static WheelEvent.DeltaMode |
of(int mode)
Returns the
DeltaMode instance for the given value. |
static WheelEvent.DeltaMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WheelEvent.DeltaMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WheelEvent.DeltaMode PIXEL
public static final WheelEvent.DeltaMode LINE
public static final WheelEvent.DeltaMode PAGE
public static WheelEvent.DeltaMode[] values()
for (WheelEvent.DeltaMode c : WheelEvent.DeltaMode.values()) System.out.println(c);
public static WheelEvent.DeltaMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static WheelEvent.DeltaMode of(int mode)
DeltaMode
instance for the given value.java.lang.IllegalArgumentException
- when there is no delta mode associated with
the given valuepublic int mode()