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 Details

    • layerAdded

      void layerAdded(LayerCollectionEvent e)

      Called when a layer has been added or replaced in the internal list of layers.

      Parameters:
      e - a layer collection event object
    • layerMoved

      void layerMoved(LayerPositionEvent e)

      Called when a layer has been moved in the internal list of layers.

      Parameters:
      e - a layer collection event object
    • layerRemoved

      void layerRemoved(LayerCollectionEvent e)

      Called when a layer has been removed from the internal list of layers.

      Parameters:
      e - a layer collection event object
    • layerAdding

      void layerAdding(LayerCollectionEvent e) throws CancelationException

      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

      void layerMoving(LayerPositionEvent e) throws CancelationException

      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

      void layerRemoving(LayerCollectionEvent e) throws CancelationException

      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

      void visibilityChanged(LayerCollectionEvent e) throws CancelationException

      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.