Class DockingLayoutNode.Split

java.lang.Object
com.dlsc.gemsfx.docking.DockingLayoutNode.Split
All Implemented Interfaces:
DockingLayoutNode
Enclosing interface:
DockingLayoutNode

public static final class DockingLayoutNode.Split extends Object implements DockingLayoutNode
A split with ordered children and normalized divider positions.
  • 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 orientation
      children - at least two non-null children in layout order
      dividerPositions - one fewer positions than children, finite and nondecreasing within [0, 1]
      Throws:
      IllegalArgumentException - if the child count or positions are invalid
      NullPointerException - 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

      public List<Double> getDividerPositions()
      Returns immutable normalized divider positions. Equal positions and endpoints allow collapsed areas.
      Returns:
      the ordered divider positions
    • getChildren

      public List<DockingLayoutNode> getChildren()
      Returns the immutable child nodes in layout order.
      Returns:
      the ordered children