Interface RangeSetting

All Superinterfaces:
GuiSetting

public non-sealed interface RangeSetting extends GuiSetting
Two numbers on one slider.
  • Method Details

    • kind

    • value

      double value(int index)
      Parameters:
      index - 0 or 1
      Returns:
      That handle's value; handles may cross
    • set

      void set(int index, double value)
      Sets one handle, clamped to min()..max().
    • lowIndex

      int lowIndex()
      Returns:
      Index of the lower handle
    • highIndex

      int highIndex()
      Returns:
      Index of the higher handle
    • min

      double min()
    • max

      double max()
    • step

      double step()
    • round

      double round(double value)
      Rounds a slider value the way this setting rounds.
    • stepBoth

      void stepBoth(int direction)
      Moves both handles by one step.
      Parameters:
      direction - 1 or -1
    • formatted

      String formatted()
      Returns:
      The range as the GUI shows it
    • reset

      void reset()
    • entryEditor

      GuiEditor entryEditor()
      Returns:
      An editor to type both values