DefaultTileFactorypublic abstract class AbstractTileFactory extends TileFactory
AbstractTileFactory provides a basic implementation for the
TileFactory.| 构造器 | 说明 |
|---|---|
AbstractTileFactory(TileFactoryInfo info) |
Creates a new instance of DefaultTileFactory using the spcified
TileFactoryInfo
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected Runnable |
createTileRunner(Tile tile) |
Subclasses can override this if they need custom TileRunners for some
reason
|
protected ExecutorService |
getService() |
Subclasses may override this method to provide their own executor
services.
|
Tile |
getTile(int x,
int y,
int zoom) |
Returns the tile that is located at the given tilePoint for this zoom.
|
TileCache |
getTileCache() |
|
protected URI |
getURI(Tile tile) |
Gets the full URI of a tile.
|
void |
load(Tile tile) |
|
void |
promote(Tile tile) |
Increase the priority of this tile so it will be loaded sooner.
|
void |
setThreadPoolSize(int size) |
Set the number of threads to use for loading the tiles.
|
void |
setTileCache(TileCache cache) |
|
protected void |
startLoading(Tile tile) |
Override this method to load the tile using, for example, an
ExecutorService. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgeoToPixel, getInfo, getMapSize, getTileSize, pixelToGeopublic AbstractTileFactory(TileFactoryInfo info)
info - a TileFactoryInfo to configure this TileFactorypublic Tile getTile(int x, int y, int zoom)
getTile 在类中 TileFactoryx - X indexy - Y indexzoom - Zoom valuepublic TileCache getTileCache()
public void setTileCache(TileCache cache)
protected ExecutorService getService()
public void setThreadPoolSize(int size)
size - protected void startLoading(Tile tile)
TileFactoryExecutorService.startLoading 在类中 TileFactorytile - The tile to load.public void load(Tile tile)
load 在类中 TileFactoryprotected URI getURI(Tile tile) throws URISyntaxException
tile - URISyntaxExceptionprotected Runnable createTileRunner(Tile tile)
tile - Tilepublic void promote(Tile tile)
tile - TileCopyright © 2019. All rights reserved.