Interface IDataSelectionListener.SelectionChangeEvent<O extends IPrimitive,​N extends INode,​W extends IWay<N>,​R extends IRelation<?>,​D extends OsmData<O,​N,​W,​R>>

    • Method Detail

      • getOldSelection

        Set<OgetOldSelection()
        Gets the previous selection

        This collection cannot be modified and will not change.

        Returns:
        The old selection
      • getSelection

        Set<OgetSelection()
        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

        Set<OgetRemoved()
        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

        Set<OgetAdded()
        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

        D 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.