[Schmitzm-commits] r1005 - branches/2.2.x/src/schmitzm/geotools/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 14 22:10:09 CEST 2010


Author: alfonx
Date: 2010-09-14 22:10:09 +0200 (Tue, 14 Sep 2010)
New Revision: 1005

Modified:
   branches/2.2.x/src/schmitzm/geotools/gui/XMapPane.java
Log:


Modified: branches/2.2.x/src/schmitzm/geotools/gui/XMapPane.java
===================================================================
--- branches/2.2.x/src/schmitzm/geotools/gui/XMapPane.java	2010-09-14 19:58:11 UTC (rev 1004)
+++ branches/2.2.x/src/schmitzm/geotools/gui/XMapPane.java	2010-09-14 20:10:09 UTC (rev 1005)
@@ -2199,6 +2199,19 @@
 		return getWorldToScreenTransform().transform(new Point2D.Double(x, y),
 				null);
 	}
+	
+	/**
+	 * Transformiert einen Fenster-Koordinate in eine Geo-Koordinaten.
+	 * 
+	 * @param x
+	 *            X-Koordinate 
+	 * @param y
+	 *            Y-Koordinate 
+	 */
+	public Point2D tranformWindowToGeo(final double x, final double y) {
+		return getScreenToWorld().transform(new Point2D.Double(x, y),
+				null);
+	}
 
 	/**
 	 * Transformiert einen Fenster-Koordinaten-Bereich in Geo-Koordinaten.



More information about the Schmitzm-commits mailing list