public class DefaultBingMapsTileRequest extends java.lang.Object implements BingMapsTileRequest
Constructor and Description |
---|
DefaultBingMapsTileRequest(BingMapsTileRequestParams params)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
downloadFile(java.net.URL url,
java.io.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,
java.io.File file,
ICancellable cancel)
asks Bing Maps for a image tile in a file
|
java.awt.image.BufferedImage |
getTile(int col,
int row,
int zoomlvl)
asks Bing Maps for a image tile
|
public DefaultBingMapsTileRequest(BingMapsTileRequestParams params)
params
- public java.awt.image.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, java.io.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(java.net.URL url, java.io.File file, ICancellable cancel) throws DownloadingException
url
- file
- cancel
- DownloadingException