public class GeoPolygon extends java.awt.Polygon implements GeoShape
Modifier | Constructor and Description |
---|---|
protected |
GeoPolygon()
Create an empty geographic polygon.
|
|
GeoPolygon(GeoCoord[] coordinates)
Create a geographic polygon with the specified coordinates
|
Modifier and Type | Method and Description |
---|---|
GeoCoord |
getCenter()
Get the center of the GeoPolygon
|
java.util.ArrayList<GeoCoord> |
getCoordinates()
Return the list of coordinates for this GeoPolygon
|
DataRecord |
getData()
Gets the data record associated with this GeoPolygon
|
GeoBounds |
getGeoBounds()
Get the geographic bounds for this shape.
|
GeoCoord[] |
getGeoPoints()
Returns the list of Geographic coordinates for this GeoPolygon
|
double |
getRadius()
Get the radius for this GeoPolygon
|
RenderStyle |
getRenderStyle()
Get the rendering style for this GeoPolygon.
|
void |
project(Projection proj)
Projects the geographic coordinates into the given projection
|
void |
setData(DataRecord rec)
Sets the data record of this GeoPolygon.
|
protected void |
setGeoPoints(GeoCoord[] coordinates)
Set the geographic coordinates for this polygon.
|
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
protected GeoPolygon()
setGeoPoints
public GeoPolygon(GeoCoord[] coordinates)
coordinates
- the coordinates for the geographic polygonpublic GeoCoord getCenter()
public java.util.ArrayList<GeoCoord> getCoordinates()
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 setData(DataRecord rec)
protected void setGeoPoints(GeoCoord[] coordinates)
coordinates
- the coordinates for the geographic polygonpublic void setRenderStyle(RenderStyle style)
setRenderStyle
in interface GeoShape
style
- The rendering style