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
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.CLocation |
base, base, equals, expandProperty, expandProperty, external, findProperty, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working |
TreeLocationRoot
public TreeLocationRoot(CSplitLocation root,
double size,
Side side,
long nodeId)
- Creates a new location.
- Parameters:
root
- the location that knows to which SplitDockStation
this
location belongssize
- the relative size of this locationside
- the side which is occupied by this locationnodeId
- the unique identifier of the new node, can be -1- See Also:
AbstractTreeLocation.AbstractTreeLocation(double, Side, long)
getParent
public CSplitLocation 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
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
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