Interface SliderModel

All Known Implementing Classes:
DefaultSliderModel

public interface SliderModel
  • Method Details

    • getMaxValue

      int getMaxValue()
      Returns:
      the highest possible value (inclusive)
    • setMaxValue

      void setMaxValue(int maxValue)
      Parameters:
      maxValue - the new highest possible value (inclusive)
    • getCurrentValue

      int getCurrentValue()
      Returns:
      the current set value
    • setCurrentValue

      void setCurrentValue(int currentValue)
      Set a new current value. No change event will be fired.
      Parameters:
      currentValue - the new current value
    • setCurrentValue

      void setCurrentValue(int value, UISlider slider)
      Set a new current value. If a slider is provided, fireChangeEvent will be called on it.
      Parameters:
      value - the new current value
      slider - the slider to call fireChangeEvent, if not null.
    • getMinValue

      int getMinValue()
      Returns:
      the lowest possible value (inclusive)
    • setMinValue

      void setMinValue(int minValue)
      Parameters:
      minValue - the new lowest possible value (inclusive)