root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / LegendClearEvent.java @ 38563
History | View | Annotate | Download (899 Bytes)
1 | 14195 | jvidal | package com.iver.cit.gvsig.fmap.rendering; |
---|---|---|---|
2 | |||
3 | 16185 | jdominguez | import com.iver.cit.gvsig.fmap.FMapEvent; |
4 | 14195 | jvidal | import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
5 | 16185 | jdominguez | import com.iver.cit.gvsig.fmap.layers.LegendEvent; |
6 | /**
|
||
7 | * <p>The class <code>LegendClearEvent</code> stores all necessary information of an event
|
||
8 | * produced when a legend is cleared.</p>
|
||
9 | *
|
||
10 | * @see FMapEvent
|
||
11 | * @author Vicente Caballero Navarro
|
||
12 | */
|
||
13 | 14195 | jvidal | public class LegendClearEvent extends ClassificationLegendEvent { |
14 | private ISymbol[] oldSymbols; |
||
15 | 16185 | jdominguez | /**
|
16 | * Constructor method
|
||
17 | * @param oldSymbols
|
||
18 | */
|
||
19 | 14195 | jvidal | public LegendClearEvent(ISymbol[] oldSymbols) { |
20 | this.oldSymbols = oldSymbols;
|
||
21 | } |
||
22 | 16185 | jdominguez | /**
|
23 | * Obtains the old symbols of the legend
|
||
24 | * @return
|
||
25 | */
|
||
26 | 14195 | jvidal | public ISymbol[] getOldSymbols() { |
27 | return oldSymbols;
|
||
28 | } |
||
29 | 16185 | jdominguez | /**
|
30 | * Returns the type of the event
|
||
31 | */
|
||
32 | public int getEventType() { |
||
33 | return LegendEvent.LEGEND_CLEARED;
|
||
34 | } |
||
35 | } |