public class GeoBounds extends java.awt.geom.Rectangle2D.Double implements GeoShape
Constructor and Description |
---|
GeoBounds()
Create a geographic bounds which contains the entire earth coordinates.
|
GeoBounds(double minLatitude,
double maxLatitude,
double minLongitude,
double maxLongitude)
Construct a GeoBounds given a latitude and longitude range.
|
GeoBounds(GeoCoord coord,
double rad)
Create a geographic bounds from a geographic center and radius
|
Modifier and Type | Method and Description |
---|---|
double |
getAngularRadius()
Return the angular radius of this geographic bounds.
|
GeoCoord |
getCenter()
Get the geographic center of this bounds object
|
DataRecord |
getData()
Gets the data record associated with this GeoBounds object.
|
GeoBounds |
getGeoBounds()
Get the geographic bounds for this shape.
|
double |
getMaxLatitude()
Return the maximum latitude, in degrees
|
double |
getMaxLongitude()
Return the maximum longitude, in degrees
|
double |
getMinLatitude()
Return the minimum latitude, in degrees
|
double |
getMinLongitude()
Return the minimum longitude, in degrees
|
double |
getRadius()
Get the radius of the geographic bounds
|
RenderStyle |
getRenderStyle()
Get the rendering style for this GeoShape.
|
void |
project(Projection proj)
Projects the geographic coordinates into the given projection
|
void |
setData(DataRecord node)
Sets the data record of this GeoBounds object
|
void |
setRenderStyle(RenderStyle style)
Set the rendering style for this GeoBounds shape.
|
java.lang.String |
toString()
Returns a string representation of this GeoBounds object.
|
createIntersection, createUnion, getBounds2D, getHeight, getWidth, getX, getY, isEmpty, outcode, setRect, setRect
add, add, add, contains, contains, equals, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, union
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
public GeoBounds()
public GeoBounds(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
minLatitude
- minimum latitude in degreesmaxLatitude
- maximum latitude in degreesminLongitude
- minimum longitude in degreesmaxLongitude
- maximum longitude in degreespublic GeoBounds(GeoCoord coord, double rad)
coord
- the center pointrad
- radius of the geographic extent in meters.public double getAngularRadius()
public GeoCoord getCenter()
public DataRecord getData()
public GeoBounds getGeoBounds()
getGeoBounds
in interface GeoShape
public double getMaxLatitude()
public double getMaxLongitude()
public double getMinLatitude()
public double getMinLongitude()
public double getRadius()
public RenderStyle getRenderStyle()
getRenderStyle
in interface GeoShape
public void project(Projection proj)
public void setData(DataRecord node)
public void setRenderStyle(RenderStyle style)
setRenderStyle
in interface GeoShape
style
- The rendering stylepublic java.lang.String toString()
toString
in class java.awt.geom.Rectangle2D.Double