bibliothek.gui.dock.station.split
Class SplitDockGrid.Node

java.lang.Object
  extended by bibliothek.gui.dock.station.split.SplitDockGrid.Node
Enclosing class:
SplitDockGrid

protected static class SplitDockGrid.Node
extends Object

Represents a node in the tree which will be built.

Author:
Benjamin Sigg

Field Summary
 SplitDockGrid.Node childA
          the first child of this node
 SplitDockGrid.Node childB
          the second child of this node
 double divider
          the location of the divider
 Dockable[] 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
 Dockable 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 SplitDockGrid.Node()
           
 
Method Summary
 SplitDockTree.Key put(SplitDockTree 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 SplitDockGrid.Node childA
the first child of this node


childB

public SplitDockGrid.Node 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 Dockable[] dockables
the elements represented by this leaf


selected

public Dockable selected
the element that is selected

Constructor Detail

SplitDockGrid.Node

protected SplitDockGrid.Node()
Method Detail

put

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

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