org.openstreetmap.gui.jmapviewer
Class OsmTileSource.TilesAtHome

java.lang.Object
  extended by org.openstreetmap.gui.jmapviewer.OsmTileSource.AbstractOsmTileSource
      extended by org.openstreetmap.gui.jmapviewer.OsmTileSource.TilesAtHome
All Implemented Interfaces:
TileSource
Enclosing class:
OsmTileSource

public static class OsmTileSource.TilesAtHome
extends OsmTileSource.AbstractOsmTileSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
TileSource.TileUpdate
 
Field Summary
static java.lang.String NAME
           
 
Constructor Summary
OsmTileSource.TilesAtHome()
           
 
Method Summary
 int getMaxZoom()
          Specifies the maximum zoom value.
 java.lang.String getName()
          A tile layer name has to be unique and has to consist only of characters valid for filenames.
 TileSource.TileUpdate getTileUpdate()
           
 java.lang.String getTileUrl(int zoom, int tilex, int tiley)
          Constructs the tile url.
 
Methods inherited from class org.openstreetmap.gui.jmapviewer.OsmTileSource.AbstractOsmTileSource
getMinZoom, getTileType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static java.lang.String NAME
Constructor Detail

OsmTileSource.TilesAtHome

public OsmTileSource.TilesAtHome()
Method Detail

getMaxZoom

public int getMaxZoom()
Description copied from interface: TileSource
Specifies the maximum zoom value. The number of zoom levels is [0.. TileSource.getMaxZoom()].

Specified by:
getMaxZoom in interface TileSource
Overrides:
getMaxZoom in class OsmTileSource.AbstractOsmTileSource
Returns:
maximum zoom value that has to be smaller or equal to JMapViewer.MAX_ZOOM

getName

public java.lang.String getName()
Description copied from interface: TileSource
A tile layer name has to be unique and has to consist only of characters valid for filenames.

Returns:
Name of the tile layer

getTileUrl

public java.lang.String getTileUrl(int zoom,
                                   int tilex,
                                   int tiley)
Description copied from interface: TileSource
Constructs the tile url.

Specified by:
getTileUrl in interface TileSource
Overrides:
getTileUrl in class OsmTileSource.AbstractOsmTileSource
Returns:
fully qualified url for downloading the specified tile image

getTileUpdate

public TileSource.TileUpdate getTileUpdate()
Returns:
The supported tile update mechanism
See Also:
TileSource.TileUpdate