Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / rendering / legend / events / LegendEvent.java @ 40559

History | View | Annotate | Download (2.79 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.mapcontext.rendering.legend.events;
25

    
26
import org.gvsig.fmap.mapcontext.events.FMapEvent;
27
import org.gvsig.fmap.mapcontext.layers.operations.ClassifiableVectorial;
28

    
29

    
30

    
31

    
32
/**
33
 * <p><code>LegendEvent</code> represents an event produced at a legend in a layer.</p>
34
 * 
35
 * @see FMapEvent
36
 */
37
public class LegendEvent extends FMapEvent {
38
        /**
39
         * <p>Identifies this event as a change of the value of a legend.</p>
40
         */
41
        public static final int LEGEND_VALUE_CHANGED = 200;
42

    
43
        /**
44
         * <p>Identifies this event as a change of the symbol of a legend.</p>
45
         */
46
        public static final int LEGEND_SYMBOL_CHANGED = 201;
47

    
48
        /**
49
         * <p>Identifies this event as a legend interval change.</p>
50
         */
51
        public static final int LEGEND_INTERVAL_CHANGED = 202;
52

    
53
        /**
54
         * <p>Identifies this event as a clear of a legend.</p>
55
         */
56
        public static final int LEGEND_CLEARED = 203;
57

    
58
        /**
59
         * <p>Identifies this event as a change on the classification of a legend.</p>
60
         */
61
        public static final int LEGEND_CLASSIFICATION_CHANGED = 204;
62

    
63
        /**
64
         * Layer of the legend where the event was produced.
65
         * 
66
         * @see #getLayer()
67
         * @see #setLayer(ClassifiableVectorial)
68
         */
69
        private ClassifiableVectorial layer;
70

    
71
        /**
72
         * <p>Returns the layer of the legend where the event was produced, as a classifiable and vector layer.</p>
73
         *
74
         * @return the layer where the event was produced, as classifiable vector
75
         * 
76
         * @see #setLayer(ClassifiableVectorial)
77
         */
78
        public ClassifiableVectorial getLayer() {
79
                return layer;
80
        }
81

    
82
        /**
83
         * <p>Sets the layer of the legend where the event was produced, as a classifiable and vector layer.</p>
84
         *
85
         * @param layer the layer where the event was produced, as classifiable vector
86
         * 
87
         * @see #getLayer()
88
         */
89
        public void setLayer(ClassifiableVectorial layer) {
90
                this.layer = layer;
91
        }
92
}