org.openstreetmap.fma.jtiledownloader.tilelist
Class TileListCommonBBox

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

public class TileListCommonBBox
extends TileListCommon


Field Summary
private  int[] _xBottomRight
           
private  int[] _xTopLeft
           
private  int[] _yBottomRight
           
private  int[] _yTopLeft
           
private static java.util.logging.Logger log
           
 
Constructor Summary
TileListCommonBBox()
           
 
Method Summary
 void calculateTileValuesXY(double minLat, double minLon, double maxLat, double maxLon)
           
 int getTileCount()
           
 java.util.ArrayList<Tile> getTileListToDownload()
           
 int[] getXBottomRight()
          Getter for xBottomRight
 int[] getXTopLeft()
          Getter for xTopLeft
 int[] getYBottomRight()
          Getter for yBottomRight
 int[] getYTopLeft()
          Getter for yTopLeft
 void initXBottomRight(int value)
          Setter for BottomRight
 void initXTopLeft(int value)
          Setter for topLeft
 void initYBottomRight(int value)
          Setter for BottomRight
 void initYTopLeft(int value)
          Setter for topLeft
 void setXBottomRight(int bottomRight, int index)
          Setter for bottomRight
 void setXTopLeft(int topLeft, int index)
          Setter for topLeft
 void setYBottomRight(int bottomRight, int index)
          Setter for bottomRight
 void setYTopLeft(int topLeft, int index)
          Setter for topLeft
 
Methods inherited from class org.openstreetmap.fma.jtiledownloader.tilelist.TileListCommon
calculateTileX, calculateTileY, getDownloadZoomLevels, setDownloadZoomLevels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

_xTopLeft

private int[] _xTopLeft

_yTopLeft

private int[] _yTopLeft

_xBottomRight

private int[] _xBottomRight

_yBottomRight

private int[] _yBottomRight
Constructor Detail

TileListCommonBBox

public TileListCommonBBox()
Method Detail

getTileListToDownload

public java.util.ArrayList<Tile> getTileListToDownload()
Returns:
ArrayList containing Tiles
See Also:
TileList.getTileListToDownload()

calculateTileValuesXY

public void calculateTileValuesXY(double minLat,
                                  double minLon,
                                  double maxLat,
                                  double maxLon)
Parameters:
minLat -
minLon -
maxLat -
maxLon -

initXTopLeft

public final void initXTopLeft(int value)
Setter for topLeft

Parameters:
value - the xTopLeft to set

initYTopLeft

public final void initYTopLeft(int value)
Setter for topLeft

Parameters:
value - the xTopLeft to set

initXBottomRight

public final void initXBottomRight(int value)
Setter for BottomRight

Parameters:
value - the xBottomRight to set

initYBottomRight

public final void initYBottomRight(int value)
Setter for BottomRight

Parameters:
value - the xBottomRight to set

getXTopLeft

public final int[] getXTopLeft()
Getter for xTopLeft

Returns:
the xTopLeft

setXTopLeft

public final void setXTopLeft(int topLeft,
                              int index)
Setter for topLeft

Parameters:
topLeft - the xTopLeft to set
index -

getYTopLeft

public final int[] getYTopLeft()
Getter for yTopLeft

Returns:
the yTopLeft

setYTopLeft

public final void setYTopLeft(int topLeft,
                              int index)
Setter for topLeft

Parameters:
topLeft - the yTopLeft to set
index -

getXBottomRight

public final int[] getXBottomRight()
Getter for xBottomRight

Returns:
the xBottomRight

setXBottomRight

public final void setXBottomRight(int bottomRight,
                                  int index)
Setter for bottomRight

Parameters:
bottomRight - the xBottomRight to set
index -

getYBottomRight

public final int[] getYBottomRight()
Getter for yBottomRight

Returns:
the yBottomRight

setYBottomRight

public final void setYBottomRight(int bottomRight,
                                  int index)
Setter for bottomRight

Parameters:
bottomRight - the yBottomRight to set
index -

getTileCount

public int getTileCount()
Returns:
tile count