|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the interface for classes that know how to obtain a world map
clipping as a BufferedImage
object.
Method Summary | |
BufferedImage |
getMap(Latitude latitude,
Longitude longitude,
double scale,
int width,
int height)
Returns a world map clipping as a BufferedImage object. |
BufferedImage |
getMap(WGS84Coordinate center,
double scale,
int width,
int height)
Returns a world map clipping as a BufferedImage object. |
double |
scaleMax()
Returns the maximum scale that is valid for this MapRequester . |
double |
scaleMin()
Returns the minimum scale that is valid for this MapRequester . |
Method Detail |
public double scaleMin()
MapRequester
.
MapRequester
public double scaleMax()
MapRequester
.
MapRequester
public BufferedImage getMap(Latitude latitude, Longitude longitude, double scale, int width, int height) throws IOException
BufferedImage
object.
The center of the requested map is specified by latitude
and longitude
. The scale
argument is expected
to be equal to or more than scaleMin()
and equal to or less
than scaleMax()
and will be adjusted to the appropriate level if
not within the expected range.
The width
and height
arguments define the
dimension of the returned BufferedImage
.
latitude
- latitude of the map's centerlongitude
- longitude of the map's centerscale
- scale of the map, measured in meters per pixelwidth
- width of the requested BufferedImage, measured in pixelsheight
- height of the requested BufferedImage, measured in pixels
BufferedImage
or null
if
the image could not be retrieved
IOException
- if an input or output exception occurred during
retrievalpublic BufferedImage getMap(WGS84Coordinate center, double scale, int width, int height) throws IOException
BufferedImage
object.
The center of the requested map is specified by center
. The
scale
argument is expected to be equal to or more than
scaleMin()
and equal to or less than scaleMax()
and
will be adjusted to the appropriate level if not within the expected
range.
The width
and height
arguments define the
dimension of the returned BufferedImage
.
center
- the center position of the mapscale
- scale of the map, measured in meters per pixelwidth
- width of the requested BufferedImage, measured in pixelsheight
- height of the requested BufferedImage, measured in pixels
BufferedImage
or null
if
the image could not be retrieved
IOException
- if an input or output exception occurred during
retrieval
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |