|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.common.CLocation bibliothek.gui.dock.common.location.AbstractStackholdingLocation bibliothek.gui.dock.common.location.AbstractTreeLocation
public abstract class AbstractTreeLocation
A location that is child of the "normalized"-area, and describing a turn in a path leading to the final element. A turn divides the basic rectangle along a vertical or horizontal line, and continues the search in one of the newly created, smaller rectangles.
Constructor Summary | |
---|---|
AbstractTreeLocation(double size,
Side side,
long nodeId)
Creates a new location. |
Method Summary | |
---|---|
CLocation |
aside()
Returns a CLocation that describes the location of an element
that should be inserted next to this location. |
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. |
java.lang.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. |
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, findRoot, getParent, 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 |
---|
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 -1Method Detail |
---|
public 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 1
public 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 -1
public TreeLocationNode south(double size)
size
- the relative size, a number between 0 and 1
public 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 -1
public TreeLocationNode east(double size)
size
- the relative size, a number between 0 and 1
public 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 -1
public TreeLocationNode west(double size)
size
- the relative size, a number between 0 and 1
public 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 -1
public TreeLocationLeaf leaf(long leafId)
leafId
- the unique identifier of the leaf, can be -1
public ExtendedMode findMode()
CLocation
findMode
in class CLocation
null
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
public CLocation aside()
CLocation
CLocation
that describes the location of an element
that should be inserted next to this location.
aside
in class CLocation
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |