Statistics
| Revision:

gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.api / src / main / java / org / gvsig / fmap / dal / coverage / grid / render / VisualPropertyEvent.java @ 2443

History | View | Annotate | Download (1.92 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.fmap.dal.coverage.grid.render;
23

    
24
import java.util.EventObject;
25

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

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

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