|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.drag.painter.LabelDockableDragPainter
public class LabelDockableDragPainter
This dockable drag painter shows a window with the title of the dockable at the current mouse position, when the dockable is dragged. This window is also visible outside the owner window. The dock cursor or cannotdock cursor is shown on the window. TODO dispose the window
Constructor Summary | |
---|---|
LabelDockableDragPainter()
Constructs a dockable drag painter that shows a window with the title of the dockable at the current mouse position, when the dockable is dragged. |
Method Summary | |
---|---|
void |
clear()
Clears everything what was painted by this painter before. |
int |
getVerticalShift()
Gets how much the label is shifted from the mouse in the vertical direction. |
void |
paintDockableDrag(Dockable newDockable,
Dock dock,
java.awt.Rectangle rectangle,
java.awt.Point locationInDestinationDock)
Paints a dockable during dragging. |
void |
setVerticalShift(int verticalShift)
Sets how much the label is shifted from the mouse in the vertical direction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelDockableDragPainter()
Method Detail |
---|
public void clear()
DockableDragPainter
clear
in interface DockableDragPainter
public void paintDockableDrag(Dockable newDockable, Dock dock, java.awt.Rectangle rectangle, java.awt.Point locationInDestinationDock)
DockableDragPainter
Paints a dockable during dragging.
Usually a rectangle is painted. It shows where the dockable will be docked in the dock, if the mouse would be released at the current mouse position.
paintDockableDrag
in interface DockableDragPainter
newDockable
- The dockable that will be painted.dock
- The dock in which the dockable can be docked.rectangle
- The rectangle that defines, where the given dockable
will be docked, if the mouse is released at the current mouse position.
The position of the rectangle is relative to the given dock.locationInDestinationDock
- The position of the mouse relative to the given dock.public int getVerticalShift()
public void setVerticalShift(int verticalShift)
verticalShift
- How much the label is shifted from the mouse in the vertical direction.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |