Class PrimitiveFlagsChangedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
org.openstreetmap.josm.data.osm.event.PrimitiveFlagsChangedEvent
Represents a change in
AbstractPrimitive.flags unless covered by a more specific event-
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
ConstructorsConstructorDescriptionPrimitiveFlagsChangedEvent(DataSet dataSet, OsmPrimitive primitive) Constructs a newPrimitiveFlagsChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoidfire(DataSetListener listener) Calls the appropriate method of the listener for this event.Collection<? 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
-
primitive
-
-
Constructor Details
-
PrimitiveFlagsChangedEvent
Constructs a newPrimitiveFlagsChangedEvent.- Parameters:
dataSet- the dataset from which the event comes fromprimitive- the primitive 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
-
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
-