private void downloadTile(DownloadJob downloadJob) throws IOException { TileDownloader tileDownloader = new TileDownloader(downloadJob, this.graphicFactory); TileBitmap bitmap = tileDownloader.downloadImage(); if (!isInterrupted() && bitmap != null) { bitmap.scaleTo(this.displayModel.getTileSize(), this.displayModel.getTileSize()); this.tileCache.put(downloadJob, bitmap); this.layer.requestRedraw(); } } }
private void downloadTile(DownloadJob downloadJob) throws IOException { TileDownloader tileDownloader = new TileDownloader(downloadJob, this.graphicFactory); TileBitmap bitmap = tileDownloader.downloadImage(); if (!isInterrupted() && bitmap != null) { bitmap.scaleTo(this.displayModel.getTileSize(), this.displayModel.getTileSize()); this.tileCache.put(downloadJob, bitmap); this.layer.requestRedraw(); } } }