|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.ui.event.Event
totalcross.ui.event.PenEvent
totalcross.ui.event.DragEvent
public class DragEvent
An event that represents a pen drag.
| Field Summary | |
|---|---|
int |
direction
|
static int |
DOWN
The direction constant for a drag or flick down. |
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 |
xDelt
|
int |
xTotal
|
int |
yDelt
|
int |
yTotal
|
| Fields inherited from class totalcross.ui.event.PenEvent |
|---|
EVENT_NAME, modifiers, PEN_DOWN, PEN_DRAG, PEN_DRAG_END, PEN_DRAG_START, PEN_UP, x, y |
| Fields inherited from class totalcross.ui.event.Event |
|---|
consumed, target, timeStamp, type |
| Constructor Summary | |
|---|---|
DragEvent()
Constructs an empty DragEvent. |
|
DragEvent(PenEvent evt)
Constructs a new DragEvent from a PenEvent, setting a new timestamp and setting consumed to false. |
|
| Method Summary | |
|---|---|
String |
toString()
|
DragEvent |
update(PenEvent evt)
Updates this DragEvent from a PenEvent, setting a new timestamp and setting consumed to false. |
| Methods inherited from class totalcross.ui.event.PenEvent |
|---|
update |
| Methods inherited from class totalcross.ui.event.Event |
|---|
clearQueue, getNextAvailableEventId, isAvailable, touch |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int RIGHT
public static final int LEFT
public static final int UP
public static final int DOWN
public int xDelt
public int yDelt
public int xTotal
public int yTotal
public int direction
| Constructor Detail |
|---|
public DragEvent()
public DragEvent(PenEvent evt)
| Method Detail |
|---|
public DragEvent update(PenEvent evt)
public String toString()
toString in class PenEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||