Class DockingFloatingGroup
java.lang.Object
com.dlsc.gemsfx.docking.DockingFloatingGroup
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 Summary
ConstructorsConstructorDescriptionDockingFloatingGroup(DockingLayoutNode.Tabs tabs, javafx.geometry.HPos horizontalAnchor, javafx.geometry.VPos verticalAnchor, double horizontalGap, double verticalGap, double width, double height) Creates a saved floating group. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the requested height before clamping.javafx.geometry.HPosReturns the horizontal anchor.doubleReturns the saved horizontal edge gap.getTabs()Returns the tab order and selection.javafx.geometry.VPosReturns the vertical anchor.doubleReturns the saved vertical edge gap.doublegetWidth()Returns the requested width before clamping.javafx.geometry.Rectangle2DresolveBounds(double paneWidth, double paneHeight) Resolves the visible bounds without modifying saved geometry.
-
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 selectionhorizontalAnchor- LEFT or RIGHTverticalAnchor- TOP or BOTTOMhorizontalGap- finite, nonnegative distance from the horizontal anchorverticalGap- finite, nonnegative distance from the vertical anchorwidth- finite, positive requested widthheight- 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 widthpaneHeight- finite, nonnegative content-area height- Returns:
- bounds constrained to the content area
-
getTabs
-
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
-