D
- the kind of element that represents a Dockable
protected static class AbstractSplitDockGrid.Node<D> extends Object implements GridNode<D>
Modifier and Type | Field and Description |
---|---|
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
|
Modifier | Constructor and Description |
---|---|
protected |
Node() |
Modifier and Type | Method and Description |
---|---|
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 . |
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.public SplitDockTree.Key put(SplitDockTree<D> tree)
tree
.tree
- the tree to write intopublic double getX()
GridNode
public double getY()
GridNode
public double getWidth()
GridNode
public double getHeight()
GridNode
public List<D> getDockables()
GridNode
Dockable
of this node.getDockables
in interface GridNode<D>
public D getSelected()
GridNode
GridNode.getDockables()
.getSelected
in interface GridNode<D>
null