| Modifier and Type | Class and Description |
|---|---|
static class |
ScrollerImpl.CaretScroll |
CaretImpl.DirectionToPosition, CaretImpl.KeyboardScrollAction, CaretImpl.MouseScrollAction, CaretImpl.ScrollActionCaret.Direction| Modifier and Type | Field and Description |
|---|---|
static Timeout |
SCROLL_TIMEOUT
Deprecated.
Use AdvancedScroller.SCROLL_TIMEOUT
|
| Constructor and Description |
|---|
ScrollerImpl(Wrap target,
CaretOwner caret) |
| Modifier and Type | Method and Description |
|---|---|
static Point |
createScrollPoint(Rectangle bounds,
boolean horizontal,
boolean increase,
int offset) |
static Point |
createScrollPoint(Wrap c,
boolean horizontal,
boolean increase,
int offset)
An auxiliary function to calculate click point, on the appropriate side
of the control depending on the parameters.
|
protected abstract Point |
getScrollClickPoint(boolean increase) |
addScrollAction, getWrap, to, topublic static final Timeout SCROLL_TIMEOUT
public ScrollerImpl(Wrap target, CaretOwner caret)
protected abstract Point getScrollClickPoint(boolean increase)
increase - true to increase, false to decrease the valuepublic static Point createScrollPoint(Wrap c, boolean horizontal, boolean increase, int offset)
c - the control wrapperhorizontal - - horizontal or verticalincrease - - increase or decreaseoffset - distance from the borderCopyright © 2019. All rights reserved.