public class DefaultGoogleMapsRequest extends java.lang.Object implements GoogleMapsRequest
| Constructor and Description |
|---|
DefaultGoogleMapsRequest(GoogleMapsRequestParams params)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
downloadTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight,
java.io.File file,
ICancellable cancel)
asks Google Maps for a image tile in a file
|
void |
downloadTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight,
GoogleMapsRequestListener listener)
asks Google Maps for a image tile asynchronously
|
java.awt.image.BufferedImage |
getTile(Envelope box,
int zoomlevel,
int pxwidth,
int pxheight)
Gets a map centered in an envelope
|
java.awt.image.BufferedImage |
getTile(Point center,
int zoomlevel,
int pxwidth,
int pxheight)
asks Google Maps for a image tile
|
public DefaultGoogleMapsRequest(GoogleMapsRequestParams params)
params - public java.awt.image.BufferedImage getTile(Point center, int zoomlevel, int pxwidth, int pxheight) throws URLFormatException, DownloadingException
GoogleMapsRequestgetTile in interface GoogleMapsRequestURLFormatExceptionDownloadingExceptionpublic void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, java.io.File file, ICancellable cancel) throws URLFormatException, DownloadingException
GoogleMapsRequestdownloadTile in interface GoogleMapsRequestURLFormatExceptionDownloadingExceptionpublic void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, GoogleMapsRequestListener listener)
GoogleMapsRequestdownloadTile in interface GoogleMapsRequestpublic java.awt.image.BufferedImage getTile(Envelope box, int zoomlevel, int pxwidth, int pxheight) throws URLFormatException, DownloadingException
GoogleMapsRequestgetTile in interface GoogleMapsRequestURLFormatExceptionDownloadingException