bibliothek.gui.dock.station.split
Class AbstractSplitDockGrid.Node<D>

java.lang.Object
  extended by bibliothek.gui.dock.station.split.AbstractSplitDockGrid.Node<D>
Type Parameters:
D - the kind of element that represents a Dockable
Enclosing class:
AbstractSplitDockGrid<D>

protected static class AbstractSplitDockGrid.Node<D>
extends Object

Represents a node in the tree which will be built.

Author:
Benjamin Sigg

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
 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

x

public double x
the x-coordinate


y

public double y
the y-coordinate


width

public double width
the width of this rectangle


height

public double height
the height of this rectangle


childA

public AbstractSplitDockGrid.Node<D> childA
the first child of this node


childB

public AbstractSplitDockGrid.Node<D> childB
the second child of this node


divider

public double divider
the location of the divider


horizontal

public boolean horizontal
whether the children of this node are laid out horizontally or not


dockables

public D[] dockables
the elements represented by this leaf


selected

public D selected
the element that is selected


placeholders

public Path[] placeholders
all the placeholders associated with this location


placeholderMap

public PlaceholderMap placeholderMap
a map containing placeholder information for a DockStation that could be placed as this location.

Constructor Detail

AbstractSplitDockGrid.Node

protected AbstractSplitDockGrid.Node()
Method Detail

put

public SplitDockTree.Key put(SplitDockTree<D> tree)
Writes the contents of this node into tree.

Parameters:
tree - the tree to write into
Returns:
the key of the node