public static class SplitDockStationLayout.Node extends SplitDockStationLayout.Entry
createPathProperty
Constructor and Description |
---|
SplitDockStationLayout.Node(SplitDockStation.Orientation orientation,
double divider,
SplitDockStationLayout.Entry childA,
SplitDockStationLayout.Entry childB,
Path[] placeholders,
PlaceholderMap placeholderMap,
long id)
Creates a new node.
|
Modifier and Type | Method and Description |
---|---|
SplitDockStationLayout.Node |
asNode()
Returns
this as node or null . |
SplitDockPathProperty |
createPathProperty(SplitDockStationLayout.Entry child)
Creates a new path pointing to
child which must be
a child of this node. |
SplitDockStationLayout.Entry |
getChildA()
Gets the left or top child.
|
SplitDockStationLayout.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.
|
boolean |
isVisible()
Whether this node or leaf is visible to the user.
|
asLeaf, createPathProperty, getNodeId, getParent, getPlaceholderMap, getPlaceholders, setParent
public SplitDockStationLayout.Node(SplitDockStation.Orientation orientation, double divider, SplitDockStationLayout.Entry childA, SplitDockStationLayout.Entry childB, 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 SplitDockStationLayout.Node asNode()
SplitDockStationLayout.Entry
this
as node or null
.asNode
in class SplitDockStationLayout.Entry
this
or null
public boolean isVisible()
SplitDockStationLayout.Entry
isVisible
in class SplitDockStationLayout.Entry
true
if this represents some graphical element or has a visible childpublic SplitDockPathProperty createPathProperty(SplitDockStationLayout.Entry child)
child
which must be
a child of this node.child
- some child of this nodechild
public SplitDockStation.Orientation getOrientation()
public double getDivider()
public SplitDockStationLayout.Entry getChildA()
public SplitDockStationLayout.Entry getChildB()