org.openstreetmap.gui.jmapviewer
Class OsmTileSource.CycleMap

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

public static class OsmTileSource.CycleMap
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
           
private static java.lang.String PATTERN
           
private static java.lang.String[] SERVER
           
private  int SERVER_NUM
           
 
Constructor Summary
OsmTileSource.CycleMap()
           
 
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

PATTERN

private static final java.lang.String PATTERN
See Also:
Constant Field Values

NAME

public static java.lang.String NAME

SERVER

private static final java.lang.String[] SERVER

SERVER_NUM

private int SERVER_NUM
Constructor Detail

OsmTileSource.CycleMap

public OsmTileSource.CycleMap()
Method Detail

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

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

getTileUpdate

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