public static class SplitDockPerspective.Node extends SplitDockPerspective.Entry
Constructor and Description |
---|
Node(SplitDockStation.Orientation orientation,
double divider,
SplitDockPerspective.Entry childA,
SplitDockPerspective.Entry childB,
Set<Path> placeholders,
PlaceholderMap placeholderMap,
long id)
Creates a new node.
|
Modifier and Type | Method and Description |
---|---|
SplitDockPerspective.Node |
asNode()
Returns
this as node or null . |
SplitDockPerspective.Entry |
getChildA()
Gets the left or top child.
|
SplitDockPerspective.Entry |
getChildB()
Gets the right or bottom child.
|
double |
getDivider()
The location of the divider.
|
SplitDockStation.Orientation |
getOrientation()
Tells whether this node is horizontal or vertical.
|
void |
setChildA(SplitDockPerspective.Entry childA)
Sets the left or top child of this node.
|
void |
setChildB(SplitDockPerspective.Entry childB)
Sets the right or bottom child of this node.
|
asLeaf, delete, getNodeId, getParent, getPerspective, getPlaceholderMap, getPlaceholders, isAnchestor, replace, setParent, setPlaceholderMap
public Node(SplitDockStation.Orientation orientation, double divider, SplitDockPerspective.Entry childA, SplitDockPerspective.Entry childB, Set<Path> placeholders, PlaceholderMap placeholderMap, long id)
orientation
- whether this node is horizontal or verticaldivider
- the location of the dividerchildA
- the left or top childchildB
- the right or bottom childplaceholders
- placeholders associated with this nodeplaceholderMap
- placeholder information of a child DockStation
id
- the unique identifier of this node or -1public SplitDockPerspective.Node asNode()
SplitDockPerspective.Entry
this
as node or null
.asNode
in class SplitDockPerspective.Entry
this
or null
public SplitDockStation.Orientation getOrientation()
public double getDivider()
public SplitDockPerspective.Entry getChildA()
public void setChildA(SplitDockPerspective.Entry childA)
childA
- the new child, can be null
public SplitDockPerspective.Entry getChildB()
public void setChildB(SplitDockPerspective.Entry childB)
childB
- the new child, can be null