Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GrabThread.java
- Timestamp:
- 2016-07-04T14:18:17+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GrabThread.java
r32060 r32556 1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others1 // License: GPL. For details, see LICENSE file. 2 2 package cadastre_fr; 3 3 … … 35 35 /** 36 36 * Call directly grabber for raster images or prepare thread for vector images 37 * @param moreImages38 37 */ 39 38 public void addImages(ArrayList<EastNorthBound> moreImages) { … … 41 40 imagesToGrab.addAll(moreImages); 42 41 lockImagesToGrag.unlock(); 43 synchronized(this) { 42 synchronized (this) { 44 43 this.notify(); 45 44 } … … 139 138 notifyWaiter(); 140 139 } 141 waitNotification(); } 140 waitNotification(); 141 } 142 142 } 143 143 … … 152 152 getCacheControl().deleteCacheFile(); 153 153 wmsLayer.imagesLock.lock(); 154 for (GeorefImage image : wmsLayer.getImages()) 154 for (GeorefImage image : wmsLayer.getImages()) { 155 155 getCacheControl().saveCache(image); 156 } 156 157 wmsLayer.imagesLock.unlock(); 157 158 } … … 199 200 croppedPoint[3] = mv.getPoint(new EastNorth(img.max.east(), img.min.north())); 200 201 croppedPoint[4] = croppedPoint[0]; 201 for (int i =0; i<4; i++) {202 for (int i = 0; i < 4; i++) { 202 203 g.setColor(color); 203 204 g.drawLine(croppedPoint[i].x, croppedPoint[i].y, croppedPoint[i+1].x, croppedPoint[i+1].y);
Note:
See TracChangeset
for help on using the changeset viewer.
