Back to project page TileView.
The source code is released under:
MIT License
If you think the Android project TileView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qozix.tileview.paths; /* ww w . jav a 2s. c om*/ import java.util.List; import android.graphics.Path; import android.graphics.Point; public class PathHelper { private PathHelper() { } public static Path pathFromPoints( List<Point> points ) { Path path = new Path(); Point start = points.get( 0 ); path.moveTo( (float) start.x, (float) start.y ); int l = points.size(); for ( int i = 1; i < l; i++ ) { Point point = points.get( i ); path.lineTo( (float) point.x, (float) point.y ); } return path; } }