org.cresques.impl.geo
Class GeoPoint

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

public class GeoPoint
extends Point2D
implements Projected


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
static int decimales
           
 double h
           
 geojava.SexaAngle Latitude
           
 geojava.SexaAngle Longitude
           
 
Constructor Summary
GeoPoint()
           
GeoPoint(double x, double y)
           
GeoPoint(Point2D pt)
           
GeoPoint(Projection proj, double x, double y)
           
GeoPoint(Projection proj, Point2D pt)
           
GeoPoint(geojava.SexaAngle sexaangle, geojava.SexaAngle sexaangle1, double d)
           
 
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)
           
 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

decimales

public static int decimales

Longitude

public geojava.SexaAngle Longitude

Latitude

public geojava.SexaAngle Latitude

h

public double h
Constructor Detail

GeoPoint

public GeoPoint(geojava.SexaAngle sexaangle,
                geojava.SexaAngle sexaangle1,
                double d)

GeoPoint

public GeoPoint()

GeoPoint

public GeoPoint(double x,
                double y)

GeoPoint

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

GeoPoint

public GeoPoint(Point2D pt)

GeoPoint

public GeoPoint(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


Copyright © 2004-2013 gvSIG. All Rights Reserved.