|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.slider.SliderControl
Slider
when accessing NiftyControls.
@Deprecated public class SliderControl
Constructor Summary | |
---|---|
SliderControl()
Deprecated. |
Method Summary | |
---|---|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated. |
void |
downClick()
Deprecated. |
float |
getButtonStepSize()
Deprecated. Get the current button step size. |
float |
getMax()
Deprecated. Get the current maximum value. |
float |
getMin()
Deprecated. Get the current minimum value for the Slider. |
float |
getStepSize()
Deprecated. Get the current StepSize. |
float |
getValue()
Deprecated. Get the current value of the Slider. |
boolean |
inputEvent(NiftyInputEvent inputEvent)
Deprecated. |
void |
layoutCallback()
Deprecated. |
void |
mouseClick(int mouseX,
int mouseY)
Deprecated. |
void |
mouseWheel(Element element,
NiftyMouseInputEvent inputEvent)
Deprecated. |
void |
onStartScreen()
Deprecated. |
void |
setButtonStepSize(float buttonStepSize)
Deprecated. Set a new Button StepSize. |
void |
setMax(float max)
Deprecated. Set a new maximum value for the Slider. |
void |
setMin(float min)
Deprecated. Set a new minimum value for the Slider. |
void |
setStepSize(float stepSize)
Deprecated. Set a new StepSize. |
void |
setup(float min,
float max,
float current,
float stepSize,
float buttonStepSize)
Deprecated. Set all attributes at once. |
void |
setValue(float value)
Deprecated. Set the Slider value to a new value. |
void |
upClick()
Deprecated. |
Methods inherited from class de.lessvoid.nifty.controls.AbstractController |
---|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Constructor Detail |
---|
public SliderControl()
Method Detail |
---|
public void bind(Nifty nifty, Screen screen, Element element, Properties parameter, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void onStartScreen()
onStartScreen
in interface Controller
public void layoutCallback()
layoutCallback
in interface NiftyControl
layoutCallback
in class AbstractController
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void upClick()
public void downClick()
public void mouseClick(int mouseX, int mouseY)
public void mouseWheel(Element element, NiftyMouseInputEvent inputEvent)
public void setValue(float value)
Slider
setValue
in interface Slider
value
- the new value for the sliderpublic float getValue()
Slider
getValue
in interface Slider
public void setMin(float min)
Slider
setMin
in interface Slider
min
- new minimum valuepublic float getMin()
Slider
getMin
in interface Slider
public void setMax(float max)
Slider
setMax
in interface Slider
max
- the new maximumpublic float getMax()
Slider
getMax
in interface Slider
public void setStepSize(float stepSize)
Slider
setStepSize
in interface Slider
stepSize
- the new step sizepublic float getStepSize()
Slider
getStepSize
in interface Slider
public void setButtonStepSize(float buttonStepSize)
Slider
setButtonStepSize
in interface Slider
buttonStepSize
- the new button step size valuepublic float getButtonStepSize()
Slider
getButtonStepSize
in interface Slider
public void setup(float min, float max, float current, float stepSize, float buttonStepSize)
Slider
setup
in interface Slider
min
- minimum valuemax
- maximum valuecurrent
- current valuestepSize
- step sizebuttonStepSize
- button step size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |