Class SplitHeight
java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.SplitHeight
Makes the height of the lower side of a vertical
SplitPane adjustable by dragging the divider: it starts at a
stored height, keeps that height when the window is resized (only the upper side grows or shrinks) and reports the new
height shortly after the user stopped dragging, so it can be remembered. The same as SplitWidth, turned by 90°.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbind(javafx.scene.control.SplitPane split, javafx.scene.layout.Region lower, double initial, double min, double max, DoubleConsumer onChanged) Gives the lower part the saved height and keeps it when the window changes; only the divider moves it.
-
Method Details
-
bind
public static void bind(javafx.scene.control.SplitPane split, javafx.scene.layout.Region lower, double initial, double min, double max, DoubleConsumer onChanged) Gives the lower part the saved height and keeps it when the window changes; only the divider moves it. A new height is reported once the dragging has settled.
-