Class MapLayerAttributeChangeEvent

  • All Implemented Interfaces:
    Serializable

    public class MapLayerAttributeChangeEvent
    extends ConsumableEvent
    This interface representes an event on the layer attribute changes.
    Since:
    14.0
    Version:
    17.0 2020-01-04 14:41:53
    Author:
    Stéphane GALLAND
    See Also:
    Serialized Form
    Maven Group Id:
    org.arakhne.afc.gis
    Maven Artifact Id:
    giscore
    • Constructor Detail

      • MapLayerAttributeChangeEvent

        public MapLayerAttributeChangeEvent​(Object source,
                                            AttributeChangeEvent event)
        Constructor.
        Parameters:
        source - the event source.
        event - the event.
    • Method Detail

      • getLayer

        @Pure
        public MapLayer getLayer()
        Replies the layer that changed.
        Returns:
        the layer that changed.
      • getEvent

        @Pure
        public AttributeChangeEvent getEvent()
        Replies the original event that describes the attribute change.
        Returns:
        the original event.
      • getName

        @Pure
        public String getName()
        Replies the name of the changed attributes.
        Returns:
        the attribute name.
      • getOldName

        @Pure
        public String getOldName()
        Replies the old name of the changed attributes.
        Returns:
        the old attribute name.
      • getOldValue

        @Pure
        public AttributeValue getOldValue()
        Replies the old value of the attribute.
        Returns:
        the attribute value or null
      • getValue

        @Pure
        public AttributeValue getValue()
        Replies the new value of the attribute.
        Returns:
        the attribute value, never null
      • getAttribute

        @Pure
        public Attribute getAttribute()
        Replies the changed attribute.
        Returns:
        the attribute, never null
      • isTemporaryChange

        @Pure
        public boolean isTemporaryChange()
        Replies if the change in the layer was marked as temporary. The usage of this information depends on the listener's behaviour.
        Returns:
        true if the change is temporary, otherwise false