Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/LabelLegendEvent.java
LabelLegendEvent.java | ||
---|---|---|
45 | 45 |
|
46 | 46 |
|
47 | 47 |
/** |
48 |
* |
|
49 |
* <p>The class <code>LabelLegendEvent</code> stores all necessary information of an event |
|
50 |
* produced when a modification in a text is done.</p> |
|
51 |
* |
|
48 |
* <p>Event produced when changes the value in the field of labeling of a legend.</p> |
|
49 |
* |
|
52 | 50 |
* @see FMapEvent |
53 | 51 |
* @author Vicente Caballero Navarro |
54 | 52 |
*/ |
55 | 53 |
public class LabelLegendEvent extends LegendEvent { |
54 |
/** |
|
55 |
* <p>Previous field value.</p> |
|
56 |
*/ |
|
56 | 57 |
private int oldFieldId; |
58 |
|
|
59 |
/** |
|
60 |
* <p>New field value.</p> |
|
61 |
*/ |
|
57 | 62 |
private int newFieldId; |
58 | 63 |
|
59 | 64 |
/** |
60 |
* Creates a new LabelLegendEvent.
|
|
65 |
* <p>Creates a new legend label event.</p>
|
|
61 | 66 |
* |
62 |
* @param oldFieldId Old field index.
|
|
63 |
* @param newFieldId New field index.
|
|
67 |
* @param oldFieldId previous field value
|
|
68 |
* @param newFieldId new field value
|
|
64 | 69 |
*/ |
65 | 70 |
public LabelLegendEvent(int oldFieldId, int newFieldId) { |
66 | 71 |
this.oldFieldId = oldFieldId; |
... | ... | |
68 | 73 |
} |
69 | 74 |
|
70 | 75 |
/** |
71 |
* Returns the new field index.
|
|
76 |
* <p>Gets the new field value.</p>
|
|
72 | 77 |
* |
73 |
* @return index.
|
|
78 |
* @return the new field value
|
|
74 | 79 |
*/ |
75 | 80 |
public int getNewFieldId() { |
76 | 81 |
return newFieldId; |
77 | 82 |
} |
78 | 83 |
|
79 | 84 |
/** |
80 |
* Returns the old field index.
|
|
85 |
* <p>Gets the previous field value.</p>
|
|
81 | 86 |
* |
82 |
* @return index.
|
|
87 |
* @return the previous field value
|
|
83 | 88 |
*/ |
84 | 89 |
public int getOldFieldId() { |
85 | 90 |
return oldFieldId; |
Also available in: Unified diff