org.openstreetmap.gui.jmapviewer.tilesources
Class TMSTileSource

java.lang.Object
  extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
      extended by org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
          extended by org.openstreetmap.gui.jmapviewer.tilesources.TMSTileSource
All Implemented Interfaces:
Attributed, TileSource
Direct Known Subclasses:
TemplatedTMSTileSource

public class TMSTileSource
extends AbstractTMSTileSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.gui.jmapviewer.interfaces.TileSource
TileSource.TileUpdate
 
Field Summary
protected  int maxZoom
           
protected  int minZoom
           
 
Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
baseUrl, name
 
Fields inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
attributionImage, attributionImageURL, attributionLinkURL, attributionText, termsOfUseText, termsOfUseURL
 
Constructor Summary
TMSTileSource(java.lang.String name, java.lang.String url, int maxZoom)
           
TMSTileSource(java.lang.String name, java.lang.String url, int minZoom, int maxZoom)
           
 
Method Summary
 int getMaxZoom()
          Specifies the maximum zoom value.
 int getMinZoom()
          Specifies the minimum zoom value.
 TileSource.TileUpdate getTileUpdate()
           
 
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource
getBaseUrl, getExtension, getName, getTilePath, getTileSize, getTileType, getTileUrl, latToTileY, lonToTileX, tileXToLon, tileYToLat, toString
 
Methods inherited from class org.openstreetmap.gui.jmapviewer.tilesources.AbstractTileSource
getAttributionImage, getAttributionImageURL, getAttributionLinkURL, getAttributionText, getTermsOfUseText, getTermsOfUseURL, requiresAttribution, setAttributionImage, setAttributionImageURL, setAttributionLinkURL, setAttributionText, setTermsOfUseText, setTermsOfUseURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxZoom

protected int maxZoom

minZoom

protected int minZoom
Constructor Detail

TMSTileSource

public TMSTileSource(java.lang.String name,
                     java.lang.String url,
                     int maxZoom)

TMSTileSource

public TMSTileSource(java.lang.String name,
                     java.lang.String url,
                     int minZoom,
                     int maxZoom)
Method Detail

getMinZoom

public int getMinZoom()
Description copied from interface: TileSource
Specifies the minimum zoom value. This value is usually 0. Only for maps that cover a certain region up to a limited zoom level this method should return a value different than 0.

Specified by:
getMinZoom in interface TileSource
Overrides:
getMinZoom in class AbstractTMSTileSource
Returns:
minimum zoom value - usually 0

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 AbstractTMSTileSource
Returns:
maximum zoom value that has to be smaller or equal to JMapViewer.MAX_ZOOM

getTileUpdate

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


JOSM