Slider
Last updated
Last updated
A Slider is a component that allows the user to slide a bar to pick a value between a range
Type
Name
Description
boolean
drawFilledArea
Setting to false does not draw the filled line* of the Slider
boolean
drawTicks
Defining as true, ticks will be drawn along the Slider to indicate all the possible points where the Slider may be. By default, the number of ticks to be drawn are the same as the maximum slider value, (SeeMethods bellow), but this value can be modified by setting a different value for setUnitIncrement(int i)
boolean
invertDirection
Setting to True causes the filled area of the Slider to be the rightmost part of the scroll circle, which by default is the leftmost
int
sliderColor
Changing this attribute value colors the circle and the filled line* of the Slider
Type
Name
Description
Constructor
Slider( )
Cria um Slider na posição horizontal com o limite mínimo e máximo de 0 e 100, respectivamente
Constructor
Slider(byte orientation)
Cria um Slider na posição desejada com o limite mínimo e máximo de 0 e 100, respectivamente,
void
setMinimum(int i)
Sets the minimum value of the bar limit
void
setMaximum(int i)
Sets the maximum value of the bar limit
void
setUnitIncrement(int i)
Sets the value that will be incremented or decremented to the Slider while using a PenDrag event
void
setValue(int i)
Sets the starting value for the Slider to begin with. If this initial value is greater than the maximum value, then it will be limited to the maximum
See the JavaDocs for more information