Changeset 12274 in josm for trunk/src/org
- Timestamp:
- 2017-05-29T16:12:34+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r12175 r12274 40 40 import org.openstreetmap.josm.data.gpx.GpxConstants; 41 41 import org.openstreetmap.josm.data.gpx.GpxData; 42 import org.openstreetmap.josm.data.gpx.GpxData.GpxDataChangeEvent; 43 import org.openstreetmap.josm.data.gpx.GpxData.GpxDataChangeListener; 42 44 import org.openstreetmap.josm.data.gpx.WayPoint; 43 45 import org.openstreetmap.josm.data.preferences.ColorProperty; … … 59 61 * @since 7319 60 62 */ 61 public class GpxDrawHelper implements SoMChangeListener, MapViewPaintable.LayerPainter, PaintableInvalidationListener {63 public class GpxDrawHelper implements SoMChangeListener, MapViewPaintable.LayerPainter, PaintableInvalidationListener, GpxDataChangeListener { 62 64 63 65 /** … … 220 222 layer = gpxLayer; 221 223 data = gpxLayer.data; 224 data.addChangeListener(this); 222 225 223 226 layer.addInvalidationListener(this); … … 1450 1453 * callback when data is changed, invalidate cached configuration parameters 1451 1454 */ 1452 public void dataChanged() { 1455 @Override 1456 public void gpxDataChanged(GpxDataChangeEvent e) { 1453 1457 computeCacheInSync = false; 1454 1458 } … … 1484 1488 SystemOfMeasurement.removeSoMChangeListener(this); 1485 1489 layer.removeInvalidationListener(this); 1490 data.removeChangeListener(this); 1486 1491 } 1487 1492 }
Note:
See TracChangeset
for help on using the changeset viewer.