public interface Slider extends NiftyControl
| Modifier and Type | Method and Description |
|---|---|
float |
getButtonStepSize()
Get the current button step size.
|
float |
getMax()
Get the current maximum value.
|
float |
getMin()
Get the current minimum value for the Slider.
|
float |
getStepSize()
Get the current StepSize.
|
float |
getValue()
Get the current value of the Slider.
|
void |
setButtonStepSize(float buttonStepSize)
Set a new Button StepSize.
|
void |
setMax(float max)
Set a new maximum value for the Slider.
|
void |
setMin(float min)
Set a new minimum value for the Slider.
|
void |
setStepSize(float stepSize)
Set a new StepSize.
|
void |
setup(float min,
float max,
float current,
float stepSize,
float buttonStepSize)
Set all attributes at once.
|
void |
setValue(float value)
Set the Slider value to a new value.
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthvoid setup(float min,
float max,
float current,
float stepSize,
float buttonStepSize)
min - minimum valuemax - maximum valuecurrent - current valuestepSize - step sizebuttonStepSize - button step sizevoid setValue(float value)
value - the new value for the sliderfloat getValue()
void setMin(float min)
min - new minimum valuefloat getMin()
void setMax(float max)
max - the new maximumfloat getMax()
void setStepSize(float stepSize)
stepSize - the new step sizefloat getStepSize()
void setButtonStepSize(float buttonStepSize)
buttonStepSize - the new button step size valuefloat getButtonStepSize()
Copyright © 2013. All Rights Reserved.