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

View differences:

AtomicEvent.java
50 50

  
51 51

  
52 52
/**
53
 * Evento.
53
 * <p>An atomic event represents a group of events that will be attended without any interruption.</p>
54
 * 
55
 * <p>This kind of events are created by the buffer of events of the {@link MapContext MapContext}.</p>
54 56
 */
55 57
public class AtomicEvent extends FMapEvent {
58
	/**
59
	 * <p>Events that constitute this one.</p>
60
	 */
56 61
	private ArrayList events;
57 62

  
58 63
	/**
59
	 * Crea un nuevo AtomicEvent.
64
	 * <p>Creates a new instance of this kind of event.</p>
60 65
	 *
61
	 * @param fmapEvents ArrayList de FMapEvent.
66
	 * @param fmapEvents events that will constitute this one
62 67
	 */
63 68
	public AtomicEvent(ArrayList fmapEvents) {
64 69
		this.events = (ArrayList) fmapEvents.clone();
65 70
	}
66 71

  
67 72
	/**
68
	 * Devuelve el FMapEvent a partir de un ?ndice.
73
	 * <p>Returns the event at the specified position in the internal list.</p>
69 74
	 *
70
	 * @param index ?ndice.
75
	 * @param index index of event to return
71 76
	 *
72
	 * @return FMapEvent.
77
	 * @return event at the specified position in this list
73 78
	 */
74 79
	public FMapEvent getEvent(int index) {
75 80
		return (FMapEvent) events.get(index);
76 81
	}
77 82

  
78 83
	/**
79
	 * Devuelve el n?mero de eventos.
84
	 * <p>Returns the number of events that constitute this one.</p>
80 85
	 *
81
	 * @return N?mero de eventos.
86
	 * @return number of events that constitute this one
82 87
	 */
83 88
	public int getEventCount() {
84 89
		return events.size();
85 90
	}
86 91

  
87 92
	/**
88
	 * Devuelve un vector con los eventos de leyenda.
93
	 * <p>Returns all legend events that constitute this one.</p>
89 94
	 *
90
	 * @return Vector de eventos de leyenda.
95
	 * @return an array with all legend events that constitute this one
91 96
	 */
92 97
	public LegendEvent[] getLegendEvents() {
93 98
		ArrayList ret = new ArrayList();
......
104 109
	}
105 110

  
106 111
	/**
107
	 * Devuelve un vector con los eventos de colecciones de capas.
112
	 * <p>Returns all layer collection events that constitute this one.</p>
108 113
	 *
109
	 * @return vector con los eventos de colecciones de capas.
114
	 * @return an array with all layer collection events that constitute this one
110 115
	 */
111 116
	public LayerCollectionEvent[] getLayerCollectionEvents() {
112 117
		ArrayList ret = new ArrayList();
......
123 128
	}
124 129

  
125 130
	/**
126
	 * Devuelve un vector con los eventos de selecci?n.
131
	 * <p>Returns all vector layer selection events that constitute this one.</p>
127 132
	 *
128
	 * @return vector de eventos de selecci?n.
133
	 * @return an array with all vector layer selection events that constitute this one
129 134
	 */
130 135
	public SelectionEvent[] getSelectionEvents() {
131 136
		ArrayList ret = new ArrayList();
......
142 147
	}
143 148

  
144 149
	/**
145
	 * Devuelve un vector con los eventos de extent.
150
	 * <p>Returns all extent events that constitute this one.</p>
146 151
	 *
147
	 * @return vector con los eventos de extent.
152
	 * @return an array with all extent events that constitute this one
148 153
	 */
149 154
	public ExtentEvent[] getExtentEvents() {
150 155
		ArrayList ret = new ArrayList();
......
161 166
	}
162 167

  
163 168
	/**
164
	 * Devuelve un vector con los eventos de capa.
169
	 * <p>Returns all layer events that constitute this one.</p>
165 170
	 *
166
	 * @return vector con los eventos de capa.
171
	 * @return an array with all layer events that constitute this one
167 172
	 */
168 173
	public LayerEvent[] getLayerEvents() {
169 174
		ArrayList ret = new ArrayList();
......
180 185
	}
181 186

  
182 187
	/**
183
	 * Devuelve un vector con los eventos de color.
188
	 * <p>Returns all color events that constitute this one.</p>
184 189
	 *
185
	 * @return vector con los eventos de color.
190
	 * @return an array with all color events that constitute this one
186 191
	 */
187 192
	public ColorEvent[] getColorEvents() {
188 193
		ArrayList ret = new ArrayList();
......
197 202

  
198 203
		return (ColorEvent[]) ret.toArray(new ColorEvent[0]);
199 204
	}
205

  
200 206
	/**
201
	 * Devuelve un vector con los eventos de proyeccion.
207
	 * <p>Returns all projection events that constitute this one.</p>
202 208
	 *
203
	 * @return vector con los eventos de proyeccion.
209
	 * @return an array with all projection events that constitute this one
204 210
	 */
205
	
206 211
	public ProjectionEvent[] getProjectionEvents() {
207 212
		ArrayList ret = new ArrayList();
208 213

  

Also available in: Unified diff