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 voidindicate(ScrollPaneSnapAction action, int page, int pages, float progress)Called byactif thevisual scroll amountchanged.
-
Method Details
-
indicate
Called byactif thevisual scroll amountchanged.- Parameters:
action- the instance calling this methodpage- The current slot index in a sorted sequence of all slots. May be-1iffpagesis0.pages- the number of slotsprogress- how far the ScrollPane's visual scroll amount is to the next slot
-