Android Open Source - PinchToClose Multi Finger Gesture Listener






From Project

Back to project page PinchToClose.

License

The source code is released under:

Apache License

If you think the Android project PinchToClose listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package lt.marius.pinchtoclose;
/**//  w ww  . j  a v  a  2 s .c  o  m
 * 
 * @author Marius Noreikis
 * Created: Mar 28, 2014
 */
public interface MultiFingerGestureListener {
  /**
   * reports relative movement of the pointers
   * @param dx array of X coordinates, dx[0] represents X coordinate
   *  of the first pointer, dx[1] of the second and so on.
   * @param dy array of Y coordinates, dy[0] represents Y coordinate
   *  of the first pointer, dy[1] of the second and so on.
   */
  public void onDeltaMove(float[] dx, float[] dy);
  /**
   * reports movement of the pointers
   * @param startX array of X coordinates representing a point where
   * the movement started; startX[0] represents X coordinate
   *  of the first pointer, startX[1] of the second and so on.
   * @param startY same as startX just for Y coordinate
   * @param endX array of X coordinates representing the point where
   * the pointer currently is; endX[0] represents X coordinate
   *  of the first pointer, endX[1] of the second and so on.
   * @param endY same as endX just for Y coordinate
   */
  public void onMove(float[] startX, float[] startY, float[] endX, float endY[]);
  /**
   * 
   * @param fingerCount pointers on the screen after down event
   */
  public void onDown(int fingerCount);
  /**
   * Current number of fingers touching the screen
   * @param fingerCount pointers on the screen after the pointer was removed
   */
  public void onUp(int fingerCount);
}




Java Source Code List

lt.marius.pinchtoclose.CloseDecoratorLayout.java
lt.marius.pinchtoclose.MultiFingerAreaListener.java
lt.marius.pinchtoclose.MultiFingerGestureDetector.java
lt.marius.pinchtoclose.MultiFingerGestureListener.java
lt.marius.pinchtoclose.PinchToClose.java
lt.marius.pinchtoclose.algo.AreaAlgorithm.java
lt.marius.pinchtoclose.algo.DelaunayArea.java
lt.marius.pinchtoclose.algo.TriangleArea.java
lt.marius.pinchtoclose.algo.Visualizable.java
lt.marius.pinchtoclosedemo.testui.MainActivity.java