Changeset 5680 in osm for applications/editors/josm/plugins/slippymap/src
- Timestamp:
- 2007-11-22T14:59:32+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/src/org/openstreetmap/josm/plugins/slippymap/SlippyMapLayer.java
r5679 r5680 22 22 import org.openstreetmap.josm.Main; 23 23 import org.openstreetmap.josm.actions.RenameLayerAction; 24 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 24 25 import org.openstreetmap.josm.data.coor.LatLon; 25 26 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; … … 36 37 * 37 38 */ 38 public class SlippyMapLayer extends Layer implements ImageObserver 39 public class SlippyMapLayer extends Layer implements ImageObserver, 40 PreferenceChangedListener 39 41 { 40 41 42 ArrayList<HashMap<Integer, SlippyMapTile>> tileStorage = null; 42 43 … … 143 144 } 144 145 }); 146 147 Main.pref.listener.add(this); 145 148 } 146 149 … … 454 457 return !done; 455 458 } 459 460 /* 461 * (non-Javadoc) 462 * 463 * @see org.openstreetmap.josm.data.Preferences.PreferenceChangedListener#preferenceChanged(java.lang.String, 464 * java.lang.String) 465 */ 466 public void preferenceChanged(String key, String newValue) 467 { 468 if (key.startsWith("slippymaplayer")) 469 { 470 System.err.println(this + ".preferenceChanged('" + key + "', '" 471 + newValue + "') called"); 472 473 clearTileStorage(); 474 } 475 } 476 477 @Override 478 public void destroy() 479 { 480 Main.pref.listener.remove(SlippyMapLayer.this); 481 } 456 482 }
Note:
See TracChangeset
for help on using the changeset viewer.