|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.infonode.docking.WindowDragger
class WindowDragger
Field Summary | |
---|---|
private DockingWindow |
dragWindow
|
private DropAction |
dropAction
|
private RootWindow |
rootWindow
|
Constructor Summary | |
---|---|
WindowDragger(DockingWindow dragWindow)
|
|
WindowDragger(DockingWindow dragWindow,
RootWindow rootWindow)
|
Method Summary | |
---|---|
void |
abortDrag()
Aborts this drag operation. |
void |
dragWindow(java.awt.event.MouseEvent mouseEvent)
Drags the window to a new location. |
void |
dropWindow(java.awt.event.MouseEvent mouseEvent)
Drops the window at the specified location. |
private DockingWindow |
getDeepestWindowAt(java.awt.Component component,
int x,
int y)
|
DockingWindow |
getDragWindow()
The window that is dragged and dropped. |
RootWindow |
getDropTarget()
Returns the RootWindow where the window can be dropped. |
private void |
stopDrag()
|
(package private) void |
undoDrag(DropAction newAction)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private DockingWindow dragWindow
private DropAction dropAction
private RootWindow rootWindow
Constructor Detail |
---|
WindowDragger(DockingWindow dragWindow)
WindowDragger(DockingWindow dragWindow, RootWindow rootWindow)
Method Detail |
---|
public DockingWindow getDragWindow()
DockingWindowDragger
getDragWindow
in interface DockingWindowDragger
public RootWindow getDropTarget()
DockingWindowDragger
RootWindow
where the window can be dropped.
getDropTarget
in interface DockingWindowDragger
RootWindow
where the window can be droppedvoid undoDrag(DropAction newAction)
private void stopDrag()
public void abortDrag()
DockingWindowDragger
abortDrag
in interface DockingWindowDragger
public void dropWindow(java.awt.event.MouseEvent mouseEvent)
DockingWindowDragger
dropWindow
in interface DockingWindowDragger
mouseEvent
- the mouse event that caused the droppublic void dragWindow(java.awt.event.MouseEvent mouseEvent)
DockingWindowDragger
RootWindow
in where it should be
dropped, see DockingWindowDragger.getDropTarget()
.
dragWindow
in interface DockingWindowDragger
mouseEvent
- the mouse event that caused the dragprivate DockingWindow getDeepestWindowAt(java.awt.Component component, int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |