Package org.openstreetmap.josm.actions
Class SimplifyWayAction.SimplifyWayDataSelectionListener
- java.lang.Object
-
- org.openstreetmap.josm.actions.SimplifyWayAction.SimplifyWayDataSelectionListener
-
- All Implemented Interfaces:
DataSelectionListener
- Enclosing class:
- SimplifyWayAction
private static final class SimplifyWayAction.SimplifyWayDataSelectionListener extends java.lang.Object implements DataSelectionListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.osm.DataSelectionListener
DataSelectionListener.AbstractSelectionEvent, DataSelectionListener.SelectionAddEvent, DataSelectionListener.SelectionChangeEvent, DataSelectionListener.SelectionRemoveEvent, DataSelectionListener.SelectionReplaceEvent, DataSelectionListener.SelectionToggleEvent
-
-
Constructor Summary
Constructors Constructor Description SimplifyWayDataSelectionListener(java.util.List<Way> wayList)Create a new selection listener forSimplifyWayAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddConsumer(java.util.function.Consumer<java.util.List<Way>> wayConsumer)voidselectionChanged(DataSelectionListener.SelectionChangeEvent event)Called whenever the selection is changed.(package private) voidupdateWayList(DataSet dataSet)
-
-
-
Constructor Detail
-
SimplifyWayDataSelectionListener
SimplifyWayDataSelectionListener(java.util.List<Way> wayList)
Create a new selection listener forSimplifyWayAction- Parameters:
wayList- The modifiable list to update on selection changes
-
-
Method Detail
-
selectionChanged
public void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Description copied from interface:DataSelectionListenerCalled whenever the selection is changed. You get notified about the new selection, the elements that were added and removed and the layer that triggered the event.- Specified by:
selectionChangedin interfaceDataSelectionListener- Parameters:
event- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
updateWayList
void updateWayList(DataSet dataSet)
-
addConsumer
void addConsumer(java.util.function.Consumer<java.util.List<Way>> wayConsumer)
-
-