org.openstreetmap.fma.jtiledownloader.tilelist
Class TileListCommon

java.lang.Object
  extended by org.openstreetmap.fma.jtiledownloader.tilelist.TileListCommon
All Implemented Interfaces:
TileList
Direct Known Subclasses:
TileListCommonBBox, TileListCommonGPX

public abstract class TileListCommon
extends java.lang.Object
implements TileList


Field Summary
private  int[] _downloadZoomLevels
           
 
Constructor Summary
TileListCommon()
           
 
Method Summary
protected  int calculateTileX(double lon, int zoomLevel)
           
protected  int calculateTileY(double lat, int zoomLevel)
           
 int[] getDownloadZoomLevels()
          Getter for downloadZoomLevel
 void setDownloadZoomLevels(int[] downloadZoomLevel)
          Setter for downloadZoomLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openstreetmap.fma.jtiledownloader.tilelist.TileList
getTileListToDownload
 

Field Detail

_downloadZoomLevels

private int[] _downloadZoomLevels
Constructor Detail

TileListCommon

public TileListCommon()
Method Detail

calculateTileY

protected final int calculateTileY(double lat,
                                   int zoomLevel)
Parameters:
lat -
zoomLevel -
Returns:
tileY

calculateTileX

protected final int calculateTileX(double lon,
                                   int zoomLevel)
Parameters:
lon -
zoomLevel -
Returns:
tileX

getDownloadZoomLevels

public final int[] getDownloadZoomLevels()
Getter for downloadZoomLevel

Returns:
the downloadZoomLevel

setDownloadZoomLevels

public final void setDownloadZoomLevels(int[] downloadZoomLevel)
Setter for downloadZoomLevel

Parameters:
downloadZoomLevel - the downloadZoomLevel to set