Method Summary |
|
public Object | clone() Returns a copy of this. |
protected boolean | containsAll(List coordinate) Returns whether this Polygon contains all of the the given
coordinates. |
protected boolean | containsOrIsVertex(DirectPosition dp) Test whether the coordinate is inside or is vertex of ploygon.
Parameters: dp - Point to be tested whether is inside of polygon. |
protected void | enlarge(double scale) Enlarge the polygon using homothetic transformation method. |
protected GeneralPath | generateGeneralPath(DirectPosition[] points) Generates GeneralPath from the array of points.
Parameters: points - vertices of polygon. |
public DirectPosition[] | getPoints() Returns vertices of this polygon. |
public boolean | hasVertex(DirectPosition p) Returns whether v is one of the vertices of this polygon. |
protected List | reduce() Returns reduced coordinates of vertices so the first vertex has
[0,0] coordinats. |
public void | setCoordinates(DirectPosition[] coordinates) Sets the vertices of this polygon. |
public String | toString() Returns the LINESTRING representation in WKT. |