public abstract class Projection
extends java.lang.Object
Constructor and Description |
---|
Projection() |
Modifier and Type | Method and Description |
---|---|
abstract GeoCoord |
getCoord(java.awt.Point point)
Get the geographic coordinate which projects to the given screen
coordinate.
|
GeoBounds |
getGeoBounds()
Get the geographic bounds for the projection.
|
Geoid |
getGeoid()
Get the geoid used for projections.
|
GeoCoord |
getProjCenter()
Get the center of projection
|
java.awt.Rectangle |
getViewBounds()
Get the view bounds.
|
abstract java.awt.Shape |
getWorldShape()
Get the world shape for this projection.
|
abstract java.awt.Point |
project(GeoCoord coord)
Project a geographic coordinate into screen coordinates
|
abstract java.awt.Point[] |
project(GeoCoord[] coords)
Project a series of geographic coordinate into screen coordinates.
|
protected abstract void |
rescale()
Rescales the projection.
|
void |
setGeoBounds(GeoBounds bounds)
Set the geographic bounds for the projection.
|
void |
setGeoid(Geoid projGeoid)
Set the geoid used for projections.
|
void |
setProjCenter(GeoCoord projCenter)
Set the center of projection
|
void |
setViewBounds(java.awt.Rectangle bounds)
Set the view bounds.
|
java.lang.String |
toString()
Provide a string representation of the projection.
|
public abstract GeoCoord getCoord(java.awt.Point point) throws ProjectionException
point
- a point in screen coordinatesProjectionException
- if the reverse projection cannot be
performedpublic GeoBounds getGeoBounds()
public Geoid getGeoid()
public GeoCoord getProjCenter()
public java.awt.Rectangle getViewBounds()
public abstract java.awt.Shape getWorldShape()
public abstract java.awt.Point project(GeoCoord coord) throws ProjectionException
coord
- the geographic coordinateProjectionException
- if the projection cannot be performedpublic abstract java.awt.Point[] project(GeoCoord[] coords)
coords
- the geographic coordinatesprotected abstract void rescale()
public void setGeoBounds(GeoBounds bounds)
bounds
- the geographic boundspublic void setGeoid(Geoid projGeoid)
projGeoid
- the geoid representing the earth or other bodypublic void setProjCenter(GeoCoord projCenter)
projCenter
- the center of projectionpublic void setViewBounds(java.awt.Rectangle bounds)
bounds
- the view bounds for the projectionpublic java.lang.String toString()
toString
in class java.lang.Object