org.cresques.impl.geo
Class ProjPoint

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by org.cresques.impl.geo.ProjPoint
All Implemented Interfaces:
Cloneable, Projected
Direct Known Subclasses:
UtmPoint

public class ProjPoint
extends Point2D
implements Projected

Author:
"Luis W. Sevilla" *

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 double X
           
 double Y
           
 
Constructor Summary
ProjPoint()
           
ProjPoint(double x, double y)
           
ProjPoint(Point2D pt)
           
ProjPoint(Projection proj)
           
ProjPoint(Projection proj, double x, double y)
           
ProjPoint(Projection proj, Point2D pt)
           
 
Method Summary
 IProjection getProjection()
          Returns the current projection.
 double getX()
           
 double getY()
           
 void reProject(ICoordTrans rp)
          Changes projection of the graphical information of this object.
 void setLocation(double x, double y)
           
 Point2D toGeo()
           
 String toString()
           
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

X

public double X

Y

public double Y
Constructor Detail

ProjPoint

public ProjPoint()

ProjPoint

public ProjPoint(Projection proj)

ProjPoint

public ProjPoint(double x,
                 double y)

ProjPoint

public ProjPoint(Projection proj,
                 double x,
                 double y)

ProjPoint

public ProjPoint(Point2D pt)

ProjPoint

public ProjPoint(Projection proj,
                 Point2D pt)
Method Detail

getProjection

public IProjection getProjection()
Description copied from interface: Projected

Returns the current projection.

Specified by:
getProjection in interface Projected
Returns:
current projection
See Also:
Projected.reProject(ICoordTrans)

reProject

public void reProject(ICoordTrans rp)
Description copied from interface: Projected

Changes projection of the graphical information of this object.

Specified by:
reProject in interface Projected
Parameters:
rp - transformation coordinates for obtaining the new projection
See Also:
Projected.getProjection()

getX

public double getX()
Specified by:
getX in class Point2D

getY

public double getY()
Specified by:
getY in class Point2D

setLocation

public void setLocation(double x,
                        double y)
Specified by:
setLocation in class Point2D

toString

public String toString()
Overrides:
toString in class Object

toGeo

public Point2D toGeo()


Copyright © 2004-2013 gvSIG. All Rights Reserved.