public class MapTileApproximater extends MapTileModuleProviderBase
Modifier and Type | Class and Description |
---|---|
protected class |
MapTileApproximater.TileLoader |
mPending, mQueueLockObject, mWorking
Constructor and Description |
---|
MapTileApproximater() |
MapTileApproximater(int pThreadPoolSize,
int pPendingQueueSize) |
Modifier and Type | Method and Description |
---|---|
void |
addProvider(MapTileModuleProviderBase pProvider) |
static Bitmap |
approximateTileFromLowerZoom(BitmapDrawable pSrcDrawable,
long pMapTileIndex,
int pZoomDiff)
Approximate a tile from a lower zoom level
|
Bitmap |
approximateTileFromLowerZoom(long pMapTileIndex)
Approximate a tile from a lower zoom level
|
Bitmap |
approximateTileFromLowerZoom(long pMapTileIndex,
int pZoomDiff)
Approximate a tile from a lower zoom level
|
static Bitmap |
approximateTileFromLowerZoom(MapTileModuleProviderBase pProvider,
long pMapTileIndex,
int pZoomDiff)
Approximate a tile from a lower zoom level
|
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.
|
static Bitmap |
getTileBitmap(int pTileSizePx)
Try to get a tile bitmap from the pool, otherwise allocate a new one
|
MapTileApproximater.TileLoader |
getTileLoader()
It is expected that the implementation will construct an internal member which internally
implements a
MapTileModuleProviderBase.TileLoader . |
boolean |
getUsesDataConnection()
Returns true if implementation uses a data connection, false otherwise.
|
void |
setTileSource(ITileSource pTileSource)
Deprecated.
|
loadMapTileAsync, removeTileFromQueues
public MapTileApproximater()
public MapTileApproximater(int pThreadPoolSize, int pPendingQueueSize)
public void addProvider(MapTileModuleProviderBase pProvider)
public boolean getUsesDataConnection()
MapTileModuleProviderBase
getUsesDataConnection
in class MapTileModuleProviderBase
protected String getName()
MapTileModuleProviderBase
getName
in class MapTileModuleProviderBase
protected String getThreadGroupName()
MapTileModuleProviderBase
getThreadGroupName
in class MapTileModuleProviderBase
public MapTileApproximater.TileLoader getTileLoader()
MapTileModuleProviderBase
MapTileModuleProviderBase.TileLoader
. This method is expected to return a that internal member to
methods of the parent methods.getTileLoader
in class MapTileModuleProviderBase
public int getMinimumZoomLevel()
MapTileModuleProviderBase
getMinimumZoomLevel
in class MapTileModuleProviderBase
public int getMaximumZoomLevel()
MapTileModuleProviderBase
getMaximumZoomLevel
in class MapTileModuleProviderBase
@Deprecated public void setTileSource(ITileSource pTileSource)
MapTileModuleProviderBase
setTileSource
in class MapTileModuleProviderBase
pTileSource
- the tile sourcepublic Bitmap approximateTileFromLowerZoom(long pMapTileIndex)
pMapTileIndex
- Destination tile, for the same place on the planet as the source, but on a higher zoompublic Bitmap approximateTileFromLowerZoom(long pMapTileIndex, int pZoomDiff)
pMapTileIndex
- Destination tile, for the same place on the planet as the source, but on a higher zoompZoomDiff
- Zoom level difference between the destination and the source; strictly positivepublic static Bitmap approximateTileFromLowerZoom(MapTileModuleProviderBase pProvider, long pMapTileIndex, int pZoomDiff)
pProvider
- Source tile providerpMapTileIndex
- Destination tile, for the same place on the planet as the source, but on a higher zoompZoomDiff
- Zoom level difference between the destination and the source; strictly positivepublic static Bitmap approximateTileFromLowerZoom(BitmapDrawable pSrcDrawable, long pMapTileIndex, int pZoomDiff)
pSrcDrawable
- Source tile bitmappMapTileIndex
- Destination tile, for the same place on the planet as the source, but on a higher zoompZoomDiff
- Zoom level difference between the destination and the source; strictly positivepublic static Bitmap getTileBitmap(int pTileSizePx)
pTileSizePx
- public void detach()
MapTileModuleProviderBase
detach
in class MapTileModuleProviderBase