-
public abstract class MapTileModuleProviderBaseAn abstract base class for modular tile providers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classMapTileModuleProviderBase.TileLoaderLoad the requested tile. An abstract internal class whose objects are used by worker threadsto acquire tiles from servers. It processes tiles from the 'pending' set to the 'working' setas they become available. The key unimplemented method is 'loadTile'.
-
Constructor Summary
Constructors Constructor Description MapTileModuleProviderBase(int pThreadPoolSize, int pPendingQueueSize)
-
Method Summary
Modifier and Type Method Description abstract MapTileModuleProviderBase.TileLoadergetTileLoader()It is expected that the implementation will construct an internal member which internallyimplements a TileLoader. abstract booleangetUsesDataConnection()Returns true if implementation uses a data connection, false otherwise. abstract intgetMinimumZoomLevel()Gets the minimum zoom level this tile provider can provide abstract intgetMaximumZoomLevel()Gets the maximum zoom level this tile provider can provide booleanisTileReachable(long pMapTileIndex)abstract voidsetTileSource(ITileSource tileSource)Sets the tile source for this tile provider. voidloadMapTileAsync(MapTileRequestState pState)voiddetach()Detach, we're shutting down - Stops all workers. -
-
Method Detail
-
getTileLoader
abstract MapTileModuleProviderBase.TileLoader getTileLoader()
It is expected that the implementation will construct an internal member which internallyimplements a TileLoader. This method is expected to return a that internal member tomethods of the parent methods.
-
getUsesDataConnection
abstract boolean getUsesDataConnection()
Returns true if implementation uses a data connection, false otherwise. This value is used todetermine if this provider should be skipped if there is no data connection.
-
getMinimumZoomLevel
abstract int getMinimumZoomLevel()
Gets the minimum zoom level this tile provider can provide
-
getMaximumZoomLevel
abstract int getMaximumZoomLevel()
Gets the maximum zoom level this tile provider can provide
-
isTileReachable
boolean isTileReachable(long pMapTileIndex)
-
setTileSource
abstract void setTileSource(ITileSource tileSource)
Sets the tile source for this tile provider.
- Parameters:
tileSource- the tile source
-
loadMapTileAsync
void loadMapTileAsync(MapTileRequestState pState)
-
detach
void detach()
Detach, we're shutting down - Stops all workers.
-
-
-
-