Back to project page elf.map.android.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project elf.map.android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * License: Public Domain//from w w w. j a v a2s.co m * Author: elf * EMail: elf198012@gmail.com */ package elf.map; //import java.util.ArrayList; //import java.util.List; public class Line{ public Line(int nPoints){ _points = new Point[nPoints]; // for(int i = 0, n = _points.length; i < n; ++i){ // _points[i] = new Point(); // } } public int Points(){ return _points.length; } public void setPoint(int nIndex, Point point){ _points[nIndex] = point; } public Point getPoint(int nIndex){ return _points[nIndex]; } public Rect getBoundingRect(){ return _rtBoundingRect; } // public Line(String strName){ // this.strName = strName; // } // public void Set(int nIndex, long nLongitude, long nLatitude){ // _points[nIndex] = new Point(nLongitude, nLatitude); // } // public final Point[] getPoints(){ // return _points; // } // public boolean _bWater; public String _strName; // public List<Point> _points = new LinkedList<Point>(); private Point[] _points; public Rect _rtBoundingRect; }