Package org.openstreetmap.josm.actions
Class JosmAction.LayerChangeAdapter
- java.lang.Object
-
- org.openstreetmap.josm.actions.JosmAction.LayerChangeAdapter
-
- All Implemented Interfaces:
LayerManager.LayerChangeListener
- Enclosing class:
- JosmAction
protected class JosmAction.LayerChangeAdapter extends java.lang.Object implements LayerManager.LayerChangeListener
Adapter for layer change events. Runs updateEnabledState() whenever the active layer changed.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LayerChangeAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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.java.lang.String
toString()
-
-
-
Constructor Detail
-
LayerChangeAdapter
protected LayerChangeAdapter()
-
-
Method Detail
-
layerAdded
public void layerAdded(LayerManager.LayerAddEvent e)
Description copied from interface:LayerManager.LayerChangeListener
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.
- Specified by:
layerAdded
in interfaceLayerManager.LayerChangeListener
- Parameters:
e
- The new added layer event
-
layerRemoving
public void layerRemoving(LayerManager.LayerRemoveEvent e)
Description copied from interface:LayerManager.LayerChangeListener
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.- Specified by:
layerRemoving
in interfaceLayerManager.LayerChangeListener
- Parameters:
e
- The layer to be removed (as event)
-
layerOrderChanged
public void layerOrderChanged(LayerManager.LayerOrderChangeEvent e)
Description copied from interface:LayerManager.LayerChangeListener
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.
- Specified by:
layerOrderChanged
in interfaceLayerManager.LayerChangeListener
- Parameters:
e
- The order change event.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-