Revision 39494 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/CompoundBehavior.java
CompoundBehavior.java | ||
---|---|---|
45 | 45 |
import java.awt.event.MouseEvent; |
46 | 46 |
import java.awt.event.MouseWheelEvent; |
47 | 47 |
import java.util.ArrayList; |
48 |
import java.util.Collection; |
|
49 |
import java.util.Collections; |
|
48 | 50 |
|
49 | 51 |
import com.iver.cit.gvsig.fmap.MapControl; |
50 | 52 |
import com.iver.cit.gvsig.fmap.tools.Behavior.Behavior; |
... | ... | |
271 | 273 |
* @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#mouseReleased(java.awt.event.MouseEvent) |
272 | 274 |
*/ |
273 | 275 |
public void mouseReleased(MouseEvent e) throws BehaviorException { |
274 |
for (Behavior mapBehavior : behaviors) { |
|
276 |
for (int i=0; i< behaviors.size(); i++) { |
|
277 |
Behavior mapBehavior = behaviors.get(i); |
|
275 | 278 |
mapBehavior.mouseReleased(e); |
276 | 279 |
} |
277 | 280 |
|
278 | 281 |
if(behavior != null) |
279 |
behavior.mouseReleased(e); |
|
282 |
behavior.mouseReleased(e);
|
|
280 | 283 |
} |
281 | 284 |
|
282 | 285 |
/* |
Also available in: Unified diff