Statistics
| Revision:

svn-gvsig-desktop / tags / J2ME_compat_v1_2_Build_1209 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / rendering / LegendClearEvent.java @ 19509

History | View | Annotate | Download (899 Bytes)

1
package com.iver.cit.gvsig.fmap.rendering;
2

    
3
import com.iver.cit.gvsig.fmap.FMapEvent;
4
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
5
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
public class LegendClearEvent extends ClassificationLegendEvent {
14
        private ISymbol[] oldSymbols;
15
        /**
16
         * Constructor method
17
         * @param oldSymbols
18
         */
19
        public LegendClearEvent(ISymbol[] oldSymbols) {
20
                this.oldSymbols = oldSymbols;
21
        }
22
        /**
23
         * Obtains the old symbols of the legend
24
         * @return
25
         */
26
        public ISymbol[] getOldSymbols() {
27
                return oldSymbols;
28
        }
29
        /**
30
         * Returns the type of the event
31
         */
32
        public int getEventType() {
33
                return LegendEvent.LEGEND_CLEARED;
34
        }
35
}