Package org.openstreetmap.josm.gui.layer
Interface LayerManager.LayerChangeListener
-
- All Known Implementing Classes:
AutoFilterManager
,AutosaveTask
,CorrelateGpxWithImages.GpxLayerAddedListener
,HistoryBrowserDialogManager
,HistoryDataSet
,ImageryMenu
,ImageViewerDialog
,JosmAction.LayerChangeAdapter
,LayerListDialog.ColumnWidthAdaptionListener
,LayerListDialog.LayerListModel
,MainFrame.ManageLayerListeners
,MapFrame
,MapView
,MemberTable.ZoomToGapAction
,MultipolygonCache
,NotesDialog
,RelationDialogManager
,RelationListDialog.NewAction
,SelectionTableModel
,SessionSaveAction
,SessionSaveAsAction
,SlippyMapBBoxChooser
,ValidatorLayer
,WikimediaCommonsLoader.WikimediaCommonsLoadImagesAction
,ZoomToAction
- Enclosing class:
- LayerManager
public static interface LayerManager.LayerChangeListener
Interface to notify listeners of a layer change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
layerAdded(LayerManager.LayerAddEvent e)
Notifies this listener that a layer has been added.void
layerOrderChanged(LayerManager.LayerOrderChangeEvent e)
Notifies this listener that the order of layers was changed.void
layerRemoving(LayerManager.LayerRemoveEvent e)
Notifies this listener that a layer was just removed.
-
-
-
Method Detail
-
layerAdded
void layerAdded(LayerManager.LayerAddEvent e)
Notifies this listener that a layer has been added.Listeners are called in the EDT thread. You should not do blocking or long-running tasks in this method.
- Parameters:
e
- The new added layer event
-
layerRemoving
void layerRemoving(LayerManager.LayerRemoveEvent e)
Notifies this listener that a layer was just removed.Listeners are called in the EDT thread after the layer was removed. Use
LayerManager.LayerRemoveEvent.scheduleRemoval(Collection)
to remove more layers. You should not do blocking or long-running tasks in this method.- Parameters:
e
- The layer to be removed (as event)
-
layerOrderChanged
void layerOrderChanged(LayerManager.LayerOrderChangeEvent e)
Notifies this listener that the order of layers was changed.Listeners are called in the EDT thread. You should not do blocking or long-running tasks in this method.
- Parameters:
e
- The order change event.
-
-