Class DockingSize
java.lang.Object
com.dlsc.gemsfx.docking.DockingSize
An immutable preferred size for a dockable when it creates a side split.
The size describes width for left/right docking and height for top/bottom docking.
Weights refer to the entire destination
DockingPane, not the target tab group.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumUnits supported by a preferred docking size. -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()Returns the unit of the requested size.doublegetValue()Returns the requested size inthe specified unit.static DockingSizepixels(double pixels) Creates an initial size in JavaFX logical pixels.static DockingSizeweight(double weight) Creates a size relative to the entire destination pane.
-
Method Details
-
weight
Creates a size relative to the entire destination pane.- Parameters:
weight- a finite value in [0, 1], from no space to the entire pane dimension- Returns:
- the preferred size
- Throws:
IllegalArgumentException- if the weight is outside [0, 1] or not finite
-
pixels
Creates an initial size in JavaFX logical pixels.- Parameters:
pixels- a finite, nonnegative size- Returns:
- the preferred size
- Throws:
IllegalArgumentException- if the size is negative or not finite
-
getValue
-
getUnit
-