Class DockingLayout.PaneLayout

java.lang.Object
com.dlsc.gemsfx.docking.DockingLayout.PaneLayout
Enclosing class:
DockingLayout

public static final class DockingLayout.PaneLayout extends Object
Immutable value object representing the layout and bounds of a single docking pane.
  • Constructor Details

    • PaneLayout

      public PaneLayout(String paneId, DockingLayoutNode root, DockingLayout.StageBounds stageBounds)
      Constructs a PaneLayout.
      Parameters:
      paneId - the ID of this pane, must not be null or blank
      root - the root layout node, must not be null
      stageBounds - the bounds of the stage (null for primary pane, non-null for floating panes)
      Throws:
      IllegalArgumentException - if paneId is null/blank or root is null
    • PaneLayout

      public PaneLayout(String paneId, DockingLayoutNode root, DockingLayout.StageBounds stageBounds, List<DockingFloatingGroup> floatingGroups)
      Constructs a pane layout including internal floating groups, ordered back to front.
      Parameters:
      paneId - the pane ID
      root - the regular split/tab layout
      stageBounds - window bounds, or null for the primary pane
      floatingGroups - internal floating groups in stacking order
  • Method Details

    • getFloatingGroups

      public List<DockingFloatingGroup> getFloatingGroups()
      Returns the internal floating groups in back-to-front stacking order.
      Returns:
      an immutable list of groups
    • getPaneId

      public String getPaneId()
      Returns the ID of this pane.
      Returns:
      the pane ID
    • getRoot

      public DockingLayoutNode getRoot()
      Returns the root layout node of this pane.
      Returns:
      the root node
    • getStageBounds

      public DockingLayout.StageBounds getStageBounds()
      Returns the stage bounds of this pane, or null if this is the primary pane.
      Returns:
      the stage bounds, or null