Changeset 33219 in osm
- Timestamp:
- 2017-04-09T11:05:07+02:00 (8 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/Tile.java
r33211 r33219 76 76 this.ytile = ytile; 77 77 this.zoom = zoom; 78 this. setImage(image);78 this.image = image; 79 79 this.key = getTileKey(source, xtile, ytile, zoom); 80 80 } … … 240 240 } 241 241 242 public finalvoid setImage(BufferedImage image) {242 public void setImage(BufferedImage image) { 243 243 this.image = image; 244 244 } … … 303 303 @Override 304 304 public String toString() { 305 return "Tile " + key; 305 StringBuilder sb = new StringBuilder("Tile ").append(key); 306 if (loading) { 307 sb.append(" [LOADING...]"); 308 } 309 if (loaded) { 310 sb.append(" [loaded]"); 311 } 312 if (error) { 313 sb.append(" [ERROR]"); 314 } 315 return sb.toString(); 306 316 } 307 317 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileXY.java
r32664 r33219 55 55 return y; 56 56 } 57 58 @Override 59 public String toString() { 60 return "TileXY{" + x + ", " + y + "}"; 61 } 57 62 }
Note:
See TracChangeset
for help on using the changeset viewer.