Groovy Documentation

org.jdesktop.swingx.mapviewer.empty
[Java] Class EmptyTileFactory

java.lang.Object
  org.jdesktop.swingx.mapviewer.TileFactory
      org.jdesktop.swingx.mapviewer.empty.EmptyTileFactory

public class EmptyTileFactory
extends TileFactory

A null implementation of TileFactory. Draws empty areas.

Authors:
joshy


Field Summary
private BufferedImage emptyTile

The empty tile image.

 
Fields inherited from class TileFactory
info
 
Constructor Summary
EmptyTileFactory()

Creates a new instance of EmptyTileFactory

EmptyTileFactory(TileFactoryInfo info)

Creates a new instance of EmptyTileFactory using the specified info.

 
Method Summary
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.

 
Methods inherited from class TileFactory
geoToPixel, getInfo, getMapSize, getTile, getTileSize, pixelToGeo, startLoading
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

emptyTile

private BufferedImage emptyTile
The empty tile image.


 
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.


 
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.
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.


startLoading

protected void startLoading(Tile tile)
Override this method to load the tile using, for example, an ExecutorService.
Parameters:
tile - The tile to load.


 

Groovy Documentation