org.free.garminimg.swing
Class NullConverter

java.lang.Object
  extended by org.free.garminimg.swing.NullConverter
All Implemented Interfaces:
MapTransformer.Converter<java.awt.geom.Point2D.Double>

public class NullConverter
extends java.lang.Object
implements MapTransformer.Converter<java.awt.geom.Point2D.Double>

A dummy coordinate converter doing no transformation.


Constructor Summary
NullConverter()
           
 
Method Summary
 java.awt.geom.Point2D.Double createFromXY(double x, double y)
          Create a coordinate from a X/Y position.
 void fromWGS84(double lon, double lat, java.awt.geom.Point2D.Double result)
          Convert the WGS84 (radians) into the coordinate system.
 double getX(java.awt.geom.Point2D.Double xy)
           
 double getY(java.awt.geom.Point2D.Double xy)
           
 void toWGS84(java.awt.geom.Point2D.Double coordinate, java.awt.geom.Point2D.Double result)
          Convert the coordinate system into WGS84 (radians).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullConverter

public NullConverter()
Method Detail

fromWGS84

public void fromWGS84(double lon,
                      double lat,
                      java.awt.geom.Point2D.Double result)
Description copied from interface: MapTransformer.Converter
Convert the WGS84 (radians) into the coordinate system.

Specified by:
fromWGS84 in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>

toWGS84

public void toWGS84(java.awt.geom.Point2D.Double coordinate,
                    java.awt.geom.Point2D.Double result)
Description copied from interface: MapTransformer.Converter
Convert the coordinate system into WGS84 (radians).

Specified by:
toWGS84 in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
result - Where the result is put. Longitude in x and latitude in y.

createFromXY

public java.awt.geom.Point2D.Double createFromXY(double x,
                                                 double y)
Description copied from interface: MapTransformer.Converter
Create a coordinate from a X/Y position.

Specified by:
createFromXY in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>

getX

public double getX(java.awt.geom.Point2D.Double xy)
Specified by:
getX in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>

getY

public double getY(java.awt.geom.Point2D.Double xy)
Specified by:
getY in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>


Copyright © 2008. All Rights Reserved.