public class NodeMovedEvent extends AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType| Modifier and Type | Field and Description |
|---|---|
private Node |
node |
dataSet| Constructor and Description |
|---|
NodeMovedEvent(DataSet dataSet,
Node node)
Constructs a new
NodeMovedEvent. |
| Modifier and Type | Method and Description |
|---|---|
void |
fire(DataSetListener listener)
Calls the appropriate method of the listener for this event.
|
Node |
getNode()
Returns the node affected by the move.
|
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, toStringpublic NodeMovedEvent(DataSet dataSet, Node node)
NodeMovedEvent.dataSet - the dataset from which the event comes fromnode - the node affected by the movepublic void fire(DataSetListener listener)
AbstractDatasetChangedEventfire in class AbstractDatasetChangedEventlistener - dataset listener to notify about this eventpublic Node getNode()
public java.util.List<? extends OsmPrimitive> getPrimitives()
AbstractDatasetChangedEventDataChangedEvent. 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 AbstractDatasetChangedEventpublic AbstractDatasetChangedEvent.DatasetEventType getType()
AbstractDatasetChangedEventgetType in class AbstractDatasetChangedEvent