/[schmitzm]/trunk/src/skrueger/geotools/XMapPaneActionAdapter.java
ViewVC logotype

Contents of /trunk/src/skrueger/geotools/XMapPaneActionAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 685 - (show annotations)
Wed Feb 10 15:04:02 2010 UTC (15 years ago) by alfonx
File size: 2986 byte(s)
copy RC2 to trunk
1 /*******************************************************************************
2 * Copyright (c) 2009 Martin O. J. Schmitz.
3 *
4 * This file is part of the SCHMITZM library - a collection of utility
5 * classes based on Java 1.6, focusing (not only) on Java Swing
6 * and the Geotools library.
7 *
8 * The SCHMITZM project is hosted at:
9 * http://wald.intevation.org/projects/schmitzm/
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public License
13 * as published by the Free Software Foundation; either version 3
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public License (license.txt)
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 * or try this link: http://www.gnu.org/licenses/lgpl.html
25 *
26 * Contributors:
27 * Martin O. J. Schmitz - initial API and implementation
28 * Stefan A. Krüger - additional utility classes
29 ******************************************************************************/
30
31 package skrueger.geotools;
32
33 import java.awt.Point;
34 import java.awt.event.MouseEvent;
35 import java.awt.event.MouseWheelEvent;
36
37 import org.opengis.geometry.DirectPosition;
38
39 /**
40 * Empty implementation of {@link XMapPaneAction}. No method of this class
41 * does anything.
42 * @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany)
43 */
44 public class XMapPaneActionAdapter implements XMapPaneAction {
45
46 /**
47 * Implements the action on a mouse click event. Does nothing.
48 */
49 @Override
50 public void performClick(XMapPane mapPane, MouseEvent ev, DirectPosition coord) {
51 }
52
53 /**
54 * Implements the action AFTER a mouse drag has ended. Does nothing.
55 */
56 @Override
57 public void performDragged(XMapPane mapPane, MouseEvent ev,
58 Point dragStartPos, Point dragLastPos, DirectPosition startCoord,
59 DirectPosition endCoord) {
60 }
61
62 /**
63 * Implements the action DURING a mouse drag. Does nothing.
64 */
65 @Override
66 public void performDragging(XMapPane mapPane, MouseEvent ev,
67 Point dragStartPos, Point dragLastPos, DirectPosition startCoord,
68 DirectPosition endCoord) {
69 }
70
71 /**
72 * Implements the action on a keyboard stroke. Does nothing.
73 */
74 @Override
75 public void performKeyboard(XMapPane mapPane, Object param) {
76 }
77
78 /**
79 * Implements the action on mouse wheel event. Does nothing.
80 */
81 @Override
82 public void performWheel(XMapPane mapPane, MouseWheelEvent ev,
83 DirectPosition coord) {
84 }
85
86 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26