public class DragEvent extends PenEvent
Event.Type<H>
Modifier and Type | Field and Description |
---|---|
int |
direction |
static java.lang.String[] |
DIRECTIONS |
static int |
DOWN
The direction constant for a drag or flick down.
|
int |
dragId
Unique id for the entire physical drag.
|
static int |
LEFT
The direction constant for a drag or flick left.
|
static int |
RIGHT
The direction constant for a drag or flick right.
|
static int |
UP
The direction constant for a drag or flick up.
|
int |
xDelta |
int |
xTotal |
int |
yDelta |
int |
yTotal |
absoluteX, absoluteY, EVENT_NAME, modifiers, PEN_DOWN, PEN_DRAG, PEN_DRAG_END, PEN_DRAG_START, PEN_UP, x, y
Constructor and Description |
---|
DragEvent()
Constructs an empty DragEvent.
|
DragEvent(PenEvent evt)
Constructs a new DragEvent from a PenEvent, setting a new timestamp and setting consumed to false.
|
Modifier and Type | Method and Description |
---|---|
static int |
getInverseDirection(int direction) |
java.lang.String |
toString() |
DragEvent |
update(PenEvent evt)
Updates this DragEvent from a PenEvent, setting a new timestamp and setting consumed to false.
|
clone, dispatch, getEventName, update
clearQueue, getNextAvailableEventId, isAvailable, touch
public static final int RIGHT
public static final int LEFT
public static final int UP
public static final int DOWN
public static final java.lang.String[] DIRECTIONS
public int xDelta
public int yDelta
public int xTotal
public int yTotal
public int direction
public int dragId
public DragEvent()
public DragEvent(PenEvent evt)