Ignore:
Timestamp:
27.10.2009 01:21:32 (3 years ago)
Author:
Gubaer
Message:

Cleanup in download logic (less global, more encapsulation)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MapView.java

    r2192 r2327  
    369369        tempG.setColor(Color.WHITE); 
    370370        Bounds b = getProjection().getWorldBoundsLatLon(); 
    371         double lat = b.min.lat(); 
    372         double lon = b.min.lon(); 
    373  
    374         Point p = getPoint(b.min); 
     371        double lat = b.getMin().lat(); 
     372        double lon = b.getMin().lon(); 
     373 
     374        Point p = getPoint(b.getMin()); 
    375375 
    376376        GeneralPath path = new GeneralPath(); 
    377377 
    378378        path.moveTo(p.x, p.y); 
    379         double max = b.max.lat(); 
     379        double max = b.getMax().lat(); 
    380380        for(; lat <= max; lat += 1.0) 
    381381        { 
     
    383383            path.lineTo(p.x, p.y); 
    384384        } 
    385         lat = max; max = b.max.lon(); 
     385        lat = max; max = b.getMax().lon(); 
    386386        for(; lon <= max; lon += 1.0) 
    387387        { 
     
    389389            path.lineTo(p.x, p.y); 
    390390        } 
    391         lon = max; max = b.min.lat(); 
     391        lon = max; max = b.getMin().lat(); 
    392392        for(; lat >= max; lat -= 1.0) 
    393393        { 
     
    395395            path.lineTo(p.x, p.y); 
    396396        } 
    397         lat = max; max = b.min.lon(); 
     397        lat = max; max = b.getMin().lon(); 
    398398        for(; lon >= max; lon -= 1.0) 
    399399        { 
Note: See TracChangeset for help on using the changeset viewer.