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

View differences:

SymbolLegendEvent.java
40 40
 */
41 41
package com.iver.cit.gvsig.fmap.rendering;
42 42

  
43
import com.iver.cit.gvsig.fmap.FMapEvent;
43 44
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
45
import com.iver.cit.gvsig.fmap.layers.LegendEvent;
44 46

  
45

  
46 47
/**
47
 * Evento de cambio de un simbolo en la leyenda.
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
 * 
51
 * @see FMapEvent
52
 * @author Vicente Caballero Navarro
48 53
 */
49 54
public class SymbolLegendEvent extends ClassificationLegendEvent {
50 55
	private ISymbol oldValue;
51 56
	private ISymbol newValue;
52 57

  
53 58
	/**
54
	 * Crea un nuevo SymbolLegendEvent.
59
	 * Creates a new SymbolLegendEvent.
55 60
	 *
56
	 * @param oldValue Antiguo s?mbolo.
57
	 * @param newValue Nuevo s?mbolo.
61
	 * @param oldValue Old symbol.
62
	 * @param newValue New symbol.
58 63
	 */
59 64
	public SymbolLegendEvent(ISymbol oldValue, ISymbol newValue) {
60 65
		this.oldValue = oldValue;
......
62 67
	}
63 68

  
64 69
	/**
65
	 * Devuelve el antiguo s?mbolo.
70
	 * Returns the old symbol
66 71
	 *
67
	 * @return Antiguo s?mbolo.
72
	 * @return Old symbol.
68 73
	 */
69 74
	public ISymbol getOldValue() {
70 75
		return oldValue;
71 76
	}
72 77

  
73 78
	/**
74
	 * Devuelve el nuevo s?mbolo.
79
	 * Returns the new symbol
75 80
	 *
76
	 * @return Nuevo s?mbolo.
81
	 * @return New symbol.
77 82
	 */
78 83
	public ISymbol getNewValue() {
79 84
		return newValue;
80 85
	}
81
}
86

  
87
	/**
88
	 * Returns the type of the event.
89
	 */
90
	public int getEventType() {
91
		return LegendEvent.LEGEND_SYMBOL_CHANGED;
92
	}
93
}

Also available in: Unified diff