View Javadoc
1 /* ------------------------------------------------------------------- 2 GeoVISTA Center (Penn State, Dept. of Geography) 3 Java source file for the class ProjectionIdentity 4 Copyright (c), 2002, GeoVISTA Center 5 All Rights Reserved. 6 Original Author: Frank Hardisty 7 $Author: hardisty $ 8 $Id: ProjectionIdentity.java,v 1.3 2003/05/05 17:34:40 hardisty Exp $ 9 $Date: 2003/05/05 17:34:40 $ 10 Reference: Document no: 11 ___ ___ 12 ------------------------------------------------------------------- * 13 */ 14 15 16 package edu.psu.geovista.app.map; 17 import java.awt.*; 18 import java.awt.geom.*; 19 20 /*** 21 * put your documentation comment here 22 */ 23 public class ProjectionIdentity implements Projection { 24 25 /* 26 * This returns the data passed in as a point without otherwise changing it. 27 * The second argument can be null, or not. If it is not, that object will 28 * returned by the method 29 */ 30 public Point2D.Double project (double lat, double longVal, Point2D.Double pt){ 31 if (pt == null) { 32 pt = new Point2D.Double(longVal, lat); 33 } else { 34 pt.setLocation(longVal, lat); 35 } 36 return pt; 37 } 38 public Shape project (Shape shpIn){ 39 return shpIn; 40 } 41 }

This page was automatically generated by Maven