Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libRaster / src / org / gvsig / raster / grid / render / VisualPropertyEvent.java @ 24170

History | View | Annotate | Download (1.86 KB)

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.grid.render;
20

    
21
import java.util.EventObject;
22

    
23
/**
24
 * Evento de una propiedad cuando esta cambia
25
 * 
26
 * 07/01/2008
27
 * @author Nacho Brodin (nachobrodin@gmail.com)
28
 */
29
public class VisualPropertyEvent extends EventObject {
30
        private static final long serialVersionUID = -1649548367781607532L;
31
        private String name = null;
32
        private Object value = null;
33

    
34
        /**
35
         * Constructor. Se asignan los valores de nombre y valor de la 
36
         * propiedad que ha disparado el evento.
37
         * @param source Objeto fuente
38
         * @param name Nombre de la propiedad
39
         * @param value Valor de la propiedad
40
         */
41
        public VisualPropertyEvent(Object source) {
42
                super(source);
43
        }
44

    
45
        /**
46
         * Obtiene el nombre de la propiedad que dispar? el evento
47
         * @return cadena con el nombre de la propiedad que dispar? el evento
48
         */
49
        public String getName() {
50
                return name;
51
        }
52
        
53
        /**
54
         * Obtiene el valor de la propiedad antes de que se modificara.
55
         * @return Object con el valor de la propiedad que dispar? el evento
56
         */
57
        public Object getValue() {
58
                return value;
59
        }
60
}