Exemple #1
0
 /*
  * (non-Javadoc)
  * @see com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection#removeLayer(int)
  */
 public void removeLayer(int idLayer) {
   FLayer lyr = (FLayer) layers.get(idLayer);
   callLayerRemoving(LayerCollectionEvent.createLayerRemovingEvent(lyr));
   layers.remove(idLayer);
   this.updateDrawVersion();
   callLayerRemoved(LayerCollectionEvent.createLayerRemovedEvent(lyr));
 }
Exemple #2
0
 /*
  * (non-Javadoc)
  * @see com.iver.cit.gvsig.fmap.layers.layerOperations.LayerCollection#removeLayer(com.iver.cit.gvsig.fmap.layers.FLayer)
  */
 public void removeLayer(FLayer lyr) throws CancelationException {
   callLayerRemoving(LayerCollectionEvent.createLayerRemovingEvent(lyr));
   doRemoveLayer(lyr);
   callLayerRemoved(LayerCollectionEvent.createLayerRemovedEvent(lyr));
 }