|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Slider
The Slider interface is the Nifty control API view of a Nifty Slider.
Method Summary | |
---|---|
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. |
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Method Detail |
---|
void 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |