com.supermap.mapping

Class LayerAddedEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class LayerAddedEvent
    extends LayerEvent
    The LayerAddedEvent event.

    This event is fired when a layer is added.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      LayerAddedEvent(java.lang.Object source, Layer layer)
      Constructs an object of the LayerAddedEvent class according to specified parameters.
      LayerAddedEvent(java.lang.Object source, Layer layer, int index)
      Constructs an object of the LayerAddedEvent class according to specified parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getIndex()
      Gets layer index.
      • 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

      • LayerAddedEvent

        public LayerAddedEvent(java.lang.Object source,
                               Layer layer)
        Constructs an object of the LayerAddedEvent class according to specified parameters.
        Parameters:
        source - The object that initiated the event.
        layer - Layer collection object.
      • LayerAddedEvent

        public LayerAddedEvent(java.lang.Object source,
                               Layer layer,
                               int index)
        Constructs an object of the LayerAddedEvent class according to specified parameters.
        Parameters:
        source - The object that initiated the event.
        layer - Layer collection object.
        index - Layer index value.
    • Method Detail

      • getIndex

        public int getIndex()
        Gets layer index.
        Returns:
        Returns the layer index value.