de.grogra.pf.ui.event
public class DragEvent extends MouseEditEvent
DragEvent represents a mouse-drag event.
It contains state information about the dragging process.| Modifier and Type | Field and Description |
|---|---|
static int |
DRAGGING_CONTINUED |
static int |
DRAGGING_FINISHED |
static int |
DRAGGING_STARTED |
| Constructor and Description |
|---|
DragEvent() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
draggingContinued()
Returns
true iff this event is an intermediate drag event
in a sequence of drag events. |
boolean |
draggingFinished()
Returns
true iff this event is the last drag event
in a sequence of drag events. |
boolean |
draggingStarted()
Returns
true iff this event is the first drag event
in a sequence of drag events. |
int |
getDeltaX()
Returns the x-difference of the mouse pointer in pixels between
the previous drag event and this drag event.
|
int |
getDeltaY()
Returns the y-difference of the mouse pointer in pixels between
the previous drag event and this drag event.
|
int |
getEventType() |
protected java.lang.String |
paramString() |
DragEvent |
setDragData(int dragState,
int deltaX,
int deltaY) |
getClickCount, getModifiers, getX, getY, isAltDown, isControlDown, isMetaDown, isShiftDown, set, setconsume, isConsumedclone, getComponent, getPanel, getWindow, getWorkbench, set, set, set, toStringpublic static final int DRAGGING_CONTINUED
public static final int DRAGGING_FINISHED
public static final int DRAGGING_STARTED
public final boolean draggingContinued()
true iff this event is an intermediate drag event
in a sequence of drag events.true iff dragging has been continued and not yet finishedpublic final boolean draggingFinished()
true iff this event is the last drag event
in a sequence of drag events.true iff dragging has been finishedpublic final boolean draggingStarted()
true iff this event is the first drag event
in a sequence of drag events.true iff draggging has just been startedpublic final int getDeltaX()
public final int getDeltaY()
public final int getEventType()
getEventType in class MouseEditEventprotected java.lang.String paramString()
paramString in class MouseEditEventpublic DragEvent setDragData(int dragState, int deltaX, int deltaY)