gvsig-raster / org.gvsig.raster.tools / trunk / org.gvsig.raster.tools / org.gvsig.raster.tools.app / org.gvsig.raster.tools.app.basic / src / main / java / org / gvsig / raster / tools / app / basic / tool / geolocation / listener / GeorefPanListener.java @ 1174
History | View | Annotate | Download (1.89 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.raster.tools.app.basic.tool.geolocation.listener; |
23 |
|
24 |
|
25 |
import java.awt.Image; |
26 |
|
27 |
import org.gvsig.andami.IconThemeHelper; |
28 |
import org.gvsig.andami.PluginServices; |
29 |
import org.gvsig.fmap.mapcontrol.MapControl; |
30 |
import org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent; |
31 |
import org.gvsig.raster.fmap.layers.GeorefPanListenerImpl; |
32 |
|
33 |
|
34 |
|
35 |
/**
|
36 |
* Extensi?n de la clase PanListenerImpl de FMap para poder llamar a m?todos de
|
37 |
* andami o de gvSIG.
|
38 |
*
|
39 |
* @version 12/07/2007
|
40 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
41 |
*
|
42 |
*/
|
43 |
public class GeorefPanListener extends GeorefPanListenerImpl { |
44 |
|
45 |
/**
|
46 |
* Constructor.
|
47 |
* Asigna el MapControl
|
48 |
* @param mapCtrl
|
49 |
*/
|
50 |
public GeorefPanListener(MapControl mapCtrl) {
|
51 |
super(mapCtrl);
|
52 |
} |
53 |
|
54 |
public void move(MoveEvent event) { |
55 |
super.move(event);
|
56 |
PluginServices.getMainFrame().enableControls(); |
57 |
} |
58 |
|
59 |
/*
|
60 |
* (non-Javadoc)
|
61 |
* @see org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener#getImageCursor()
|
62 |
*/
|
63 |
public Image getImageCursor() { |
64 |
return IconThemeHelper.getImage("hand-cursor"); |
65 |
} |
66 |
} |