org.openstreetmap.gui.jmapviewer
Class TileController
java.lang.Object
org.openstreetmap.gui.jmapviewer.TileController
public class TileController
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tileLoader
protected TileLoader tileLoader
tileCache
protected TileCache tileCache
tileSource
protected TileSource tileSource
jobDispatcher
JobDispatcher jobDispatcher
TileController
public TileController(TileSource source,
TileCache tileCache,
TileLoaderListener listener)
getTile
public Tile getTile(int tilex,
int tiley,
int zoom)
- retrieves a tile from the cache. If the tile is not present in the cache
a load job is added to the working queue of
JobDispatcher.JobThread
.
- Parameters:
tilex
- the X position of the tiletiley
- the Y position of the tilezoom
- the zoom level of the tile
- Returns:
- specified tile from the cache or
null
if the tile
was not found in the cache.
getTileCache
public TileCache getTileCache()
setTileCache
public void setTileCache(TileCache tileCache)
getTileLoader
public TileLoader getTileLoader()
setTileLoader
public void setTileLoader(TileLoader tileLoader)
getTileLayerSource
public TileSource getTileLayerSource()
getTileSource
public TileSource getTileSource()
setTileSource
public void setTileSource(TileSource tileSource)
cancelOutstandingJobs
public void cancelOutstandingJobs()
JOSM