Class SplitHeight

java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.SplitHeight

public final class SplitHeight extends Object
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 Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.