Slider
when accessing NiftyControls.@Deprecated public class SliderControl extends AbstractController implements Slider
Constructor and Description |
---|
SliderControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, init, isBound, isEnabled, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
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
public float getValue()
Slider
public void setMin(float min)
Slider
public float getMin()
Slider
public void setMax(float max)
Slider
public float getMax()
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
Copyright © 2013. All Rights Reserved.