Revision 16185 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/LegendClearEvent.java

View differences:

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

  
3
import com.iver.cit.gvsig.fmap.FMapEvent;
3 4
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
4

  
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
 */
5 13
public class LegendClearEvent extends ClassificationLegendEvent {
6 14
	private ISymbol[] oldSymbols;
7

  
15
	/**
16
	 * Constructor method
17
	 * @param oldSymbols
18
	 */
8 19
	public LegendClearEvent(ISymbol[] oldSymbols) {
9 20
		this.oldSymbols = oldSymbols;
10 21
	}
11
	
22
	/**
23
	 * Obtains the old symbols of the legend
24
	 * @return
25
	 */
12 26
	public ISymbol[] getOldSymbols() {
13 27
		return oldSymbols;
14 28
	}
15
}
29
	/**
30
	 * Returns the type of the event
31
	 */
32
	public int getEventType() {
33
		return LegendEvent.LEGEND_CLEARED;
34
	}
35
}

Also available in: Unified diff