bibliothek.gui.dock.common.location
Class TreeLocationRoot
java.lang.Object
bibliothek.gui.dock.common.CLocation
bibliothek.gui.dock.common.location.AbstractStackholdingLocation
bibliothek.gui.dock.common.location.AbstractTreeLocation
bibliothek.gui.dock.common.location.TreeLocationRoot
public class TreeLocationRoot
- extends AbstractTreeLocation
The root of a path of turns, leading to the location of an element, beginning
at the "normalized-area".
- Author:
- Benjamin Sigg
TreeLocationRoot
public TreeLocationRoot(CRootLocation root,
double size,
Side side)
- Creates a new location.
- Parameters:
root
- the location describing where the "normalized-area" is.size
- the relative size of this locationside
- the side which is occupied by this location- See Also:
AbstractTreeLocation.AbstractTreeLocation(double, Side)
findRoot
public String findRoot()
- Description copied from class:
CLocation
- Gets the name of the station this location belongs to.
- 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
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
toString
public String toString()
- Overrides:
toString
in class AbstractTreeLocation