Android Open Source - PinchToClose Visualizable






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.algo;
//  w  w w  . j av a  2s .c o  m
import android.graphics.Canvas;
import android.graphics.Paint;

/**
 * Interface to draw an object to Canvas
 * @author Marius Noreikis
 * Created: Apr 6, 2014
 */
public interface Visualizable {
  /**
   * object should draw itself to the specified canvas with the specified paint
   * It is up to object whether to use this paint object or not
   * If an object cannot draw itself this method does nothing
   * @param canvas canvas where to paint itself
   * @param paint suggested paint for draw operations
   */
  public void visualize(Canvas canvas, Paint paint);
}




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