
public class MapTileDownloader extends MapTileModuleProviderBase
MapTileDownloader loads tiles from an HTTP server. It saves downloaded tiles to an
IFilesystemCache if available.| Modifier and Type | Class and Description |
|---|---|
protected class |
MapTileDownloader.TileLoader |
mPending, mQueueLockObject, mWorking| Constructor and Description |
|---|
MapTileDownloader(ITileSource pTileSource) |
MapTileDownloader(ITileSource pTileSource,
IFilesystemCache pFilesystemCache) |
MapTileDownloader(ITileSource pTileSource,
IFilesystemCache pFilesystemCache,
INetworkAvailablityCheck pNetworkAvailablityCheck) |
MapTileDownloader(ITileSource pTileSource,
IFilesystemCache pFilesystemCache,
INetworkAvailablityCheck pNetworkAvailablityCheck,
int pThreadPoolSize,
int pPendingQueueSize) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
computeExpirationTime(Long pHttpExpiresTime) |
void |
detach()
Detach, we're shutting down - Stops all workers.
|
int |
getMaximumZoomLevel()
Gets the maximum zoom level this tile provider can provide
|
int |
getMinimumZoomLevel()
Gets the minimum zoom level this tile provider can provide
|
protected String |
getName()
Gets the human-friendly name assigned to this tile provider.
|
protected String |
getThreadGroupName()
Gets the name assigned to the thread for this provider.
|
MapTileDownloader.TileLoader |
getTileLoader()
It is expected that the implementation will construct an internal member which internally
implements a
MapTileModuleProviderBase.TileLoader. |
ITileSource |
getTileSource() |
boolean |
getUsesDataConnection()
Returns true if implementation uses a data connection, false otherwise.
|
void |
setTileDownloader(TileDownloader pTileDownloader) |
void |
setTileSource(ITileSource tileSource)
Sets the tile source for this tile provider.
|
loadMapTileAsync, removeTileFromQueuespublic MapTileDownloader(ITileSource pTileSource)
public MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache)
public MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck)
public MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck, int pThreadPoolSize, int pPendingQueueSize)
public ITileSource getTileSource()
public boolean getUsesDataConnection()
MapTileModuleProviderBasegetUsesDataConnection in class MapTileModuleProviderBaseprotected String getName()
MapTileModuleProviderBasegetName in class MapTileModuleProviderBaseprotected String getThreadGroupName()
MapTileModuleProviderBasegetThreadGroupName in class MapTileModuleProviderBasepublic MapTileDownloader.TileLoader getTileLoader()
MapTileModuleProviderBaseMapTileModuleProviderBase.TileLoader. This method is expected to return a that internal member to
methods of the parent methods.getTileLoader in class MapTileModuleProviderBasepublic void detach()
MapTileModuleProviderBasedetach in class MapTileModuleProviderBasepublic int getMinimumZoomLevel()
MapTileModuleProviderBasegetMinimumZoomLevel in class MapTileModuleProviderBasepublic int getMaximumZoomLevel()
MapTileModuleProviderBasegetMaximumZoomLevel in class MapTileModuleProviderBasepublic void setTileSource(ITileSource tileSource)
MapTileModuleProviderBasesetTileSource in class MapTileModuleProviderBasetileSource - the tile sourceprotected long computeExpirationTime(Long pHttpExpiresTime)
public void setTileDownloader(TileDownloader pTileDownloader)