public enum WlPointerAxisSource extends Enum<WlPointerAxisSource>
Describes the source types for axis events. This indicates to the client how an axis event was physically generated; a client may adjust the user interface accordingly. For example, scroll events from a "finger" source may be in a smooth coordinate space with kinetic scrolling whereas a "wheel" source may be in discrete steps of a number of lines.
The "continuous" axis source is a device generating events in a continuous coordinate space, but using something other than a finger. One example for this source is button-based scrolling where the vertical motion of a device is converted to scroll events while a button is held down.
| Enum Constant and Description |
|---|
CONTINUOUS
continuous coordinate space
|
FINGER
finger on a touch surface
|
WHEEL
a physical wheel
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static WlPointerAxisSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WlPointerAxisSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WlPointerAxisSource WHEEL
public static final WlPointerAxisSource FINGER
public static final WlPointerAxisSource CONTINUOUS
public static WlPointerAxisSource[] values()
for (WlPointerAxisSource c : WlPointerAxisSource.values()) System.out.println(c);
public static WlPointerAxisSource 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 nullCopyright © 2016. All rights reserved.