protected void fireLayerRemoved(Layer layer) { checkLayerLockNotHeld(); for (MapView.LayerChangeListener l : MapView.layerChangeListeners) { l.layerRemoved(layer); } }
protected void fireEditLayerChanged(OsmDataLayer oldLayer, OsmDataLayer newLayer) { checkLayerLockNotHeld(); for (EditLayerChangeListener l : editLayerChangeListeners) { l.editLayerChanged(oldLayer, newLayer); } }
/** * Calls the {@link LayerChangeListener#activeLayerChange(Layer, Layer)} method of all listeners. * * @param oldLayer The old layer * @param newLayer The new active layer. */ protected void fireActiveLayerChanged(Layer oldLayer, Layer newLayer) { checkLayerLockNotHeld(); for (LayerChangeListener l : layerChangeListeners) { l.activeLayerChange(oldLayer, newLayer); } }