|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jdesktop.swingx.mapviewer.TileFactory
public abstract class TileFactory extends Object
A class that can produce tiles and convert coordinates to pixels
| Field Summary | |
|---|---|
private TileFactoryInfo |
info
|
| Constructor Summary | |
protected TileFactory(TileFactoryInfo info)
Creates a new instance of TileFactory |
|
| Method Summary | |
|---|---|
Point2D
|
geoToPixel(GeoPosition c, int zoomLevel)
Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level. |
TileFactoryInfo
|
getInfo()
Get the TileFactoryInfo describing this TileFactory |
Dimension
|
getMapSize(int zoom)
Returns a Dimension containing the width and height of the map, in tiles at the current zoom level. |
Tile
|
getTile(int x, int y, int zoom)
Return the Tile at a given TilePoint and zoom level |
int
|
getTileSize(int zoom)
Gets the size of an edge of a tile in pixels at the current zoom level. |
GeoPosition
|
pixelToGeo(Point2D pixelCoordinate, int zoom)
Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition |
protected void
|
startLoading(Tile tile)
Override this method to load the tile using, for example, an |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private TileFactoryInfo info
| Constructor Detail |
|---|
protected TileFactory(TileFactoryInfo info)
info - a TileFactoryInfo to configure this TileFactory
| Method Detail |
|---|
public Point2D geoToPixel(GeoPosition c, int zoomLevel)
c - a GeoPositionzoom - the zoom level to extract the pixel coordinate for
public TileFactoryInfo getInfo()
public Dimension getMapSize(int zoom)
zoom - the current zoom level
public Tile getTile(int x, int y, int zoom)
tilePoint - the tilePointzoom - the current zoom level
public int getTileSize(int zoom)
zoom - the current zoom level
public GeoPosition pixelToGeo(Point2D pixelCoordinate, int zoom)
pixelCoordinate - a Point2D representing a pixel in the world bitmapzoom - the zoom level of the world bitmap
protected void startLoading(Tile tile)
ExecutorService.
tile - The tile to load.
Groovy Documentation