public interface Scrollable
Modifier and Type | Method and Description |
---|---|
boolean |
canScrollContent(int direction,
java.lang.Object target)
Checks if there is room to flick this container in the given direction.
|
void |
flickEnded(boolean atPenDown)
Called when the flick animation is ended.
|
boolean |
flickStarted()
Called when the flick animation is started.
|
Flick |
getFlick()
Returns the current flick object.
|
int |
getScrollPosition(int direction)
Returns the current position given the direction.
|
boolean |
scrollContent(int xDelta,
int yDelta,
boolean fromFlick)
Performs a relative move.
|
boolean |
wasScrolled()
Returns true if the control was scrolled since last pen down
|
boolean flickStarted()
void flickEnded(boolean atPenDown)
atPenDown
- Flag indicating if the animation ended due to a pendown event.boolean canScrollContent(int direction, java.lang.Object target)
direction
- The direction we want to flick given by one of the following constants:target
- The target of the series of PEN events that triggered this flick attempt.boolean scrollContent(int xDelta, int yDelta, boolean fromFlick)
xDelta
- The relative amount of pixels to move in the X axis.yDelta
- The relative amount of pixels to move in the Y axis.Flick getFlick()
int getScrollPosition(int direction)
boolean wasScrolled()