|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epseelon.mobimap.tiles.TileFactory
public abstract class TileFactory
A class that can produce tiles and convert coordinates to pixels
| Constructor Summary | |
|---|---|
protected |
TileFactory(TileFactoryInfo info)
Creates a new instance of TileFactory |
| Method Summary | |
|---|---|
Point2D |
geoToPixel(GeoPosition c,
int referenceZoom)
Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level. |
protected abstract java.lang.String |
getCoordinatePart(int x,
int y,
int referenceZoom)
|
TileFactoryInfo |
getInfo()
Get the TileFactoryInfo describing this TileFactory |
Dimension |
getMapSize(int referenceZoom)
Returns a Dimension containing the width and height of the map, in tiles at the current zoom level. |
protected abstract int |
getParticularZoomFromReferenceZoom(int referenceZoom)
|
protected abstract int |
getReferenceZoomFromParticularZoom(int particularZoom)
|
abstract Tile |
getTile(int x,
int y,
int referenceZoom)
Return the Tile at a given TilePoint and zoom level |
int |
getTileSize(int referenceZoom)
Gets the size of an edge of a tile in pixels at the current zoom level. |
GeoPosition |
pixelToGeo(Point2D pixelCoordinate,
int referenceZoom)
Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition |
protected abstract void |
startLoading(Tile tile)
Override this method to load the tile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TileFactory(TileFactoryInfo info)
info - a TileFactoryInfo to configure this TileFactory| Method Detail |
|---|
public int getTileSize(int referenceZoom)
referenceZoom - the current zoom level
public Dimension getMapSize(int referenceZoom)
referenceZoom - the current zoom level
public abstract Tile getTile(int x,
int y,
int referenceZoom)
y - ordinate of the tilePointreferenceZoom - the current zoom level
public GeoPosition pixelToGeo(Point2D pixelCoordinate,
int referenceZoom)
pixelCoordinate - a Point2D representing a pixel in the world bitmapreferenceZoom - the zoom level of the world bitmap
public Point2D geoToPixel(GeoPosition c,
int referenceZoom)
c - a GeoPositionreferenceZoom - the zoom level to extract the pixel coordinate for
public TileFactoryInfo getInfo()
protected abstract void startLoading(Tile tile)
tile - The tile to load.
protected abstract java.lang.String getCoordinatePart(int x,
int y,
int referenceZoom)
protected abstract int getParticularZoomFromReferenceZoom(int referenceZoom)
protected abstract int getReferenceZoomFromParticularZoom(int particularZoom)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||