Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerChangeSupport.java

View differences:

LayerChangeSupport.java
47 47

  
48 48

  
49 49
/**
50
 * Clase que gestiona el a?adir, borrar y ejecutar los listeners de cambio de
51
 * estilo de las capas.
50
 * <p>Manages all legend listeners of a layer, notifying them any legend change event produced.</p>
52 51
 *
53 52
 * @author Vicente Caballero Navarro
54 53
 */
55 54
public class LayerChangeSupport {
55
	/**
56
	 * <p>The legend listeners of a layer.</p>
57
	 */
56 58
	private ArrayList listeners = new ArrayList();
57 59

  
58 60
	/**
59
	 * A?ade un LegendListener al ArrayList de Listener.
60
	 *
61
	 * @param listener LegendListener.
61
	 * <p>Registers a <code>LegendListener</code>.</p>
62
	 * 
63
	 * @param listener the legend listener
62 64
	 */
63 65
	public void addLayerListener(LegendListener listener) {
64 66
		listeners.add(listener);
65 67
	}
66 68

  
67 69
	/**
68
	 * Borra un LegendListener del ArrayList.
70
	 * <p>Removes a registered <code>LegendListener</code>.</p>
69 71
	 *
70
	 * @param listener LegendListener.
72
	 * @param listener the legend listener
71 73
	 */
72 74
	public void removeLayerListener(LegendListener listener) {
73 75
		listeners.remove(listener);
74 76
	}
75 77

  
76 78
	/**
77
	 * Llamada al m?todo legendChanged de los listener.
79
	 * <p>Notifies a legend change to all legend listeners registered.</p>
78 80
	 *
79
	 * @param e LegendChangeEvent
81
	 * @param e a legend event with the new legend and events that compound this one
80 82
	 */
81 83
	public void callLegendChanged(LegendChangedEvent e) {
82 84
		for (Iterator iter = listeners.iterator(); iter.hasNext();) {

Also available in: Unified diff