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

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

private class SplitDockTree.Node
extends SplitDockTree.Key

A SplitDockTree.Key which represents a node in the tree.

Author:
Benjamin Sigg

Field Summary
 double divider
          location of the divider
 boolean horizontal
          whether the children are horizontal or vertical laid out
 SplitDockTree.Key keyA
          left or top child
 SplitDockTree.Key keyB
          right or bottom child
 
Constructor Summary
SplitDockTree.Node(SplitDockTree.Key keyA, SplitDockTree.Key keyB, double divider, boolean horizontal)
          Creates a new node.
 
Method Summary
protected  SplitDockTree.Node asNode()
          Gets this key as a node.
 
Methods inherited from class bibliothek.gui.dock.station.split.SplitDockTree.Key
asLeaf, getParent, getTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyA

public SplitDockTree.Key keyA
left or top child


keyB

public SplitDockTree.Key keyB
right or bottom child


divider

public double divider
location of the divider


horizontal

public boolean horizontal
whether the children are horizontal or vertical laid out

Constructor Detail

SplitDockTree.Node

public SplitDockTree.Node(SplitDockTree.Key keyA,
                          SplitDockTree.Key keyB,
                          double divider,
                          boolean horizontal)
Creates a new node.

Parameters:
keyA - the left or top child
keyB - the right or bottom child
divider - the location of the divider
horizontal - the orientation of this node
Method Detail

asNode

protected SplitDockTree.Node asNode()
Description copied from class: SplitDockTree.Key
Gets this key as a node.

Overrides:
asNode in class SplitDockTree.Key
Returns:
this or null