[Schmitzm-commits] r631 - in branches/2.0-RC2/src: schmitzm/swing/event skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jan 28 15:33:35 CET 2010


Author: mojays
Date: 2010-01-28 15:33:34 +0100 (Thu, 28 Jan 2010)
New Revision: 631

Added:
   branches/2.0-RC2/src/schmitzm/swing/event/SelectiveMouseAdapter.java
Modified:
   branches/2.0-RC2/src/skrueger/geotools/XMapPaneAction.java
Log:
new SelectiveMouseAdapter

Added: branches/2.0-RC2/src/schmitzm/swing/event/SelectiveMouseAdapter.java
===================================================================
--- branches/2.0-RC2/src/schmitzm/swing/event/SelectiveMouseAdapter.java	2010-01-28 14:20:44 UTC (rev 630)
+++ branches/2.0-RC2/src/schmitzm/swing/event/SelectiveMouseAdapter.java	2010-01-28 14:33:34 UTC (rev 631)
@@ -0,0 +1,66 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Martin O. J. Schmitz.
+ * 
+ * This file is part of the SCHMITZM library - a collection of utility 
+ * classes based on Java 1.6, focusing (not only) on Java Swing 
+ * and the Geotools library.
+ * 
+ * The SCHMITZM project is hosted at:
+ * http://wald.intevation.org/projects/schmitzm/
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public License (license.txt)
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ * or try this link: http://www.gnu.org/licenses/lgpl.html
+ * 
+ * Contributors:
+ *     Martin O. J. Schmitz - initial API and implementation
+ *     Stefan A. Krüger - additional utility classes
+ ******************************************************************************/
+
+package schmitzm.swing.event;
+
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
+
+/**
+ * @author <a href="mailto:martin.schmitz at koeln.de">Martin Schmitz</a> (University of Bonn/Germany)
+ *
+ */
+public class SelectiveMouseAdapter extends MouseAdapter {
+  
+  public void performMouseClicked(MouseEvent e) {
+  }
+
+  public void performMouseDragged(MouseEvent e) {
+  }
+  
+  public void performMouseEntered(MouseEvent e) {
+  }
+  
+  public void performMouseExited(MouseEvent e) {
+  }
+
+  public void performMouseMoved(MouseEvent e) {
+  }
+
+  public void performMousePressed(MouseEvent e) {
+  }
+
+  public void performMouseReleased(MouseEvent e) {
+  }
+
+  public void performMouseWheelMoved(MouseEvent e) {
+  }
+
+}

Modified: branches/2.0-RC2/src/skrueger/geotools/XMapPaneAction.java
===================================================================
--- branches/2.0-RC2/src/skrueger/geotools/XMapPaneAction.java	2010-01-28 14:20:44 UTC (rev 630)
+++ branches/2.0-RC2/src/skrueger/geotools/XMapPaneAction.java	2010-01-28 14:33:34 UTC (rev 631)
@@ -34,14 +34,19 @@
 
 import org.opengis.geometry.DirectPosition;
 
+import schmitzm.swing.event.MouseInputType;
+
 /**
- * 
+ * Defines an action (e.g. Zoom in, zoom out, drag) when a click, drag or
+ * window selection is performed on a {@link XMapPane}. 
  * @author <a href="mailto:martin.schmitz at koeln.de">Martin Schmitz</a> (University of Bonn/Germany)
  */
 public interface XMapPaneAction {
   
   /**
-   * Defines the action in case of a single click on the map. 
+   * Defines the action in case of a single click on the map. Called by
+   * ### XMapPaneMouseAdapter ### on {@link MouseInputType#LClick} and
+   * {@link MouseInputType#RClick}.
    * @param mapPane map pane the action should be performed on
    * @param ev      mouse event of the action
    * @param coord   geo coordinate the click is performed on



More information about the Schmitzm-commits mailing list