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 / LabelLegendEvent.java @ 40559
History | View | Annotate | Download (2.06 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.rendering.legend.events.LegendEvent; |
28 |
|
29 |
|
30 |
|
31 |
/**
|
32 |
* <p>Event produced when changes the value in the field of labeling of a legend.</p>
|
33 |
*
|
34 |
* @see FMapEvent
|
35 |
* @author Vicente Caballero Navarro
|
36 |
*/
|
37 |
public class LabelLegendEvent extends LegendEvent { |
38 |
/**
|
39 |
* <p>Previous field value.</p>
|
40 |
*/
|
41 |
private int oldFieldId; |
42 |
|
43 |
/**
|
44 |
* <p>New field value.</p>
|
45 |
*/
|
46 |
private int newFieldId; |
47 |
|
48 |
/**
|
49 |
* <p>Creates a new legend label event.</p>
|
50 |
*
|
51 |
* @param oldFieldId previous field value
|
52 |
* @param newFieldId new field value
|
53 |
*/
|
54 |
public LabelLegendEvent(int oldFieldId, int newFieldId) { |
55 |
this.oldFieldId = oldFieldId;
|
56 |
this.newFieldId = newFieldId;
|
57 |
} |
58 |
|
59 |
/**
|
60 |
* <p>Gets the new field value.</p>
|
61 |
*
|
62 |
* @return the new field value
|
63 |
*/
|
64 |
public int getNewFieldId() { |
65 |
return newFieldId;
|
66 |
} |
67 |
|
68 |
/**
|
69 |
* <p>Gets the previous field value.</p>
|
70 |
*
|
71 |
* @return the previous field value
|
72 |
*/
|
73 |
public int getOldFieldId() { |
74 |
return oldFieldId;
|
75 |
} |
76 |
} |