org.cresques.impl.geo
Class UtmPoint

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

public class UtmPoint
extends ProjPoint


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 
Fields inherited from class org.cresques.impl.geo.ProjPoint
X, Y
 
Constructor Summary
UtmPoint()
           
UtmPoint(double x, double y)
           
UtmPoint(Point2D pt)
           
UtmPoint(UtmZone zone)
           
UtmPoint(UtmZone zone, double x, double y)
           
UtmPoint(UtmZone zone, 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
 

Constructor Detail

UtmPoint

public UtmPoint()

UtmPoint

public UtmPoint(double x,
                double y)

UtmPoint

public UtmPoint(Point2D pt)

UtmPoint

public UtmPoint(UtmZone zone)

UtmPoint

public UtmPoint(UtmZone zone,
                double x,
                double y)

UtmPoint

public UtmPoint(UtmZone zone,
                Point2D pt)
Method Detail

getProjection

public IProjection getProjection()
Description copied from interface: Projected

Returns the current projection.

Specified by:
getProjection in interface Projected
Overrides:
getProjection in class ProjPoint
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
Overrides:
reProject in class ProjPoint
Parameters:
rp - transformation coordinates for obtaining the new projection
See Also:
Projected.getProjection()

getX

public double getX()
Overrides:
getX in class ProjPoint

getY

public double getY()
Overrides:
getY in class ProjPoint

setLocation

public void setLocation(double x,
                        double y)
Overrides:
setLocation in class ProjPoint

toString

public String toString()
Overrides:
toString in class ProjPoint

toGeo

public Point2D toGeo()
Overrides:
toGeo in class ProjPoint


Copyright © 2004-2013 gvSIG. All Rights Reserved.