public abstract class Projection extends Object implements IProjection
Constructor and Description |
---|
Projection() |
Projection(Ellipsoid e) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a copy of the object.
|
static String |
coordToString(double coord,
String fmt,
boolean isLat) |
abstract Point2D |
createPoint(double x,
double y) |
Point2D |
createPoint(Point2D pt) |
abstract void |
drawGrid(Graphics2D g,
ViewPortData vp) |
String |
export(String format)
Return the string representation of projection in the format.
|
abstract Point2D |
fromGeo(Point2D gPt,
Point2D mPt) |
abstract String |
getAbrev() |
IDatum |
getDatum() |
double[] |
getElliPar() |
Color |
getGridColor() |
String |
getName() |
static IProjection |
getProjectionByName(IDatum eli,
String name) |
ReProjection |
getReproyectionTo(Projection proj) |
boolean |
isProjected() |
void |
setGridColor(Color c) |
abstract Point2D |
toGeo(Point2D pt) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCT, getExtent, getFullCode, getScale
public Projection()
public Projection(Ellipsoid e)
public String getName()
public abstract String getAbrev()
getAbrev
in interface IProjection
public IDatum getDatum()
getDatum
in interface IProjection
public double[] getElliPar()
public abstract Point2D createPoint(double x, double y)
createPoint
in interface IProjection
public static IProjection getProjectionByName(IDatum eli, String name)
public ReProjection getReproyectionTo(Projection proj)
public abstract Point2D toGeo(Point2D pt)
toGeo
in interface IProjection
public abstract Point2D fromGeo(Point2D gPt, Point2D mPt)
fromGeo
in interface IProjection
public void setGridColor(Color c)
setGridColor
in interface IProjection
public Color getGridColor()
getGridColor
in interface IProjection
public abstract void drawGrid(Graphics2D g, ViewPortData vp)
drawGrid
in interface IProjection
public boolean isProjected()
isProjected
in interface IProjection
public Object clone() throws CloneNotSupportedException
Cloneable
clone
in class Object
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 String export(String format)
IProjection
export
in interface IProjection