private class BrowseGuiImpl.HorizontalColumnScroller extends ScrollBarControllerGuiImpl implements ScrollBarController
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 |
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, thumbMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startThumbDrag, thumbMoved
public int getMax()
getMax
in interface ScrollBarController
public int getStep()
getStep
in interface ScrollBarController
public boolean isVisible()
isVisible
in interface ScrollBarController
true
if scroll bar is visible.public boolean isEnabled()
isEnabled
in interface ScrollBarController
isEnabled
in class ScrollBarControllerGuiImpl
true
if scroll bar is enabled.public int getPosition()
getPosition
in interface ScrollBarController
public int getThumbSize()
getThumbSize
in interface ScrollBarController
public int getThumbPosition()
getThumbPosition
in interface ScrollBarController
public void positionUpdated(int position, ScrollBar.ScrollStep scrollStep, boolean drag)
positionUpdated
in interface ScrollBarController
position
- New position of the scroll bar.scrollStep
- Scroll step type.drag
- true
if position was changed because of thumb dragging.public void stopThumbDrag()
stopThumbDrag
in interface ScrollBarController
stopThumbDrag
in class ScrollBarControllerGuiImpl
private 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.