Class IdentityPointTransformation

 1 /*
 2  * Copyright (c) 2016 Vivid Solutions.
 3  *
 4  * All rights reserved. This program and the accompanying materials
 5  * are made available under the terms of the Eclipse Public License 2.0
 6  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
 7  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
 8  * and the Eclipse Distribution License is available at
 9  *
10  * http://www.eclipse.org/org/documents/edl-v10.php.
11  */
12 package org.locationtech.jts.awt;
13  
14 import java.awt.geom.Point2D;
15  
16 import org.locationtech.jts.geom.Coordinate;
17  
18 /**
19  * Copies point ordinates with no transformation.
20  * 
21  * @author Martin Davis
22  *
23  */
24 public class IdentityPointTransformation
25 implements PointTransformation
26 {
27     public void transform(Coordinate model, Point2D view)
28     {
29         view.setLocation(model.x, model.y);
30     }
31 }
32