de.lessvoid.nifty.controls.slider
Class SliderImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SliderImpl
public SliderImpl()
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.