Constructor and Description |
---|
SliderNull() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
float |
getButtonStepSize()
Get the current button step size.
|
de.lessvoid.nifty.elements.Element |
getElement() |
int |
getHeight() |
String |
getId() |
float |
getMax()
Get the current maximum value.
|
float |
getMin()
Get the current minimum value for the Slider.
|
float |
getStepSize()
Get the current StepSize.
|
String |
getStyle() |
float |
getValue()
Get the current value of the Slider.
|
int |
getWidth() |
boolean |
hasFocus() |
boolean |
isBound() |
boolean |
isEnabled() |
void |
layoutCallback() |
void |
setButtonStepSize(float buttonStepSize)
Set a new Button StepSize.
|
void |
setEnabled(boolean enabled) |
void |
setFocus() |
void |
setFocusable(boolean focusable) |
void |
setHeight(de.lessvoid.nifty.tools.SizeValue height) |
void |
setId(String id) |
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 |
setStyle(String style) |
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.
|
void |
setWidth(de.lessvoid.nifty.tools.SizeValue width) |
public de.lessvoid.nifty.elements.Element getElement()
getElement
in interface de.lessvoid.nifty.controls.NiftyControl
public String getId()
getId
in interface de.lessvoid.nifty.controls.NiftyControl
public void setId(String id)
setId
in interface de.lessvoid.nifty.controls.NiftyControl
public int getWidth()
getWidth
in interface de.lessvoid.nifty.controls.NiftyControl
public void setWidth(de.lessvoid.nifty.tools.SizeValue width)
setWidth
in interface de.lessvoid.nifty.controls.NiftyControl
public int getHeight()
getHeight
in interface de.lessvoid.nifty.controls.NiftyControl
public void setHeight(de.lessvoid.nifty.tools.SizeValue height)
setHeight
in interface de.lessvoid.nifty.controls.NiftyControl
public String getStyle()
getStyle
in interface de.lessvoid.nifty.controls.NiftyControl
public void setStyle(String style)
setStyle
in interface de.lessvoid.nifty.controls.NiftyControl
public void enable()
enable
in interface de.lessvoid.nifty.controls.NiftyControl
public void disable()
disable
in interface de.lessvoid.nifty.controls.NiftyControl
public void setEnabled(boolean enabled)
setEnabled
in interface de.lessvoid.nifty.controls.NiftyControl
public boolean isEnabled()
isEnabled
in interface de.lessvoid.nifty.controls.NiftyControl
public void setup(float min, float max, float current, float stepSize, float buttonStepSize)
Slider
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 setFocus()
setFocus
in interface de.lessvoid.nifty.controls.NiftyControl
public void setFocusable(boolean focusable)
setFocusable
in interface de.lessvoid.nifty.controls.NiftyControl
public boolean hasFocus()
hasFocus
in interface de.lessvoid.nifty.controls.NiftyControl
public void layoutCallback()
layoutCallback
in interface de.lessvoid.nifty.controls.NiftyControl
public boolean isBound()
isBound
in interface de.lessvoid.nifty.controls.NiftyControl
Copyright © 2013. All Rights Reserved.