bibliothek.gui.dock.common.location
Class TreeLocationNode
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.TreeLocationNode
public class TreeLocationNode
- extends AbstractTreeLocation
A turn in a path to 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 |
TreeLocationNode
public TreeLocationNode(AbstractTreeLocation parent,
double size,
Side side,
long nodeId)
- Creates a new node.
- Parameters:
parent
- the turn above this locationsize
- the relative size of this locationside
- the side which is occupied by this locationnodeId
- the unique identifier of the node represented by this location, can be -1- See Also:
AbstractTreeLocation.AbstractTreeLocation(double, Side, long)
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