de.lessvoid.nifty.controls.slider
Class SliderControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.slider.SliderControl
All Implemented Interfaces:
Controller, NiftyControl, Slider

Deprecated. Please use Slider when accessing NiftyControls.

@Deprecated
public class SliderControl
extends AbstractController
implements Slider


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

SliderControl

public SliderControl()
Deprecated. 
Method Detail

bind

public void bind(Nifty nifty,
                 Screen screen,
                 Element element,
                 Properties parameter,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
bind in interface Controller

onStartScreen

public void onStartScreen()
Deprecated. 
Specified by:
onStartScreen in interface Controller

layoutCallback

public void layoutCallback()
Deprecated. 
Specified by:
layoutCallback in interface NiftyControl
Overrides:
layoutCallback in class AbstractController

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Deprecated. 
Specified by:
inputEvent in interface Controller

upClick

public void upClick()
Deprecated. 

downClick

public void downClick()
Deprecated. 

mouseClick

public void mouseClick(int mouseX,
                       int mouseY)
Deprecated. 

mouseWheel

public void mouseWheel(Element element,
                       NiftyMouseInputEvent inputEvent)
Deprecated. 

setValue

public void setValue(float value)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
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)
Deprecated. 
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()
Deprecated. 
Description copied from interface: Slider
Get the current StepSize.

Specified by:
getStepSize in interface Slider
Returns:
current stepSize

setButtonStepSize

public void setButtonStepSize(float buttonStepSize)
Deprecated. 
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()
Deprecated. 
Description copied from interface: Slider
Get the current button step size.

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

setup

public void setup(float min,
                  float max,
                  float current,
                  float stepSize,
                  float buttonStepSize)
Deprecated. 
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


Copyright © 2011. All Rights Reserved.