Package com.ardor3d.extension.ui.model
Interface SliderModel
- All Known Implementing Classes:
DefaultSliderModel
public interface SliderModel
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
setCurrentValue
(int currentValue) Set a new current value.void
setCurrentValue
(int value, UISlider slider) Set a new current value.void
setMaxValue
(int maxValue) void
setMinValue
(int minValue)
-
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
Set a new current value. If a slider is provided, fireChangeEvent will be called on it.- Parameters:
value
- the new current valueslider
- 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)
-