public class Polygon extends Object
| Constructor and Description |
|---|
Polygon(Polygon polygon) |
Polygon(String name) |
Polygon(String name,
List<Point> p) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Point y)
Adds a point to the polygon.
|
boolean |
equals(Object obj) |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Returns a Geometry from the Points of the Polygon
|
void |
remove(Point y)
removes a point from the polygon.
|
long |
size()
Return the size of the polygon
|
String |
toString()
String representation of the polygon
|
public void add(Point y)
y - Point to addpublic void remove(Point y)
y - Point to removepublic String toString()
public long size()
public com.vividsolutions.jts.geom.Geometry getGeometry()
throws com.vividsolutions.jts.io.ParseException
com.vividsolutions.jts.io.ParseException - if Geometry is not validCopyright © 2018. All rights reserved.