Revision 14417

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/AbstractClassifiedVectorLegend.java
42 42

  
43 43

  
44 44
/**
45
 * Abstract class that implements the interface for legends composed by
46
 * classified symbols.It will have two methods that will be executed
47
 * depending on the action that had been done with the legend (addition 
48
 * of a new symbol or clear the legend).
49
 *  
45 50
 * @author pepe vidal salvador - jose.vidal.salvador@iver.ses
46 51
 */
47 52
public abstract class AbstractClassifiedVectorLegend extends AbstractLegend implements IClassifiedVectorLegend {
48 53

  
54
	/**
55
	 * Looks for a change in a classified symbol of a legend. To perform
56
	 * it, the Array of LegendListeners is scaned and when the corresponding
57
	 * listener is true, the method is invoked and the change will be done.
58
	 * @param event
59
	 */
49 60
	public void fireClassifiedSymbolChangeEvent(SymbolLegendEvent event) {
50 61
		for (int i = 0; i < getListeners().length; i++) {
51 62
			getListeners()[i].classifiedSymbolChange(event);
52 63
		}
53 64
	}
54
	
65
	/**
66
	 * Looks for a change in a legend of classified symbols. In this case
67
	 * if the specific legend is cleared.
68
	 * @param event
69
	 */
55 70
	public void fireLegendClearEvent(LegendClearEvent event) {
56 71
		for (int i = 0; i < getListeners().length; i++) {
57 72
			getListeners()[i].classifiedLegendClear(event);

Also available in: Unified diff