Class ImageryProvidersPanel.DefListSelectionListener
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.imagery.ImageryProvidersPanel.DefListSelectionListener
-
- All Implemented Interfaces:
EventListener
,ListSelectionListener
- Enclosing class:
- ImageryProvidersPanel
private final class ImageryProvidersPanel.DefListSelectionListener extends Object implements ListSelectionListener
-
-
Field Summary
Fields Modifier and Type Field Description private Map<Integer,List<org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon>>
mapPolygons
private Map<Integer,org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle>
mapRectangles
-
Constructor Summary
Constructors Modifier Constructor Description private
DefListSelectionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cleanupResidualBounds()
private void
clearMap()
private <T> void
doCleanupResidualBounds(Map<Integer,T> map, Consumer<T> removalEffect)
private void
updateBoundsAndShapes(int i)
update bounds and shapes for a new entryvoid
valueChanged(ListSelectionEvent e)
-
-
-
Field Detail
-
mapRectangles
private final Map<Integer,org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle> mapRectangles
-
mapPolygons
private final Map<Integer,List<org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon>> mapPolygons
-
-
Constructor Detail
-
DefListSelectionListener
private DefListSelectionListener()
-
-
Method Detail
-
clearMap
private void clearMap()
-
valueChanged
public void valueChanged(ListSelectionEvent e)
- Specified by:
valueChanged
in interfaceListSelectionListener
-
updateBoundsAndShapes
private void updateBoundsAndShapes(int i)
update bounds and shapes for a new entry- Parameters:
i
- model index
-
doCleanupResidualBounds
private <T> void doCleanupResidualBounds(Map<Integer,T> map, Consumer<T> removalEffect)
-
cleanupResidualBounds
private void cleanupResidualBounds()
-
-