svn-gvsig-desktop / tags / v1_1_Build_1009 / extensions / extGeoreferencing / src / com / iver / cit / gvsig / fmap / tools / GeorefPointerListenerImpl.java @ 12649
History | View | Annotate | Download (2.26 KB)
1 | 5241 | nacho | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | 5791 | nacho | * Copyright (C) 2006 IVER T.I. and Generalitat Valenciana.
|
4 | 5241 | nacho | *
|
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | */
|
||
19 | package com.iver.cit.gvsig.fmap.tools; |
||
20 | |||
21 | import java.awt.Cursor; |
||
22 | import java.awt.Image; |
||
23 | import java.awt.Point; |
||
24 | import java.awt.Toolkit; |
||
25 | |||
26 | import javax.swing.ImageIcon; |
||
27 | |||
28 | import com.iver.cit.gvsig.fmap.MapControl; |
||
29 | import com.iver.cit.gvsig.fmap.tools.BehaviorException; |
||
30 | import com.iver.cit.gvsig.fmap.tools.Events.PointEvent; |
||
31 | import com.iver.cit.gvsig.fmap.tools.Listeners.PointListener; |
||
32 | |||
33 | |||
34 | /**
|
||
35 | * Implementaci?n de la interfaz PointListener como herramienta para seleccionar
|
||
36 | * puntos georeferenciados sobre una capa LyrPoints
|
||
37 | *
|
||
38 | * @author Nacho Brodin (brodin_ign@gva.es)
|
||
39 | */
|
||
40 | public class GeorefPointerListenerImpl implements PointListener { |
||
41 | private final Image img = new ImageIcon(MapControl.class.getResource( |
||
42 | "images/PointSelectCursor.gif")).getImage();
|
||
43 | private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img, |
||
44 | new Point(16, 16), ""); |
||
45 | |||
46 | /**
|
||
47 | * Crea un nuevo GeorefPointerListenerImpl.
|
||
48 | *
|
||
49 | * @param mc MapControl.
|
||
50 | */
|
||
51 | public GeorefPointerListenerImpl() {
|
||
52 | |||
53 | } |
||
54 | |||
55 | /**
|
||
56 | * M?todo vacio para ser implementado por las clases derivadas
|
||
57 | */
|
||
58 | public void point(PointEvent event) throws BehaviorException { |
||
59 | |||
60 | } |
||
61 | |||
62 | /**
|
||
63 | * Obtiene el puntero del rat?n
|
||
64 | * @return cursor
|
||
65 | */
|
||
66 | public Cursor getCursor() { |
||
67 | return cur;
|
||
68 | } |
||
69 | |||
70 | /**
|
||
71 | * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
|
||
72 | */
|
||
73 | public boolean cancelDrawing() { |
||
74 | return false; |
||
75 | } |
||
76 | |||
77 | public void pointDoubleClick(PointEvent event) throws BehaviorException { |
||
78 | |||
79 | } |
||
80 | } |