public static class DataSelectionListener.SelectionReplaceEvent extends DataSelectionListener.AbstractSelectionEvent
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<OsmPrimitive> |
added |
private java.util.Set<OsmPrimitive> |
current |
private java.util.Set<OsmPrimitive> |
removed |
| Constructor and Description |
|---|
SelectionReplaceEvent(DataSet source,
java.util.Set<OsmPrimitive> old,
java.util.stream.Stream<OsmPrimitive> newSelection)
|
| 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> |
getRemoved()
Gets the primitives that have been removed from the selection.
|
java.util.Set<OsmPrimitive> |
getSelection()
Gets the new selection.
|
java.lang.String |
toString() |
getOldSelection, getSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisNopprivate final java.util.Set<OsmPrimitive> current
private java.util.Set<OsmPrimitive> removed
private java.util.Set<OsmPrimitive> added
public SelectionReplaceEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> newSelection)
source - The source datasetold - The old primitves that were previously selected. The caller needs to ensure that this set is not modifed.newSelection - The primitives of the new selection.public java.util.Set<OsmPrimitive> getSelection()
DataSelectionListener.SelectionChangeEventThis collection cannot be modified and will not change.
public java.util.Set<OsmPrimitive> getRemoved()
DataSelectionListener.SelectionChangeEvent
Those are the primitives contained in DataSelectionListener.SelectionChangeEvent.getOldSelection() but not in DataSelectionListener.SelectionChangeEvent.getSelection()
This collection cannot be modified and will not change.
public java.util.Set<OsmPrimitive> getAdded()
DataSelectionListener.SelectionChangeEvent
Those are the primitives contained in DataSelectionListener.SelectionChangeEvent.getSelection() but not in DataSelectionListener.SelectionChangeEvent.getOldSelection()
This collection cannot be modified and will not change.
public java.lang.String toString()
toString in class java.lang.Object