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, wait
getMax, getPosition, getStep, getThumbPosition, getThumbSize, isVisible, positionUpdated
protected 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 ScrollBarController
public void stopThumbDrag()
stopThumbDrag
in interface ScrollBarController
public void thumbMoved(int thumbPos)
thumbMoved
in interface ScrollBarController
thumbPos
- New thumb position for the scroll bar (distance between left/top button and thumb's
left/top edge).public boolean isEnabled()
isEnabled
in interface ScrollBarController
true
if scroll bar is enabled.