Changeset 13667 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2009-02-11T18:17:20+01:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java
r13666 r13667 27 27 public EastNorth min, max; 28 28 public boolean downloadingStarted; 29 public boolean failed = false; 29 30 30 31 public GeorefImage(boolean downloadingStarted) { -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Grabber.java
r13497 r13667 53 53 g.drawString(tr("Exception occurred"), 10, height()/2); 54 54 image.image = img; 55 image.failed = true; 55 56 g.setFont(font); 56 57 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
r13654 r13667 204 204 alphaChannel, 205 205 new JMenuItem(new changeResolutionAction()), 206 new JMenuItem(new reloadErrorTilesAction()), 206 207 new JMenuItem(new downloadAction()), 207 208 new JSeparator(), … … 237 238 getPPD(); 238 239 mv.repaint(); 240 } 241 } 242 243 public class reloadErrorTilesAction extends AbstractAction { 244 public reloadErrorTilesAction() { 245 super(tr("Reload erroneous tiles")); 246 } 247 public void actionPerformed(ActionEvent ev) { 248 for (int x = 0; x < dax; ++x) { 249 for (int y = 0; y < day; ++y) { 250 GeorefImage img = images[modulo(x,dax)][modulo(y,day)]; 251 img.image = null; 252 img.downloadingStarted = false; 253 img.failed = false; 254 mv.repaint(); 255 } 256 } 239 257 } 240 258 }
Note:
See TracChangeset
for help on using the changeset viewer.