Back to project page zmap.
The source code is released under:
GNU Lesser General Public License
If you think the Android project zmap 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.zmap.geom; /*w ww.ja v a2s . c o m*/ public class Ring extends PointCollection implements IRing, IPointCollection, IPointCollectionEdit { public Ring() { super(); ringArea = Double.NaN; ringPerimeter = Double.NaN; } @Override public double area() { return ringArea; } @Override public double perimeter() { return ringPerimeter; } @Override public void close() { } @Override public boolean isClosed() { return ringClosed; } @Override public boolean isSimple() { return ringSimple; } @Override protected void update() { super.update(); checkClosed(); checkSimple(); if(isClosed() && isSimple()) { calculatePerimeter(); calculateArea(); } else { ringArea = Double.NaN; ringPerimeter = Double.NaN; } } private void calculatePerimeter() { } private void calculateArea() { } private void checkClosed() { } private void checkSimple() { } private double ringArea; private double ringPerimeter; private boolean ringClosed; private boolean ringSimple; }