Package org.gvsig.fmap.mapcontext.layers
Interface LayerCollectionListener
- All Known Implementing Classes:
BaseLayerCollectionListener,EventBuffer,LayerCollectionAdapter,MapContext.LayerEventListener
public interface LayerCollectionListener
LayerCollectionListener defines listeners for events that can be produced in a
collection of layers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a layer has been added or replaced in the internal list of layers.voidCalled when a layer is just going to be added or replaced in the internal list of layers.voidCalled when a layer has been moved in the internal list of layers.voidCalled when a layer is just going to be moved in the internal list of layers.voidCalled when a layer has been removed from the internal list of layers.voidCalled when a layer is just going to be removed from the internal list of layers.voidCalled when the visibility of the collection of layers has changed.
-
Method Details
-
layerAdded
Called when a layer has been added or replaced in the internal list of layers.
- Parameters:
e- a layer collection event object
-
layerMoved
Called when a layer has been moved in the internal list of layers.
- Parameters:
e- a layer collection event object
-
layerRemoved
Called when a layer has been removed from the internal list of layers.
- Parameters:
e- a layer collection event object
-
layerAdding
Called when a layer is just going to be added or replaced in the internal list of layers.
- Parameters:
e- a layer collection event object- Throws:
CancelationException- if cancels the adding operation, this exception will have the message that user will see.
-
layerMoving
Called when a layer is just going to be moved in the internal list of layers.
- Parameters:
e- a layer collection event object- Throws:
CancelationException- if cancels the moving operation, this exception will have the message that user will see.
-
layerRemoving
Called when a layer is just going to be removed from the internal list of layers.
- Parameters:
e- a layer collection event object- Throws:
CancelationException- if cancels the removing operation, this exception will have the message that user will see.
-
visibilityChanged
Called when the visibility of the collection of layers has changed.
- Parameters:
e- a layer collection event object- Throws:
CancelationException- if cancels the operation of change visibility, this exception will have the message that user will see.
-