|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.split.AbstractSplitDockGrid.Node<D>
D - the kind of element that represents a Dockableprotected static class AbstractSplitDockGrid.Node<D>
Represents a node in the tree which will be built.
| Field Summary | |
|---|---|
AbstractSplitDockGrid.Node<D> |
childA
the first child of this node |
AbstractSplitDockGrid.Node<D> |
childB
the second child of this node |
double |
divider
the location of the divider |
D[] |
dockables
the elements represented by this leaf |
double |
height
the height of this rectangle |
boolean |
horizontal
whether the children of this node are laid out horizontally or not |
PlaceholderMap |
placeholderMap
a map containing placeholder information for a DockStation that could be placed
as this location. |
Path[] |
placeholders
all the placeholders associated with this location |
D |
selected
the element that is selected |
double |
width
the width of this rectangle |
double |
x
the x-coordinate |
double |
y
the y-coordinate |
| Constructor Summary | |
|---|---|
protected |
AbstractSplitDockGrid.Node()
|
| Method Summary | |
|---|---|
List<D> |
getDockables()
Gets an unmodifiable list containing all the Dockable of this node. |
double |
getHeight()
Gets the height, relative to all the other nodes. |
List<Path> |
getPlaceholders()
Gets all the placeholders associated with this node. |
D |
getSelected()
Gets the one dockable that is selected, must be part of GridNode.getDockables(). |
double |
getWidth()
Gets the width, relative to all the other nodes. |
double |
getX()
Gets the x-coordinate, relative to all the other nodes. |
double |
getY()
Gets the y-coordinate, relative to all the other nodes. |
SplitDockTree.Key |
put(SplitDockTree<D> tree)
Writes the contents of this node into tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double x
public double y
public double width
public double height
public AbstractSplitDockGrid.Node<D> childA
public AbstractSplitDockGrid.Node<D> childB
public double divider
public boolean horizontal
public D[] dockables
public D selected
public Path[] placeholders
public PlaceholderMap placeholderMap
DockStation that could be placed
as this location.
| Constructor Detail |
|---|
protected AbstractSplitDockGrid.Node()
| Method Detail |
|---|
public SplitDockTree.Key put(SplitDockTree<D> tree)
tree.
tree - the tree to write into
public double getX()
GridNode
getX in interface GridNode<D>public double getY()
GridNode
getY in interface GridNode<D>public double getWidth()
GridNode
getWidth in interface GridNode<D>public double getHeight()
GridNode
getHeight in interface GridNode<D>public List<D> getDockables()
GridNodeDockable of this node.
getDockables in interface GridNode<D>public D getSelected()
GridNodeGridNode.getDockables().
getSelected in interface GridNode<D>nullpublic List<Path> getPlaceholders()
GridNode
getPlaceholders in interface GridNode<D>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||