private class BrowseGuiImpl.HorizontalColumnScroller extends ScrollBarControllerGuiImpl
drag, dragPos, scrollBar| Modifier | Constructor and Description |
|---|---|
private |
HorizontalColumnScroller() |
| Modifier and Type | Method and Description |
|---|---|
private int |
getIntersectedColumn(int x)
Get the column which body intersects given x coordinate.
|
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.
|
private boolean |
isColumnScrolling()
Return value of the COLUMN-SCROLLING attribute.
|
boolean |
isEnabled()
Get enable state for the scroll bar.
|
boolean |
isMaxValueTrimmed()
Defines if
positionUpdated(int, ScrollBar.ScrollStep, boolean) takes position
trimmed according to scrollbar maximum value. |
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.
|
setScrollBar, startThumbDrag, thumbMovedpublic int getMax()
public int getStep()
public boolean isVisible()
true if scroll bar is visible.public boolean isEnabled()
isEnabled in interface ScrollBarControllerisEnabled in class ScrollBarControllerGuiImpltrue if scroll bar is enabled.public int getPosition()
public int getThumbSize()
public int getThumbPosition()
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.public boolean isMaxValueTrimmed()
positionUpdated(int, ScrollBar.ScrollStep, boolean) takes position
trimmed according to scrollbar maximum value.true.public void stopThumbDrag()
stopThumbDrag in interface ScrollBarControllerstopThumbDrag in class ScrollBarControllerGuiImplprivate boolean isColumnScrolling()
private int getIntersectedColumn(int x)
x - X coordinate, offset relatively to left viewport edge (regardless
presence/absence of locked columns).-1 if there is no such column.