|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.javadocking.drag.StaticDraggerFactory
public class StaticDraggerFactory
This dragger factory creates draggers that show with rectangles during dragging, where the
Dockable
s will be docked, if the mouse button is
released in that position.
Constructor Summary | |
---|---|
StaticDraggerFactory()
Constructs a dragger factory with a default painter for painting the dragged dockables. |
|
StaticDraggerFactory(DockableDragPainter dockableDragPainter)
Constructs a dragger factory with the given painter for painting the dragged dockables. |
Method Summary | |
---|---|
Dragger |
createDragger(Dockable dockable)
It creates a StaticDockableDragger with the dockableDragPainter of this class. |
Dragger |
createDragger(LeafDock dock)
It creates the following draggers with the dockableDragPainter of this class:
For a SingleDock : a StaticSingleDragger . |
DockableDragPainter |
getDockableDragPainter()
Gets the painter for painting the dragged dockables. |
void |
setDockableDragPainter(DockableDragPainter dockableDragPainter)
Sets the painter for painting the dragged dockables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticDraggerFactory()
public StaticDraggerFactory(DockableDragPainter dockableDragPainter)
dockableDragPainter
- The painter for painting the dragged dockables.Method Detail |
---|
public Dragger createDragger(LeafDock dock)
dockableDragPainter
of this class:
SingleDock
: a StaticSingleDragger
.TabDock
: a StaticTabDragger
.StaticDragger
is returned.
createDragger
in interface DraggerFactory
dock
- The dock for which a dragger should be created.
public Dragger createDragger(Dockable dockable)
StaticDockableDragger
with the dockableDragPainter
of this class.
createDragger
in interface DraggerFactory
dockable
- The dockable for which a dragger should be created.
public DockableDragPainter getDockableDragPainter()
Gets the painter for painting the dragged dockables.
The default is a SwDockableDragPainter
with a DefaultRectanglePainter
.
public void setDockableDragPainter(DockableDragPainter dockableDragPainter)
dockableDragPainter
- The painter for painting the dragged dockables.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |