public class WayNodesChangedEvent extends AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType
Modifier and Type | Field and Description |
---|---|
private Way |
way |
dataSet
Constructor and Description |
---|
WayNodesChangedEvent(DataSet dataSet,
Way way)
Constructs a new
WayNodesChangedEvent . |
Modifier and Type | Method and Description |
---|---|
void |
fire(DataSetListener listener)
Calls the appropriate method of the listener for this event.
|
Way |
getChangedWay()
Returns the way affected by the change.
|
java.util.List<? extends OsmPrimitive> |
getPrimitives()
Returns list of primitives modified by this event.
|
AbstractDatasetChangedEvent.DatasetEventType |
getType()
Returns the type of dataset changed event.
|
getDataset, toString
public WayNodesChangedEvent(DataSet dataSet, Way way)
WayNodesChangedEvent
.dataSet
- the dataset from which the event comes fromway
- the way affected by the changepublic void fire(DataSetListener listener)
AbstractDatasetChangedEvent
fire
in class AbstractDatasetChangedEvent
listener
- dataset listener to notify about this eventpublic Way getChangedWay()
public java.util.List<? extends OsmPrimitive> getPrimitives()
AbstractDatasetChangedEvent
DataChangedEvent
. It returns all primitives in the dataset
when this method is called (live list), not list of primitives when
the event was createdgetPrimitives
in class AbstractDatasetChangedEvent
public AbstractDatasetChangedEvent.DatasetEventType getType()
AbstractDatasetChangedEvent
getType
in class AbstractDatasetChangedEvent