bibliothek.gui.dock.common.location
Class TreeLocationNode

java.lang.Object
  extended by bibliothek.gui.dock.common.CLocation
      extended by bibliothek.gui.dock.common.location.AbstractStackholdingLocation
          extended by bibliothek.gui.dock.common.location.AbstractTreeLocation
              extended by bibliothek.gui.dock.common.location.TreeLocationNode

public class TreeLocationNode
extends AbstractTreeLocation

A turn in a path to an element, beginning at the "normalized-area".

Author:
Benjamin Sigg

Constructor Summary
TreeLocationNode(AbstractTreeLocation parent, double size, Side side, long nodeId)
          Creates a new node.
 
Method Summary
protected  SplitDockPathProperty findParentProperty()
          Asks the parent, or in the case of the root creates, the DockableProperty describing the this location.
 String findRoot()
          Gets the name of the station this location belongs to.
 AbstractTreeLocation getParent()
          Gets the parent location of this location.
 String toString()
           
 
Methods inherited from class bibliothek.gui.dock.common.location.AbstractTreeLocation
aside, east, east, findMode, findProperty, getNodeId, getSide, getSize, leaf, north, north, south, south, west, west
 
Methods inherited from class bibliothek.gui.dock.common.location.AbstractStackholdingLocation
stack, stack
 
Methods inherited from class bibliothek.gui.dock.common.CLocation
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TreeLocationNode

public TreeLocationNode(AbstractTreeLocation parent,
                        double size,
                        Side side,
                        long nodeId)
Creates a new node.

Parameters:
parent - the turn above this location
size - the relative size of this location
side - the side which is occupied by this location
nodeId - the unique identifier of the node represented by this location, can be -1
See Also:
AbstractTreeLocation.AbstractTreeLocation(double, Side, long)
Method Detail

getParent

public AbstractTreeLocation getParent()
Description copied from class: CLocation
Gets the parent location of this location. Some root-locations may never have a parent.

Specified by:
getParent in class CLocation
Returns:
the parent location, can be null

findParentProperty

protected SplitDockPathProperty findParentProperty()
Description copied from class: AbstractTreeLocation
Asks the parent, or in the case of the root creates, the DockableProperty describing the this location.

Specified by:
findParentProperty in class AbstractTreeLocation
Returns:
the property

findRoot

public String findRoot()
Description copied from class: CLocation
Gets the name of the station this location belongs to. This can be the id of any CStation.

Specified by:
findRoot in class CLocation
Returns:
the name of the station or null if this location does not have enough information to find the root

toString

public String toString()
Overrides:
toString in class AbstractTreeLocation