de.lessvoid.nifty.controls.slider
Interface SliderView


public interface SliderView

The SliderView is used to update a sliders visual representation.

Author:
void

Method Summary
 int filter(int pixelX, int pixelY)
          This translates the given x/y position into a single value.
 int getSize()
          Get the size of the Slider area.
 void update(int position)
          Update the Position of the slider.
 void valueChanged(float value)
          That's a callback that is called when the value has been changed.
 

Method Detail

getSize

int getSize()
Get the size of the Slider area. This is the area in pixel that is available to scroll around.

Returns:
pixel size value

update

void update(int position)
Update the Position of the slider.

Parameters:
position - the new position in px

filter

int filter(int pixelX,
           int pixelY)
This translates the given x/y position into a single value. A horizontal slider will simply return x and a vertical one will return y.

Parameters:
pixelX - x
pixelY - y
Returns:
value

valueChanged

void valueChanged(float value)
That's a callback that is called when the value has been changed.

Parameters:
value - the new value


Copyright © 2011. All Rights Reserved.