org.openstreetmap.josm.gui
Interface MapView.LayerChangeListener

All Known Implementing Classes:
AllFormatsImporter, AutosaveTask, FileExporter, FileImporter, GeoJSONExporter, GpxExporter, GpxImporter, HistoryBrowserDialogManager, HistoryBrowserModel, HistoryDataSet, ImageryMenu, JosmAction.LayerChangeAdapter, JpgImporter, LayerListDialog.ActivateLayerAction, LayerListDialog.LayerListModel, MainMenu.PresetsMenuEnabler, MapFrame, MemberTable.ZoomToGapAction, MultipolygonCache, NMEAImporter, OsmBzip2Exporter, OsmBzip2Importer, OsmChangeImporter, OsmExporter, OsmGzipExporter, OsmGzipImporter, OsmImporter, OsmValidator, RelationDialogManager, RelationListDialog.NewAction, SelectionTableModel, TaggingPreset, TaggingPresetMenu, TaggingPresetSeparator, UndoRedoHandler, UserListDialog, ValidatorDialog, ValidatorLayer, WMSLayerExporter, WMSLayerImporter, ZoomToAction
Enclosing class:
MapView

public static interface MapView.LayerChangeListener

Interface to notify listeners of a layer change.


Method Summary
 void activeLayerChange(Layer oldLayer, Layer newLayer)
          Notifies this listener that the active layer has changed.
 void layerAdded(Layer newLayer)
          Notifies this listener that a layer has been added.
 void layerRemoved(Layer oldLayer)
          Notifies this listener that a layer has been removed.
 

Method Detail

activeLayerChange

void activeLayerChange(Layer oldLayer,
                       Layer newLayer)
Notifies this listener that the active layer has changed.

Parameters:
oldLayer - The previous active layer
newLayer - The new activer layer

layerAdded

void layerAdded(Layer newLayer)
Notifies this listener that a layer has been added.

Parameters:
newLayer - The new added layer

layerRemoved

void layerRemoved(Layer oldLayer)
Notifies this listener that a layer has been removed.

Parameters:
oldLayer - The old removed layer


JOSM