Interface GesturePan.OnPan

Enclosing class:
GesturePan
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface GesturePan.OnPan
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPan(int direction, double offset)
    Emitted once a panning gesture along the expected axis is detected.
  • Method Details

    • onPan

      void onPan(int direction, double offset)
      Emitted once a panning gesture along the expected axis is detected.
      Parameters:
      direction - current direction of the pan gesture
      offset - Offset along the gesture orientation