public abstract class Projection extends java.lang.Object implements IProjection
Constructor and Description |
---|
Projection() |
Projection(Ellipsoid e) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
static java.lang.String |
coordToString(double coord,
java.lang.String fmt,
boolean isLat) |
abstract java.awt.geom.Point2D |
createPoint(double x,
double y) |
java.awt.geom.Point2D |
createPoint(java.awt.geom.Point2D pt) |
abstract void |
drawGrid(java.awt.Graphics2D g,
ViewPortData vp) |
java.lang.String |
export(java.lang.String format)
Return the string representation of projection in the format.
|
abstract java.awt.geom.Point2D |
fromGeo(java.awt.geom.Point2D gPt,
java.awt.geom.Point2D mPt) |
abstract java.lang.String |
getAbrev() |
IDatum |
getDatum() |
double[] |
getElliPar() |
java.awt.Color |
getGridColor() |
java.lang.String |
getName() |
static IProjection |
getProjectionByName(IDatum eli,
java.lang.String name) |
ReProjection |
getReproyectionTo(Projection proj) |
boolean |
isProjected() |
void |
setGridColor(java.awt.Color c) |
abstract java.awt.geom.Point2D |
toGeo(java.awt.geom.Point2D pt) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCT, getExtent, getFullCode, getScale
cloneQuietly, cloneQuietly
public Projection()
public Projection(Ellipsoid e)
public java.lang.String getName()
public abstract java.lang.String getAbrev()
getAbrev
in interface IProjection
public IDatum getDatum()
getDatum
in interface IProjection
public double[] getElliPar()
public abstract java.awt.geom.Point2D createPoint(double x, double y)
createPoint
in interface IProjection
public java.awt.geom.Point2D createPoint(java.awt.geom.Point2D pt)
public static IProjection getProjectionByName(IDatum eli, java.lang.String name)
public ReProjection getReproyectionTo(Projection proj)
public abstract java.awt.geom.Point2D toGeo(java.awt.geom.Point2D pt)
toGeo
in interface IProjection
public abstract java.awt.geom.Point2D fromGeo(java.awt.geom.Point2D gPt, java.awt.geom.Point2D mPt)
fromGeo
in interface IProjection
public void setGridColor(java.awt.Color c)
setGridColor
in interface IProjection
public java.awt.Color getGridColor()
getGridColor
in interface IProjection
public static java.lang.String coordToString(double coord, java.lang.String fmt, boolean isLat)
public abstract void drawGrid(java.awt.Graphics2D g, ViewPortData vp)
drawGrid
in interface IProjection
public boolean isProjected()
isProjected
in interface IProjection
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public java.lang.String export(java.lang.String format)
IProjection
export
in interface IProjection