private class BrowseGuiImpl.VerticalRowScroller extends ScrollBarControllerGuiImpl
drag, dragPos, scrollBar
Constructor and Description |
---|
VerticalRowScroller()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
getAvailableTravelSize()
Get size of the travel area available for thumb scrolling, excluding the bottom gap which
is used to indicate scrolling towards the end of the result set.
|
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 |
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 |
stopThumbDrag()
Notify controller that thumb drag has ended.
|
isEnabled, setScrollBar, startThumbDrag, thumbMoved
public 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.public int getStep()
public int getMax()
public boolean isVisible()
true
if scroll bar is visible.public int getPosition()
public void stopThumbDrag()
stopThumbDrag
in interface ScrollBarController
stopThumbDrag
in class ScrollBarControllerGuiImpl
public int getThumbSize()
public int getThumbPosition()
private int getAvailableTravelSize()