public static interface DataSelectionListener.SelectionChangeEvent
Modifier and Type | Method and Description |
---|---|
java.util.Set<OsmPrimitive> |
getAdded()
Gets the primitives that have been added to the selection.
|
java.util.Set<OsmPrimitive> |
getOldSelection()
Gets the previous selection
|
java.util.Set<OsmPrimitive> |
getRemoved()
Gets the primitives that have been removed from the selection.
|
java.util.Set<OsmPrimitive> |
getSelection()
Gets the new selection.
|
DataSet |
getSource()
Gets the data set that triggered this selection event.
|
default boolean |
isNop()
Test if this event did not change anything.
|
java.util.Set<OsmPrimitive> getOldSelection()
This collection cannot be modified and will not change.
java.util.Set<OsmPrimitive> getSelection()
This collection cannot be modified and will not change.
java.util.Set<OsmPrimitive> getRemoved()
Those are the primitives contained in getOldSelection()
but not in getSelection()
This collection cannot be modified and will not change.
java.util.Set<OsmPrimitive> getAdded()
Those are the primitives contained in getSelection()
but not in getOldSelection()
This collection cannot be modified and will not change.
DataSet getSource()
default boolean isNop()
This will return false
for all events that are sent to listeners, so you don't need to test it.
true
if this did not change the selection.