Module org.arakhne.afc.gis.giscore
Package org.arakhne.afc.gis.maplayer
Class MapLayerAttributeChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.arakhne.afc.gis.maplayer.ConsumableEvent
-
- org.arakhne.afc.gis.maplayer.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
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description MapLayerAttributeChangeEvent(Object source, AttributeChangeEvent event)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
getAttribute()
Replies the changed attribute.AttributeChangeEvent
getEvent()
Replies the original event that describes the attribute change.MapLayer
getLayer()
Replies the layer that changed.String
getName()
Replies the name of the changed attributes.String
getOldName()
Replies the old name of the changed attributes.AttributeValue
getOldValue()
Replies the old value of the attribute.AttributeChangeEvent.Type
getType()
Replies the type of event.AttributeValue
getValue()
Replies the new value of the attribute.boolean
isTemporaryChange()
Replies if the change in the layer was marked as temporary.-
Methods inherited from class org.arakhne.afc.gis.maplayer.ConsumableEvent
consume, isConsumed, isDisappearingWhenConsumed
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
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
-
getType
@Pure public AttributeChangeEvent.Type getType()
Replies the type of event.- Returns:
- the type of event.
-
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, otherwisefalse
-
-