net.refractions.udig.tools.edit.support
Class PointCoordCalculator

java.lang.Object
  extended by net.refractions.udig.tools.edit.support.PointCoordCalculator

public class PointCoordCalculator
extends java.lang.Object

Transforms between points and coordinates

Since:
1.1.0
Author:
Jesse

Constructor Summary
PointCoordCalculator(java.awt.geom.AffineTransform toScreen, MathTransform layerToMap)
           
PointCoordCalculator(PointCoordCalculator other)
           
 
Method Summary
 void setMapToLayer(MathTransform mapToLayer2)
           
 Coordinate toCoord(Point point)
           
 Point toPoint(Coordinate coord)
          Transforms a Coordinate into the point location it would occupy on the screen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointCoordCalculator

public PointCoordCalculator(java.awt.geom.AffineTransform toScreen,
                            MathTransform layerToMap)

PointCoordCalculator

public PointCoordCalculator(PointCoordCalculator other)
Method Detail

toCoord

public Coordinate toCoord(Point point)

toPoint

public Point toPoint(Coordinate coord)
Transforms a Coordinate into the point location it would occupy on the screen.

Parameters:
coord - coordinate object
Returns:
point coordinate would occupy on the screen.

setMapToLayer

public void setMapToLayer(MathTransform mapToLayer2)