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
GoogleMapsRequest
getTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException
public void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, java.io.File file, ICancellable cancel) throws URLFormatException, DownloadingException
GoogleMapsRequest
downloadTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException
public void downloadTile(Point center, int zoomlevel, int pxwidth, int pxheight, GoogleMapsRequestListener listener)
GoogleMapsRequest
downloadTile
in interface GoogleMapsRequest
public java.awt.image.BufferedImage getTile(Envelope box, int zoomlevel, int pxwidth, int pxheight) throws URLFormatException, DownloadingException
GoogleMapsRequest
getTile
in interface GoogleMapsRequest
URLFormatException
DownloadingException