public class GeoConvexHull extends java.awt.Polygon implements GeoShape
Constructor and Description |
---|
GeoConvexHull(GeoCoord[] coordinates)
Create a geographic convex hull from a set of coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
addCoord(GeoCoord coord)
Add a coordinate to the set of points for the convex hull.
|
GeoCoord |
getCenter()
Get the center of the GeoConvexHull
|
DataRecord |
getData()
Gets the data record associated with this GeoConvexHull
|
GeoBounds |
getGeoBounds()
Get the geographic bounds for this shape.
|
GeoCoord[] |
getGeoPoints()
Returns the list of Geographic coordinates for this GeoConvexHull
|
double |
getRadius()
Get the radius for this GeoConvexHull
|
RenderStyle |
getRenderStyle()
Get the rendering style for this GeoConvexHull.
|
void |
project(Projection proj)
Projects the geographic coordinates into the given projection
|
void |
removeCoord(GeoCoord coord)
Remove a point from the convex hull.
|
void |
setData(DataRecord rec)
Sets the data record of this GeoPolygon.
|
void |
setRenderStyle(RenderStyle style)
Set the rendering style for this GeoPolygon.
|
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
public GeoConvexHull(GeoCoord[] coordinates)
coordinates
- an array of geographic coordinates.public void addCoord(GeoCoord coord)
coord
- the new coordinatepublic GeoCoord getCenter()
public DataRecord getData()
public GeoBounds getGeoBounds()
getGeoBounds
in interface GeoShape
public GeoCoord[] getGeoPoints()
public double getRadius()
public RenderStyle getRenderStyle()
getRenderStyle
in interface GeoShape
public void project(Projection proj)
public void removeCoord(GeoCoord coord)
coord
- the coordinate to removepublic void setData(DataRecord rec)
public void setRenderStyle(RenderStyle style)
setRenderStyle
in interface GeoShape
style
- The rendering style