Class DockingFloatingGroup

java.lang.Object
com.dlsc.gemsfx.docking.DockingFloatingGroup

public final class DockingFloatingGroup extends Object
Immutable snapshot of an internally floating tab group. Geometry is relative to the hosting pane's content area. Requested size and edge gaps survive temporary clamping when that area becomes too small.
  • Constructor Details

    • DockingFloatingGroup

      public DockingFloatingGroup(DockingLayoutNode.Tabs tabs, javafx.geometry.HPos horizontalAnchor, javafx.geometry.VPos verticalAnchor, double horizontalGap, double verticalGap, double width, double height)
      Creates a saved floating group.
      Parameters:
      tabs - tab order and selection
      horizontalAnchor - LEFT or RIGHT
      verticalAnchor - TOP or BOTTOM
      horizontalGap - finite, nonnegative distance from the horizontal anchor
      verticalGap - finite, nonnegative distance from the vertical anchor
      width - finite, positive requested width
      height - finite, positive requested height
  • Method Details

    • resolveBounds

      public javafx.geometry.Rectangle2D resolveBounds(double paneWidth, double paneHeight)
      Resolves the visible bounds without modifying saved geometry.
      Parameters:
      paneWidth - finite, nonnegative content-area width
      paneHeight - finite, nonnegative content-area height
      Returns:
      bounds constrained to the content area
    • getTabs

      public DockingLayoutNode.Tabs getTabs()
      Returns the tab order and selection.
      Returns:
      the tabs
    • getHorizontalAnchor

      public javafx.geometry.HPos getHorizontalAnchor()
      Returns the horizontal anchor.
      Returns:
      LEFT or RIGHT
    • getVerticalAnchor

      public javafx.geometry.VPos getVerticalAnchor()
      Returns the vertical anchor.
      Returns:
      TOP or BOTTOM
    • getHorizontalGap

      public double getHorizontalGap()
      Returns the saved horizontal edge gap.
      Returns:
      the gap
    • getVerticalGap

      public double getVerticalGap()
      Returns the saved vertical edge gap.
      Returns:
      the gap
    • getWidth

      public double getWidth()
      Returns the requested width before clamping.
      Returns:
      the width
    • getHeight

      public double getHeight()
      Returns the requested height before clamping.
      Returns:
      the height