|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.mapviewer.TileFactory
org.jdesktop.swingx.mapviewer.AbstractTileFactory
public abstract class AbstractTileFactory
The AbstractTileFactory provides a basic implementation for the TileFactory.
| Constructor Summary | |
|---|---|
AbstractTileFactory(TileFactoryInfo info)
Creates a new instance of DefaultTileFactory using the spcified TileFactoryInfo |
|
| Method Summary | |
|---|---|
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()
|
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. |
| Methods inherited from class org.jdesktop.swingx.mapviewer.TileFactory |
|---|
geoToPixel, getInfo, getMapSize, getTileSize, pixelToGeo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTileFactory(TileFactoryInfo info)
info - a TileFactoryInfo to configure this TileFactory| Method Detail |
|---|
public Tile getTile(int x,
int y,
int zoom)
getTile in class TileFactorytilePoint - zoom -
public TileCache getTileCache()
public void setTileCache(TileCache cache)
protected ExecutorService getService()
public void setThreadPoolSize(int size)
size - protected void startLoading(Tile tile)
TileFactoryExecutorService.
startLoading in class TileFactorytile - The tile to load.protected Runnable createTileRunner(Tile tile)
public void promote(Tile tile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||