de.lessvoid.nifty.controls.slider
Class SliderImpl

java.lang.Object
  extended by de.lessvoid.nifty.controls.slider.SliderImpl

public class SliderImpl
extends Object

A simple Slider mechanism which is used as the base for the Scrollbar.

Author:
void

Constructor Summary
SliderImpl()
           
 
Method Summary
 void bindToView(SliderView view, float min, float max, float stepSize, float buttonStepSize)
           
 float getButtonStepSize()
           
 float getMax()
           
 float getMin()
           
 float getStepSize()
           
 float getValue()
           
 void setButtonStepSize(float buttonStepSize)
           
 void setMax(float max)
           
 void setMin(float min)
           
 void setStepSize(float stepSize)
           
 void setup(float min, float max, float current, float stepSize, float buttonStepSize)
           
 void setValue(float value)
           
 void setValueFromPosition(int pixelX, int pixelY)
           
 void stepDown()
           
 void stepUp()
           
 void updateView()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SliderImpl

public SliderImpl()
Method Detail

bindToView

public void bindToView(SliderView view,
                       float min,
                       float max,
                       float stepSize,
                       float buttonStepSize)

setValue

public void setValue(float value)

getValue

public float getValue()

stepUp

public void stepUp()

stepDown

public void stepDown()

setValueFromPosition

public void setValueFromPosition(int pixelX,
                                 int pixelY)

getMin

public float getMin()

setMin

public void setMin(float min)

getMax

public float getMax()

setMax

public void setMax(float max)

getStepSize

public float getStepSize()

setStepSize

public void setStepSize(float stepSize)

getButtonStepSize

public float getButtonStepSize()

setButtonStepSize

public void setButtonStepSize(float buttonStepSize)

setup

public void setup(float min,
                  float max,
                  float current,
                  float stepSize,
                  float buttonStepSize)

updateView

public void updateView()


Copyright © 2011. All Rights Reserved.