public class TileDownloader extends Object
| Constructor and Description |
|---|
TileDownloader(TileConfigUrlDisk
Create a new TileDownloader instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProgressListener(DownloadProgressListener
|
void |
cancel()
cancel the download process.
|
void |
download()
Begin download process.
|
int |
getNumberOfTilesToDownload()
|
int |
getTilesCompleted()
|
int |
getTilesGivenUp()
|
void |
pauseResume()
pause or resume the download process.
|
void |
removeProgressListener(DownloadProgressListener
|
public TileDownloader(TileConfigUrlDiskconfig, TilePathProvider customResoluter, BBox boundingBox, List <Integer > zoomLevels)
config - the config to use for resolving URLs and CacheFile paths.
customResoluter -
boundingBox - the bounding box to retrieve tiles for.
zoomLevels - the zoom levels to retrieve tiles for.
public int getNumberOfTilesToDownload()
public int getTilesCompleted()
public int getTilesGivenUp()
public void download()
public void cancel()
public void pauseResume()
public void addProgressListener(DownloadProgressListenerlistener)
listener - the listener to add.
public void removeProgressListener(DownloadProgressListenerlistener)
listener - the listener to remove.