Revision 1227

View differences:

org.gvsig.raster.georeferencing/trunk/org.gvsig.raster.georeferencing/org.gvsig.raster.georeferencing.swing/org.gvsig.raster.georeferencing.swing.api/src/main/java/org/gvsig/raster/georeferencing/swing/view/ViewListener.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
4
 *
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 org.gvsig.raster.georeferencing.swing.view;
20

  
21
import java.util.EventListener;
22

  
23
/**
24
 * Interfaz que informa de eventos de acciones que se est?n produciendo
25
 * o que se han producido sobre la vista
26
 * 31/01/2008
27
 * @author Nacho Brodin nachobrodin@gmail.com
28
 */
29
public interface ViewListener extends EventListener {
30
	
31
	/**
32
	 * Evento que se produce cuando se a?ade una herramienta sobre la vista
33
	 * @param ev ViewEvent
34
	 */
35
	public void addingTool(ViewEvent ev);
36
		
37
	/**
38
	 * Evento producido cuando se empieza a dibujar
39
	 * @param ev ViewEvent
40
	 */
41
	public void startDraw(ViewEvent ev);
42
	
43
	/**
44
	 * Evento producido cuando se empieza a dibujar
45
	 * @param ev ViewEvent
46
	 */
47
	public void endDraw(ViewEvent ev);
48
	
49
	/**
50
	 * Informa de los cambios sobre el zoom de la vista
51
	 * @param ev
52
	 */
53
	public void zoomViewChanged(ViewEvent ev);
54
}
0 55

  
org.gvsig.raster.georeferencing/trunk/org.gvsig.raster.georeferencing/org.gvsig.raster.georeferencing.swing/org.gvsig.raster.georeferencing.swing.api/src/main/java/org/gvsig/raster/georeferencing/swing/view/ViewEvent.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
4
 *
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 org.gvsig.raster.georeferencing.swing.view;
20

  
21
import java.util.EventObject;
22

  
23
/**
24
 * Evento lanzado por la vista cuando se realizan acciones sobre ella.
25
 * 
26
 * 17/01/2008
27
 * @author Nacho Brodin nachobrodin@gmail.com
28
 */
29
public class ViewEvent  extends EventObject {
30
	private static final long serialVersionUID = 1L;
31
	
32
	/**
33
	 * Constructor
34
	 * @param source
35
	 */
36
	public ViewEvent(Object source) {
37
		super(source);
38
	}
39
}
0 40

  

Also available in: Unified diff