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 by act if the visual scroll amount changed.
  • Method Details

    • indicate

      void indicate​(ScrollPaneSnapAction action, int page, int pages, float progress)
      Called by act if the visual scroll amount changed.
      Parameters:
      action - the instance calling this method
      page - The current slot index in a sorted sequence of all slots. May be -1 iff pages is 0.
      pages - the number of slots
      progress - how far the ScrollPane's visual scroll amount is to the next slot