Revision 764 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java
NewMapControl.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import com.hardcode.driverManager.DriverLoadException; |
4 | 4 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
5 |
import com.iver.cit.gvsig.fmap.layers.LayerEvent; |
|
5 | 6 |
import com.iver.cit.gvsig.fmap.operations.Cancellable; |
6 | 7 |
import com.iver.cit.gvsig.fmap.tools.BehaviorException; |
7 | 8 |
import com.iver.cit.gvsig.fmap.tools.Behavior.MapTool; |
... | ... | |
498 | 499 |
* @see com.iver.cit.gvsig.fmap.AtomicEventListener#atomicEvent(com.iver.cit.gvsig.fmap.AtomicEvent) |
499 | 500 |
*/ |
500 | 501 |
public void atomicEvent(AtomicEvent e) { |
501 |
NewMapControl.this.drawMap(); |
|
502 |
boolean redraw = false; |
|
503 |
LayerEvent[] layerEvents = e.getLayerEvents(); |
|
504 |
for (int i = 0; i < layerEvents.length; i++) { |
|
505 |
if (layerEvents[i].getProperty().equals("visible")){ |
|
506 |
redraw = true; |
|
507 |
} |
|
508 |
} |
|
509 |
if (e.getExtentEvents().length > 0) redraw = true; |
|
510 |
if (e.getLayerCollectionEvents().length > 0) redraw = true; |
|
511 |
if (e.getLegendEvents().length > 0) redraw = true; |
|
512 |
if (e.getSelectionEvents().length > 0) redraw = true; |
|
513 |
|
|
514 |
if (redraw){ |
|
515 |
NewMapControl.this.drawMap(); |
|
516 |
} |
|
502 | 517 |
} |
503 | 518 |
} |
504 | 519 |
} |
Also available in: Unified diff