public abstract class DockEvent
extends java.lang.Object
This class holds a reference to the source of the event and its mouse event.
Modifier and Type | Field and Description |
---|---|
protected DockingActionEvent |
action
The action corresponding to the drag and drop gesture
(actions can be seen as allowed docking gestures)
|
protected DockingDesktop |
desktop
The docking desktop which is the destination of the drag and drop gesture
|
protected java.awt.event.MouseEvent |
event
The MouseEvent, in target's coordinates
|
protected DockableDragSource |
source
The drag source
|
Constructor and Description |
---|
DockEvent(DockingDesktop targetDesktop,
DockableDragSource source,
java.awt.event.MouseEvent event)
Constructor for dock events.
|
Modifier and Type | Method and Description |
---|---|
DockingDesktop |
getDesktop()
Returns a reference of the desktop in which the docking event takes place.
|
DockingActionEvent |
getDockingAction()
Returns the DockingActionEvent corresponding to the drag and drop gesture
|
DockableDragSource |
getDragSource()
Returns a reference to the drag source of this event.
|
java.awt.event.MouseEvent |
getMouseEvent()
Returns the MouseEvent which is the cause of this DockEvent.
|
void |
setDockingAction(DockingActionEvent actionEvent)
Set the docking action corresponding to this drag and drop gesture.
|
protected DockableDragSource source
protected DockingDesktop desktop
protected java.awt.event.MouseEvent event
protected DockingActionEvent action
public DockEvent(DockingDesktop targetDesktop, DockableDragSource source, java.awt.event.MouseEvent event)
targetDesktop
- the desktop which will receive the dropsource
- the source of drag operationevent
- the mouse event which is the cause of this DockEvent.public java.awt.event.MouseEvent getMouseEvent()
note that mouse coordinates are converted into the target's coordinates.
public DockableDragSource getDragSource()
public DockingDesktop getDesktop()
As of version 2.1, this method returns the "target" desktop (the one in which the drop will occur)
To get a reference of the "source" desktop, use the DockableState information provided by the DockingContext.
public DockingActionEvent getDockingAction()
public void setDockingAction(DockingActionEvent actionEvent)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.