Class DockingLayoutNode.Split
java.lang.Object
com.dlsc.gemsfx.docking.DockingLayoutNode.Split
- All Implemented Interfaces:
DockingLayoutNode
- Enclosing interface:
DockingLayoutNode
A split with ordered children and normalized divider positions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DockingLayoutNode
DockingLayoutNode.Empty, DockingLayoutNode.Split, DockingLayoutNode.Tabs -
Constructor Summary
ConstructorsConstructorDescriptionSplit(javafx.geometry.Orientation orientation, List<DockingLayoutNode> children, List<Double> dividerPositions) Constructs an immutable split layout node. -
Method Summary
Modifier and TypeMethodDescriptionReturns the immutable child nodes in layout order.Returns immutable normalized divider positions.javafx.geometry.OrientationReturns the orientation of this split.
-
Constructor Details
-
Split
public Split(javafx.geometry.Orientation orientation, List<DockingLayoutNode> children, List<Double> dividerPositions) Constructs an immutable split layout node.- Parameters:
orientation- the non-null split orientationchildren- at least two non-null children in layout orderdividerPositions- one fewer positions than children, finite and nondecreasing within [0, 1]- Throws:
IllegalArgumentException- if the child count or positions are invalidNullPointerException- if an argument or child is null
-
-
Method Details
-
getOrientation
public javafx.geometry.Orientation getOrientation()Returns the orientation of this split.- Returns:
- the orientation
-
getDividerPositions
-
getChildren
Returns the immutable child nodes in layout order.- Returns:
- the ordered children
-