|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.free.garminimg.swing.NullConverter
public class NullConverter
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 |
---|
public NullConverter()
Method Detail |
---|
public void fromWGS84(double lon, double lat, java.awt.geom.Point2D.Double result)
MapTransformer.Converter
fromWGS84
in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
public void toWGS84(java.awt.geom.Point2D.Double coordinate, java.awt.geom.Point2D.Double result)
MapTransformer.Converter
toWGS84
in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
result
- Where the result is put. Longitude in x and latitude in y.public java.awt.geom.Point2D.Double createFromXY(double x, double y)
MapTransformer.Converter
createFromXY
in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
public double getX(java.awt.geom.Point2D.Double xy)
getX
in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
public double getY(java.awt.geom.Point2D.Double xy)
getY
in interface MapTransformer.Converter<java.awt.geom.Point2D.Double>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |