Ignore:
Timestamp:
2014-12-19T17:12:01+01:00 (11 years ago)
Author:
donvip
Message:

[josm_cadastre-fr] replace calls to System.out/err by calls to Main.info/warn/error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java

    r30738 r30859  
    9393
    9494    private Action cancelGrab;
    95    
    96     private Action refineGeoRef; 
     95
     96    private Action refineGeoRef;
    9797
    9898    @SuppressWarnings("serial")
     
    107107            Main.map.mapView.repaint();
    108108        }
    109        
    110     }
    111    
     109
     110    }
     111
    112112    public boolean adjustModeEnabled;
    113113
    114114    public GrabThread grabThread;
    115    
     115
    116116    public WMSLayer() {
    117117        this(tr("Blank Layer"), "", -1);
     
    138138        images = null;
    139139        dividedBbox = null;
    140         System.out.println("Layer "+location+" destroyed");
     140        Main.info("Layer "+location+" destroyed");
    141141    }
    142142
     
    173173    /**
    174174     * Divides the bounding box in smaller squares. Their size (and quantity) is configurable in Preferences.
    175      * 
     175     *
    176176     * @param b      the original bbox, usually the current bbox on screen
    177177     * @param factor 1 = source bbox 1:1
     
    326326                cancelGrab,
    327327                refineGeoRef,
    328                 resetOffset, 
     328                resetOffset,
    329329                new LayerListPopup.InfoAction(this),
    330330
     
    527527            }
    528528        }
    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");
    530530        return true;
    531531    }
     
    593593        return communeBBox;
    594594    }
    595    
     595
    596596    public EastNorthBound getFirstViewFromCacheBBox() {
    597597        if (isRaster) {
     
    604604        for (GeorefImage image:images){
    605605            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;
    607607            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;
    609609        }
    610610        EastNorthBound maxGrabbedBBox = new EastNorthBound(new EastNorth(min_x, min_y), new EastNorth(max_x, max_y));
     
    619619     * Method required by ImageObserver when drawing an image
    620620     */
    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) {
    622623        return false;
    623624    }
     
    690691            img = this.images.get(index);
    691692        } catch (ArrayIndexOutOfBoundsException e) {
    692             e.printStackTrace(System.out);
     693            Main.error(e);
    693694        }
    694695        imagesLock.unlock();
    695696        return img;
    696697    }
    697    
     698
    698699    public Vector<GeorefImage> getImages() {
    699700        return this.images;
    700701    }
    701    
     702
    702703    public void addImage(GeorefImage img) {
    703704        imagesLock.lock();
     
    705706        imagesLock.unlock();
    706707    }
    707    
     708
    708709    public void setImages(Vector<GeorefImage> images) {
    709710        imagesLock.lock();
     
    711712        imagesLock.unlock();
    712713    }
    713    
     714
    714715    public void clearImages() {
    715716        imagesLock.lock();
Note: See TracChangeset for help on using the changeset viewer.