public class DefaultBingMapsTileRequest extends Object implements BingMapsTileRequest
Constructor and Description |
---|
DefaultBingMapsTileRequest(BingMapsTileRequestParams params)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
downloadFile(URL url,
File file,
ICancellable cancel)
Downloads an image from URL and saves it in an image
|
void |
downloadTile(int col,
int row,
int zoomlvl,
BingMapsTileRequestListener listener)
asks Bing Maps for a image tile asynchronously
|
void |
downloadTile(int col,
int row,
int zoomlvl,
File file,
ICancellable cancel)
asks Bing Maps for a image tile in a file
|
BufferedImage |
getTile(int col,
int row,
int zoomlvl)
asks Bing Maps for a image tile
|
public DefaultBingMapsTileRequest(BingMapsTileRequestParams params)
params
- public BufferedImage getTile(int col, int row, int zoomlvl) throws URLFormatException, DownloadingException
BingMapsTileRequest
getTile
in interface BingMapsTileRequest
URLFormatException
DownloadingException
public void downloadTile(int col, int row, int zoomlvl, File file, ICancellable cancel) throws URLFormatException, DownloadingException
BingMapsTileRequest
downloadTile
in interface BingMapsTileRequest
URLFormatException
DownloadingException
public void downloadTile(int col, int row, int zoomlvl, BingMapsTileRequestListener listener)
BingMapsTileRequest
downloadTile
in interface BingMapsTileRequest
public void downloadFile(URL url, File file, ICancellable cancel) throws DownloadingException
url
- file
- cancel
- DownloadingException