org.cresques.impl.geo
Class Projection

java.lang.Object
  extended by org.cresques.impl.geo.Projection
All Implemented Interfaces:
Cloneable, IProjection
Direct Known Subclasses:
CCLambert, Gauss, Geodetic, Mercator, UtmZone

public abstract class Projection
extends Object
implements IProjection


Field Summary
static int NORTH
           
static int SOUTH
           
 
Constructor Summary
Projection()
           
Projection(Ellipsoid e)
           
 
Method Summary
 Object clone()
           
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)
           
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)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cresques.cts.IProjection
getCT, getExtent, getFullCode, getScale
 

Field Detail

NORTH

public static int NORTH

SOUTH

public static int SOUTH
Constructor Detail

Projection

public Projection()

Projection

public Projection(Ellipsoid e)
Method Detail

getName

public String getName()

getAbrev

public abstract String getAbrev()
Specified by:
getAbrev in interface IProjection

getDatum

public IDatum getDatum()
Specified by:
getDatum in interface IProjection

getElliPar

public double[] getElliPar()

createPoint

public abstract Point2D createPoint(double x,
                                    double y)
Specified by:
createPoint in interface IProjection

createPoint

public Point2D createPoint(Point2D pt)

getProjectionByName

public static IProjection getProjectionByName(IDatum eli,
                                              String name)

getReproyectionTo

public ReProjection getReproyectionTo(Projection proj)

toGeo

public abstract Point2D toGeo(Point2D pt)
Specified by:
toGeo in interface IProjection

fromGeo

public abstract Point2D fromGeo(Point2D gPt,
                                Point2D mPt)
Specified by:
fromGeo in interface IProjection

setGridColor

public void setGridColor(Color c)
Specified by:
setGridColor in interface IProjection

getGridColor

public Color getGridColor()
Specified by:
getGridColor in interface IProjection

coordToString

public static String coordToString(double coord,
                                   String fmt,
                                   boolean isLat)

drawGrid

public abstract void drawGrid(Graphics2D g,
                              ViewPortData vp)
Specified by:
drawGrid in interface IProjection

isProjected

public boolean isProjected()
Specified by:
isProjected in interface IProjection

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2004-2013 gvSIG. All Rights Reserved.