Interface DataSelectionListener.SelectionChangeEvent

    • Method Detail

      • getOldSelection

        java.util.Set<OsmPrimitivegetOldSelection()
        Gets the previous selection

        This collection cannot be modified and will not change.

        Returns:
        The old selection
      • getSelection

        java.util.Set<OsmPrimitivegetSelection()
        Gets the new selection. New elements are added to the end of the collection.

        This collection cannot be modified and will not change.

        Returns:
        The new selection
      • getRemoved

        java.util.Set<OsmPrimitivegetRemoved()
        Gets the primitives that have been removed from the selection.

        Those are the primitives contained in getOldSelection() but not in getSelection()

        This collection cannot be modified and will not change.

        Returns:
        The primitives that were removed
      • getAdded

        java.util.Set<OsmPrimitivegetAdded()
        Gets the primitives that have been added to the selection.

        Those are the primitives contained in getSelection() but not in getOldSelection()

        This collection cannot be modified and will not change.

        Returns:
        The primitives that were added
      • getSource

        DataSet getSource()
        Gets the data set that triggered this selection event.
        Returns:
        The data set.
      • isNop

        default boolean isNop()
        Test if this event did not change anything.

        This will return false for all events that are sent to listeners, so you don't need to test it.

        Returns:
        true if this did not change the selection.