public abstract class ScrollBarControllerGuiImpl extends java.lang.Object implements ScrollBarController
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drag
If scroll bar thumb is being dragged.
|
protected int |
dragPos
Current position of the dragged thumb (distance between left/top button and thumb's
left/top edge).
|
protected ScrollBarGuiImpl |
scrollBar
Scroll bar controlled by this controller.
|
| Constructor and Description |
|---|
ScrollBarControllerGuiImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
Get enable state for the scroll bar.
|
void |
setScrollBar(ScrollBarGuiImpl scrollBar)
Set scroll bar controlled by this controller..
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMax, getPosition, getStep, getThumbPosition, getThumbSize, isMaxValueTrimmed, isVisible, positionUpdatedprotected ScrollBarGuiImpl scrollBar
protected boolean drag
protected int dragPos
public void setScrollBar(ScrollBarGuiImpl scrollBar)
scrollBar - Scroll bar controlled by this controller.public void startThumbDrag()
startThumbDrag in interface ScrollBarControllerpublic void stopThumbDrag()
stopThumbDrag in interface ScrollBarControllerpublic void thumbMoved(int thumbPos)
thumbMoved in interface ScrollBarControllerthumbPos - New thumb position for the scroll bar (distance between left/top button and thumb's
left/top edge).public boolean isEnabled()
isEnabled in interface ScrollBarControllertrue if scroll bar is enabled.