Changeset 30859 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
- Timestamp:
- 2014-12-19T17:12:01+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
r30738 r30859 93 93 94 94 private Action cancelGrab; 95 96 private Action refineGeoRef; 95 96 private Action refineGeoRef; 97 97 98 98 @SuppressWarnings("serial") … … 107 107 Main.map.mapView.repaint(); 108 108 } 109 110 } 111 109 110 } 111 112 112 public boolean adjustModeEnabled; 113 113 114 114 public GrabThread grabThread; 115 115 116 116 public WMSLayer() { 117 117 this(tr("Blank Layer"), "", -1); … … 138 138 images = null; 139 139 dividedBbox = null; 140 System.out.println("Layer "+location+" destroyed");140 Main.info("Layer "+location+" destroyed"); 141 141 } 142 142 … … 173 173 /** 174 174 * Divides the bounding box in smaller squares. Their size (and quantity) is configurable in Preferences. 175 * 175 * 176 176 * @param b the original bbox, usually the current bbox on screen 177 177 * @param factor 1 = source bbox 1:1 … … 326 326 cancelGrab, 327 327 refineGeoRef, 328 resetOffset, 328 resetOffset, 329 329 new LayerListPopup.InfoAction(this), 330 330 … … 527 527 } 528 528 } 529 System.out.println("Cache loaded for location "+location+" with "+images.size()+" images");529 Main.info("Cache loaded for location "+location+" with "+images.size()+" images"); 530 530 return true; 531 531 } … … 593 593 return communeBBox; 594 594 } 595 595 596 596 public EastNorthBound getFirstViewFromCacheBBox() { 597 597 if (isRaster) { … … 604 604 for (GeorefImage image:images){ 605 605 min_x = image.min.east() < min_x ? image.min.east() : min_x; 606 max_x = image.max.east() > max_x ? image.max.east() : max_x; 606 max_x = image.max.east() > max_x ? image.max.east() : max_x; 607 607 min_y = image.min.north() < min_y ? image.min.north() : min_y; 608 max_y = image.max.north() > max_y ? image.max.north() : max_y; 608 max_y = image.max.north() > max_y ? image.max.north() : max_y; 609 609 } 610 610 EastNorthBound maxGrabbedBBox = new EastNorthBound(new EastNorth(min_x, min_y), new EastNorth(max_x, max_y)); … … 619 619 * Method required by ImageObserver when drawing an image 620 620 */ 621 public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { 621 @Override 622 public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { 622 623 return false; 623 624 } … … 690 691 img = this.images.get(index); 691 692 } catch (ArrayIndexOutOfBoundsException e) { 692 e.printStackTrace(System.out);693 Main.error(e); 693 694 } 694 695 imagesLock.unlock(); 695 696 return img; 696 697 } 697 698 698 699 public Vector<GeorefImage> getImages() { 699 700 return this.images; 700 701 } 701 702 702 703 public void addImage(GeorefImage img) { 703 704 imagesLock.lock(); … … 705 706 imagesLock.unlock(); 706 707 } 707 708 708 709 public void setImages(Vector<GeorefImage> images) { 709 710 imagesLock.lock(); … … 711 712 imagesLock.unlock(); 712 713 } 713 714 714 715 public void clearImages() { 715 716 imagesLock.lock();
Note:
See TracChangeset
for help on using the changeset viewer.