|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.split.SplitDockTreeFactory
public class SplitDockTreeFactory
A SplitTreeFactory
that writes into a SplitDockTree
and
so fills up an empty SplitDockTree
until it is a full, valid
tree.
Constructor Summary | |
---|---|
SplitDockTreeFactory(SplitDockTree tree)
Creates a new factory. |
Method Summary | |
---|---|
SplitDockTree.Key |
horizontal(SplitDockTree.Key left,
SplitDockTree.Key right,
double divider,
long id)
Informs about a node that is divided vertically. |
SplitDockTree.Key |
leaf(Dockable dockable,
long id)
Informs about a leaf of the tree. |
SplitDockTree.Key |
root(SplitDockTree.Key root,
long id)
Informs about the node that is the root. |
SplitDockTree.Key |
vertical(SplitDockTree.Key top,
SplitDockTree.Key bottom,
double divider,
long id)
Informs about a node that is divided vertically. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitDockTreeFactory(SplitDockTree tree)
tree
- the tree into which this factory will write.Method Detail |
---|
public SplitDockTree.Key horizontal(SplitDockTree.Key left, SplitDockTree.Key right, double divider, long id)
SplitTreeFactory
horizontal
in interface SplitTreeFactory<SplitDockTree.Key>
left
- the left child of the node, might be null
right
- the right child of the node, might be null
divider
- the size of the left node, a value between 0 and 1.id
- the unique identifier of this node or -1
null
public SplitDockTree.Key leaf(Dockable dockable, long id)
SplitTreeFactory
leaf
in interface SplitTreeFactory<SplitDockTree.Key>
dockable
- the element in the leafid
- the unique identifier of this node or -1
null
public SplitDockTree.Key root(SplitDockTree.Key root, long id)
SplitTreeFactory
root
in interface SplitTreeFactory<SplitDockTree.Key>
root
- the root of the tree, might be null
id
- the unique identifier of this node or -1
null
public SplitDockTree.Key vertical(SplitDockTree.Key top, SplitDockTree.Key bottom, double divider, long id)
SplitTreeFactory
vertical
in interface SplitTreeFactory<SplitDockTree.Key>
top
- the top child of the node, might be null
bottom
- the bottom child of the node, might be null
divider
- the size of the top node, a value between 0 and 1.id
- the unique identifier of this node or -1
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |