Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/SymbolLegendEvent.java
SymbolLegendEvent.java | ||
---|---|---|
45 | 45 |
import com.iver.cit.gvsig.fmap.layers.LegendEvent; |
46 | 46 |
|
47 | 47 |
/** |
48 |
* <p>The class <code>SymbolLegendEvent</code> stores all necessary information of an event |
|
49 |
* produced when a symbol of a legend is changed.</p> |
|
50 |
* |
|
48 |
* <p>Event produced when changes one of the symbols of a classified legend.</p> |
|
49 |
* |
|
51 | 50 |
* @see FMapEvent |
52 | 51 |
* @author Vicente Caballero Navarro |
53 | 52 |
*/ |
54 | 53 |
public class SymbolLegendEvent extends ClassificationLegendEvent { |
54 |
/** |
|
55 |
* <p>Previous symbol style.</p> |
|
56 |
*/ |
|
55 | 57 |
private ISymbol oldValue; |
58 |
|
|
59 |
/** |
|
60 |
* <p>New symbol style.</p> |
|
61 |
*/ |
|
56 | 62 |
private ISymbol newValue; |
57 | 63 |
|
58 | 64 |
/** |
59 |
* Creates a new SymbolLegendEvent.
|
|
65 |
* <p>Creates a new symbol legend event.</p>
|
|
60 | 66 |
* |
61 |
* @param oldValue Old symbol.
|
|
62 |
* @param newValue New symbol.
|
|
67 |
* @param oldValue previous symbol style
|
|
68 |
* @param newValue new symbol style
|
|
63 | 69 |
*/ |
64 | 70 |
public SymbolLegendEvent(ISymbol oldValue, ISymbol newValue) { |
65 | 71 |
this.oldValue = oldValue; |
... | ... | |
67 | 73 |
} |
68 | 74 |
|
69 | 75 |
/** |
70 |
* Returns the old symbol
|
|
76 |
* <p>Gets the previous symbol style.</p>
|
|
71 | 77 |
* |
72 |
* @return Old symbol.
|
|
78 |
* @return the previous symbol style
|
|
73 | 79 |
*/ |
74 | 80 |
public ISymbol getOldValue() { |
75 | 81 |
return oldValue; |
76 | 82 |
} |
77 | 83 |
|
78 | 84 |
/** |
79 |
* Returns the new symbol
|
|
85 |
* <p>Gets the new symbol style.</p>
|
|
80 | 86 |
* |
81 |
* @return New symbol.
|
|
87 |
* @return the new symbol style
|
|
82 | 88 |
*/ |
83 | 89 |
public ISymbol getNewValue() { |
84 | 90 |
return newValue; |
85 | 91 |
} |
86 | 92 |
|
87 | 93 |
/** |
88 |
* Returns the type of the event. |
|
94 |
* <p>Returns the type of this legend event.</p> |
|
95 |
* |
|
96 |
* @return the type of this legend event |
|
97 |
* |
|
98 |
* @see LegendEvent#LEGEND_SYMBOL_CHANGED |
|
89 | 99 |
*/ |
90 | 100 |
public int getEventType() { |
91 | 101 |
return LegendEvent.LEGEND_SYMBOL_CHANGED; |
Also available in: Unified diff