Interface ScrollPaneSnapAction.Indicator
- Enclosing class:
- ScrollPaneSnapAction
public static interface ScrollPaneSnapAction.Indicator
Indicates the position of the
snapped
slot.
The axis reported is determined by ScrollPaneSnapAction.indicateVertical
.- Since:
- 0.10.0
-
Method Summary
Modifier and Type Method Description void
indicate(ScrollPaneSnapAction action, int page, int pages, float progress)
Called byact
if thevisual scroll amount
changed.
-
Method Details
-
indicate
Called byact
if thevisual scroll amount
changed.- Parameters:
action
- the instance calling this methodpage
- The current slot index in a sorted sequence of all slots. May be-1
iffpages
is0
.pages
- the number of slotsprogress
- how far the ScrollPane's visual scroll amount is to the next slot
-