de.lessvoid.nifty.controls.nullobjects
Class SliderNull

java.lang.Object
  extended by de.lessvoid.nifty.controls.nullobjects.SliderNull
All Implemented Interfaces:
NiftyControl, Slider

public class SliderNull
extends Object
implements Slider


Constructor Summary
SliderNull()
           
 
Method Summary
 void disable()
           
 void enable()
           
 float getButtonStepSize()
          Get the current button step size.
 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(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(SizeValue width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderNull

public SliderNull()
Method Detail

getElement

public Element getElement()
Specified by:
getElement in interface NiftyControl

getId

public String getId()
Specified by:
getId in interface NiftyControl

setId

public void setId(String id)
Specified by:
setId in interface NiftyControl

getWidth

public int getWidth()
Specified by:
getWidth in interface NiftyControl

setWidth

public void setWidth(SizeValue width)
Specified by:
setWidth in interface NiftyControl

getHeight

public int getHeight()
Specified by:
getHeight in interface NiftyControl

setHeight

public void setHeight(SizeValue height)
Specified by:
setHeight in interface NiftyControl

getStyle

public String getStyle()
Specified by:
getStyle in interface NiftyControl

setStyle

public void setStyle(String style)
Specified by:
setStyle in interface NiftyControl

enable

public void enable()
Specified by:
enable in interface NiftyControl

disable

public void disable()
Specified by:
disable in interface NiftyControl

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface NiftyControl

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface NiftyControl

setup

public void setup(float min,
                  float max,
                  float current,
                  float stepSize,
                  float buttonStepSize)
Description copied from interface: Slider
Set all attributes at once.

Specified by:
setup in interface Slider
Parameters:
min - minimum value
max - maximum value
current - current value
stepSize - step size
buttonStepSize - button step size

setValue

public void setValue(float value)
Description copied from interface: Slider
Set the Slider value to a new value.

Specified by:
setValue in interface Slider
Parameters:
value - the new value for the slider

getValue

public float getValue()
Description copied from interface: Slider
Get the current value of the Slider.

Specified by:
getValue in interface Slider
Returns:
current value

setMin

public void setMin(float min)
Description copied from interface: Slider
Set a new minimum value for the Slider. The default value is 0.

Specified by:
setMin in interface Slider
Parameters:
min - new minimum value

getMin

public float getMin()
Description copied from interface: Slider
Get the current minimum value for the Slider.

Specified by:
getMin in interface Slider
Returns:
get the current minimum

setMax

public void setMax(float max)
Description copied from interface: Slider
Set a new maximum value for the Slider. The default value is 100.

Specified by:
setMax in interface Slider
Parameters:
max - the new maximum

getMax

public float getMax()
Description copied from interface: Slider
Get the current maximum value.

Specified by:
getMax in interface Slider
Returns:
current maximum

setStepSize

public void setStepSize(float stepSize)
Description copied from interface: Slider
Set a new StepSize. This is the minimum value the Slider value can be changed. The default value is 1.0f.

Specified by:
setStepSize in interface Slider
Parameters:
stepSize - the new step size

getStepSize

public float getStepSize()
Description copied from interface: Slider
Get the current StepSize.

Specified by:
getStepSize in interface Slider
Returns:
current stepSize

setButtonStepSize

public void setButtonStepSize(float buttonStepSize)
Description copied from interface: Slider
Set a new Button StepSize. This is the value that the slider value changes when one of the up/down or left/right button is clicked. The default value is 25.0f.

Specified by:
setButtonStepSize in interface Slider
Parameters:
buttonStepSize - the new button step size value

getButtonStepSize

public float getButtonStepSize()
Description copied from interface: Slider
Get the current button step size.

Specified by:
getButtonStepSize in interface Slider
Returns:
the current step size

setFocus

public void setFocus()
Specified by:
setFocus in interface NiftyControl

setFocusable

public void setFocusable(boolean focusable)
Specified by:
setFocusable in interface NiftyControl

hasFocus

public boolean hasFocus()
Specified by:
hasFocus in interface NiftyControl

layoutCallback

public void layoutCallback()
Specified by:
layoutCallback in interface NiftyControl

isBound

public boolean isBound()
Specified by:
isBound in interface NiftyControl


Copyright © 2011. All Rights Reserved.