public abstract class AbstractTreeLocation extends AbstractStackholdingLocation
Type | Property and Description |
---|---|
protected abstract SplitDockPathProperty |
findParent
Asks the parent, or in the case of the root creates, the
DockableProperty describing the this location. |
findProperty
Constructor and Description |
---|
AbstractTreeLocation(double size,
Side side,
long nodeId)
Creates a new location.
|
Modifier and Type | Method and Description |
---|---|
CLocation |
aside()
Deprecated.
see
CLocation.aside() for an explanation. |
TreeLocationNode |
east(double size)
Creates a new location which is based at the east side of this
location.
|
TreeLocationNode |
east(double size,
long nodeId)
Creates a new location which is based at the east side of this
location.
|
ExtendedMode |
findMode()
Gets the mode this location represents.
|
protected abstract SplitDockPathProperty |
findParentProperty()
Asks the parent, or in the case of the root creates, the
DockableProperty describing the this location. |
SplitDockPathProperty |
findProperty(DockableProperty successor)
Gets a path describing this location in terms of the
DockingFrames.
|
long |
getNodeId()
Gets the identifier of the node represented by this location.
|
Side |
getSide()
Given the rectangle yield by the parent-location, this
property tells which part the rectangle yield by this location occupies.
|
double |
getSize()
Gets the size of this location.
|
TreeLocationLeaf |
leaf(long leafId)
Creates a new leaf of this path.
|
TreeLocationNode |
north(double size)
Creates a new location which is based at the north side of this
location.
|
TreeLocationNode |
north(double size,
long nodeId)
Creates a new location which is based at the north side of this
location.
|
TreeLocationNode |
south(double size)
Creates a new location which is based at the south side of this
location.
|
TreeLocationNode |
south(double size,
long nodeId)
Creates a new location which is based at the south side of this
location.
|
String |
toString() |
TreeLocationNode |
west(double size)
Creates a new location which is based at the west side of this
location.
|
TreeLocationNode |
west(double size,
long nodeId)
Creates a new location which is based at the west side of this
location.
|
stack, stack
base, base, equals, expandProperty, expandProperty, external, findProperty, findRoot, getParent, hashCode, maximized, maximized, maximized, maximized, minimized, minimized, normalized, working
protected abstract SplitDockPathProperty findParentProperty
DockableProperty
describing the this location.public AbstractTreeLocation(double size, Side side, long nodeId)
size
- the size of this location, the parent-location is taken
and the area of the rectangle that location yields multiplied by
size
gives the area of the rectangle yield by this location.side
- given the rectangle yield by the parent-location, this
parameters tells which part the rectangle yield by this location occupies.nodeId
- a unique identifier for the node represented by this location, can be -1public Side getSide()
public double getSize()
size
gives the area of the rectangle yield by this location.public long getNodeId()
public TreeLocationNode north(double size)
size
- the relative size, a number between 0 and 1public TreeLocationNode north(double size, long nodeId)
size
- the relative size, a number between 0 and 1nodeId
- the unique identifier of the new node, can be -1public TreeLocationNode south(double size)
size
- the relative size, a number between 0 and 1public TreeLocationNode south(double size, long nodeId)
size
- the relative size, a number between 0 and 1nodeId
- the unique identifier of the new node, can be -1public TreeLocationNode east(double size)
size
- the relative size, a number between 0 and 1public TreeLocationNode east(double size, long nodeId)
size
- the relative size, a number between 0 and 1nodeId
- the unique identifier of the new node, can be -1public TreeLocationNode west(double size)
size
- the relative size, a number between 0 and 1public TreeLocationNode west(double size, long nodeId)
size
- the relative size, a number between 0 and 1nodeId
- the unique identifier of the new node, can be -1public TreeLocationLeaf leaf(long leafId)
leafId
- the unique identifier of the leaf, can be -1public ExtendedMode findMode()
CLocation
protected abstract SplitDockPathProperty findParentProperty()
DockableProperty
describing the this location.public SplitDockPathProperty findProperty(DockableProperty successor)
CLocation
findProperty
in class CLocation
successor
- the path of the elements above this location or null
null
, can also be successor
@Deprecated public CLocation aside()
CLocation.aside()
for an explanation.CLocation
CLocation
that describes the location of an element
that should be inserted next to this location.