Class WayNodesChangedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent
An event that is triggered when the nodes of a way have been changed (nodes added, removed or the order was changed)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
dataSet -
Constructor Summary
ConstructorsConstructorDescriptionWayNodesChangedEvent(DataSet dataSet, Way way) Constructs a newWayNodesChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoidfire(DataSetListener listener) Calls the appropriate method of the listener for this event.Returns the way affected by the change.List<? extends OsmPrimitive>Returns list of primitives modified by this event.getType()Returns the type of dataset changed event.Methods inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
getDataset, toString
-
Field Details
-
way
-
-
Constructor Details
-
WayNodesChangedEvent
Constructs a newWayNodesChangedEvent.- Parameters:
dataSet- the dataset from which the event comes fromway- the way affected by the change
-
-
Method Details
-
fire
Description copied from class:AbstractDatasetChangedEventCalls the appropriate method of the listener for this event.- Specified by:
firein classAbstractDatasetChangedEvent- Parameters:
listener- dataset listener to notify about this event
-
getChangedWay
Returns the way affected by the change.- Returns:
- the way affected by the change
-
getPrimitives
Description copied from class:AbstractDatasetChangedEventReturns list of primitives modified by this event.
WARNING This value might be incorrect in case ofDataChangedEvent. It returns all primitives in the dataset when this method is called (live list), not list of primitives when the event was created- Specified by:
getPrimitivesin classAbstractDatasetChangedEvent- Returns:
- List of modified primitives
-
getType
Description copied from class:AbstractDatasetChangedEventReturns the type of dataset changed event.- Specified by:
getTypein classAbstractDatasetChangedEvent- Returns:
- the type of dataset changed event
-