Class EmptyTileFactory
- java.lang.Object
-
- org.meteoinfo.data.mapdata.webmap.TileFactory
-
- org.meteoinfo.data.mapdata.webmap.empty.EmptyTileFactory
-
public class EmptyTileFactory extends TileFactory
A null implementation of TileFactory. Draws empty areas.
-
-
Constructor Summary
Constructors Constructor Description EmptyTileFactory()Creates a new instance of EmptyTileFactoryEmptyTileFactory(TileFactoryInfo info)Creates a new instance of EmptyTileFactory using the specified info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TilegetTile(int x, int y, int zoom)Gets an instance of an empty tile for the given tile position and zoom on the world map.voidload(Tile tile)protected voidstartLoading(Tile tile)Override this method to load the tile using, for example, anExecutorService.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.meteoinfo.data.mapdata.webmap.TileFactory
geoToPixel, getInfo, getMapSize, getTileSize, pixelToGeo
-
-
-
-
Constructor Detail
-
EmptyTileFactory
public EmptyTileFactory()
Creates a new instance of EmptyTileFactory
-
EmptyTileFactory
public EmptyTileFactory(TileFactoryInfo info)
Creates a new instance of EmptyTileFactory using the specified info.- Parameters:
info- TileFactoryInfo
-
-
Method Detail
-
getTile
public 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.- Specified by:
getTilein classTileFactory- Parameters:
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.- Returns:
- Tile
-
startLoading
protected void startLoading(Tile tile)
Override this method to load the tile using, for example, anExecutorService.- Specified by:
startLoadingin classTileFactory- Parameters:
tile- The tile to load.
-
load
public void load(Tile tile)
- Specified by:
loadin classTileFactory
-
-