com.supermap.mapping

Class LayerRemovedEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class LayerRemovedEvent
    extends LayerEvent
    The LayerRemovedEvent class.

    This event is fired when the layer is deleted.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      LayerRemovedEvent(java.lang.Object source, Layer layer, java.lang.String name, int index)
      Initializes a new instance of the LayerRemovedEvent class with the specified parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getIndex()
      Returns the index of the layer to be removed.
      java.lang.String getName()
      Returns the name of the removed layer.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LayerRemovedEvent

        public LayerRemovedEvent(java.lang.Object source,
                                 Layer layer,
                                 java.lang.String name,
                                 int index)
        Initializes a new instance of the LayerRemovedEvent class with the specified parameters.
        Parameters:
        source - The object that initiated the event.
        layer - layer collection object.
        name - Specifies the name of the removed layer.
        index - Specifies the serial number of the removed layer.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the removed layer.
        Returns:
        Remove the name of the layer.
      • getIndex

        public int getIndex()
        Returns the index of the layer to be removed.
        Returns:
        Delete the serial number of the layer.