public class EmptyTileFactory extends TileFactory
Constructor and Description |
---|
EmptyTileFactory()
Creates a new instance of EmptyTileFactory
|
EmptyTileFactory(TileFactoryInfo info)
Creates a new instance of EmptyTileFactory using the specified info.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this TileFactory
|
Tile |
getTile(int x,
int y,
int zoom)
Gets an instance of an empty tile for the given tile position and zoom on the world map.
|
protected void |
startLoading(Tile tile)
Override this method to load the tile using, for example, an
ExecutorService . |
addTileListener, fireTileLoadedEvent, geoToPixel, getInfo, getMapSize, getTileSize, pixelToGeo, removeTileListener
public EmptyTileFactory()
public EmptyTileFactory(TileFactoryInfo info)
info
- the tile factory infopublic Tile getTile(int x, int y, int zoom)
getTile
in class TileFactory
x
- The tile's x position on the world map.y
- The tile's y position on the world map.zoom
- The current zoom level.public void dispose()
TileFactory
dispose
in class TileFactory
protected void startLoading(Tile tile)
ExecutorService
.startLoading
in class TileFactory
tile
- The tile to load.Copyright © 2013. All Rights Reserved.