public interface ScrollBarController
Modifier and Type | Method and Description |
---|---|
int |
getMax()
Get maximum value for the scroll bar.
|
int |
getPosition()
Get position for the scroll bar.
|
int |
getStep()
Get step for the scroll bar.
|
int |
getThumbPosition()
Get thumb position for the scroll bar.
|
int |
getThumbSize()
Get thumb size for the scroll bar.
|
boolean |
isEnabled()
Get enable state for the scroll bar.
|
boolean |
isVisible()
Get visibility state for the scroll bar.
|
void |
positionUpdated(int position,
ScrollBar.ScrollStep scrollStep,
boolean drag)
Notify controller that position has been updated.
|
void |
startThumbDrag()
Notify controller that thumb drag has started.
|
void |
stopThumbDrag()
Notify controller that thumb drag has ended.
|
void |
thumbMoved(int thumbPos)
Notify controller that thumb has been dragged.
|
void startThumbDrag()
void stopThumbDrag()
int getMax()
int getStep()
boolean isEnabled()
true
if scroll bar is enabled.boolean isVisible()
true
if scroll bar is visible.int getPosition()
int getThumbSize()
int getThumbPosition()
void positionUpdated(int position, ScrollBar.ScrollStep scrollStep, boolean drag)
position
- New position of the scroll bar.scrollStep
- Scroll step type.drag
- true
if position was changed because of thumb dragging.
false
if position was changed because a scroll button was pressed.void thumbMoved(int thumbPos)
thumbPos
- New thumb position for the scroll bar (distance between left/top button and thumb's
left/top edge).