Class SplitFraction

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

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

    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, 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.