Class SplitFraction
java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.SplitFraction
Puts the divider of a two-part
SplitPane at a stored fraction of its size (so both sides keep their share when the
window is resized) and reports the new fraction shortly after the user stopped dragging, so it can be remembered.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbind(javafx.scene.control.SplitPane split, double initial, double min, double max, DoubleConsumer onChanged) Puts the divider where the user left it and reports a new position once the dragging has settled; the layout of the first moments is not taken for a drag.
-
Method Details
-
bind
public static void bind(javafx.scene.control.SplitPane split, double initial, double min, double max, DoubleConsumer onChanged) Puts the divider where the user left it and reports a new position once the dragging has settled; the layout of the first moments is not taken for a drag.
-