java.lang.Object
java.util.EventObject
de.grogra.pf.ui.event.EditEvent
de.grogra.pf.ui.event.InputEditEvent
de.grogra.pf.ui.event.MouseEditEvent
de.grogra.pf.ui.event.DragEvent
- All Implemented Interfaces:
Context
,Serializable
,Cloneable
- Direct Known Subclasses:
DragEvent2D
,DragEvent3D
A
DragEvent
represents a mouse-drag event.
It contains state information about the dragging process.- Author:
- Ole Kniemeyer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returnstrue
iff this event is an intermediate drag event in a sequence of drag events.final boolean
Returnstrue
iff this event is the last drag event in a sequence of drag events.final boolean
Returnstrue
iff this event is the first drag event in a sequence of drag events.final int
Returns the x-difference of the mouse pointer in pixels between the previous drag event and this drag event.final int
Returns the y-difference of the mouse pointer in pixels between the previous drag event and this drag event.final int
protected String
setDragData
(int dragState, int deltaX, int deltaY) Methods inherited from class de.grogra.pf.ui.event.MouseEditEvent
getClickCount, getModifiers, getX, getY, isAltDown, isControlDown, isMetaDown, isShiftDown, set, set
Methods inherited from class de.grogra.pf.ui.event.InputEditEvent
consume, isConsumed
Methods inherited from class de.grogra.pf.ui.event.EditEvent
clone, getComponent, getPanel, getWindow, getWorkbench, set, set, set, toString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
DRAGGING_STARTED
public static final int DRAGGING_STARTED- See Also:
-
DRAGGING_CONTINUED
public static final int DRAGGING_CONTINUED- See Also:
-
DRAGGING_FINISHED
public static final int DRAGGING_FINISHED- See Also:
-
-
Constructor Details
-
DragEvent
public DragEvent()
-
-
Method Details
-
setDragData
-
draggingStarted
public final boolean draggingStarted()Returnstrue
iff this event is the first drag event in a sequence of drag events.- Returns:
true
iff draggging has just been started
-
draggingContinued
public final boolean draggingContinued()Returnstrue
iff this event is an intermediate drag event in a sequence of drag events.- Returns:
true
iff dragging has been continued and not yet finished
-
draggingFinished
public final boolean draggingFinished()Returnstrue
iff this event is the last drag event in a sequence of drag events.- Returns:
true
iff dragging has been finished
-
getEventType
public final int getEventType()- Overrides:
getEventType
in classMouseEditEvent
-
getDeltaX
public final int getDeltaX()Returns the x-difference of the mouse pointer in pixels between the previous drag event and this drag event.- Returns:
- the x-movement of the mouse
-
getDeltaY
public final int getDeltaY()Returns the y-difference of the mouse pointer in pixels between the previous drag event and this drag event.- Returns:
- the y-movement of the mouse
-
paramString
- Overrides:
paramString
in classMouseEditEvent
-