public class TileCacheBase<T extends TileSourceInfo>
extends java.lang.Object
组件层缓存基类
限定符和类型 | 字段和说明 |
---|---|
protected TileSource<T> |
tilesource |
protected T |
tilesourceInfo |
构造器和说明 |
---|
TileCacheBase() |
限定符和类型 | 方法和说明 |
---|---|
void |
clear(java.lang.String mapName, Rectangle2D bounds) |
void |
clearAll(java.lang.String mapName) |
protected TileSource<T> |
connectTileSource(T config) |
void |
dispose() |
TilesetInfo[] |
getTilesetInfos(java.lang.String mapName)
获取给定地图的所有切片信息。
|
TilesetInfo[] |
getTilesetInfos(java.lang.String mapName, TileSource<T> tilesource) |
boolean |
init(T config) |
protected void |
insureInited() |
boolean |
isAvailable() |
boolean |
isAvailable(TileSource<T> tilesource) |
protected TileSource<T extends TileSourceInfo> tilesource
protected T extends TileSourceInfo tilesourceInfo
public boolean init(T config)
protected TileSource<T> connectTileSource(T config)
protected void insureInited()
public void dispose()
public void clear(java.lang.String mapName, Rectangle2D bounds)
public void clearAll(java.lang.String mapName)
public TilesetInfo[] getTilesetInfos(java.lang.String mapName)
mapName
-public TilesetInfo[] getTilesetInfos(java.lang.String mapName, TileSource<T> tilesource)
public boolean isAvailable()
public boolean isAvailable(TileSource<T> tilesource)