|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.drag.painter.WindowDockableDragPainter
public class WindowDockableDragPainter
A dockable drag painter that only paints the dockable when the new dock is a FloatDock
.
The dockable is painted on a transparent window.
The given RectanglePainter
paints the dockable on this window.
Constructor Summary | |
---|---|
WindowDockableDragPainter(RectanglePainter rectanglePainter)
Constructs a dockable drag painter. |
|
WindowDockableDragPainter(RectanglePainter rectanglePainter,
boolean drawLabel)
Constructs a dockable drag painter. |
Method Summary | |
---|---|
void |
clear()
Clears everything what was painted by this painter before. |
boolean |
isDrawLabel()
Determines if a label has to be painted on the rectangle. |
void |
paintDockableDrag(Dockable dockable,
Dock dock,
java.awt.Rectangle rectangle,
java.awt.Point locationInDestinationDock)
Paints a dockable during dragging. |
void |
setDrawLabel(boolean drawLabel)
Sets if a label has to be painted on the rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WindowDockableDragPainter(RectanglePainter rectanglePainter)
rectanglePainter
- The rectangle painter used by the default drag component factory
to paint the dragged dockable on the component.public WindowDockableDragPainter(RectanglePainter rectanglePainter, boolean drawLabel)
rectanglePainter
- The rectangle painter used by the default drag component factory
to paint the dragged dockable on the component.drawLabel
- True when a label has to be painted on the rectangle.Method Detail |
---|
public void clear()
DockableDragPainter
clear
in interface DockableDragPainter
public void paintDockableDrag(Dockable dockable, 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
dockable
- 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 boolean isDrawLabel()
public void setDrawLabel(boolean drawLabel)
drawLabel
- True when a label has to be painted on the rectangle.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |