|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.gps.maps.ExpediaMapRequester
A MapRequester
implementation that can be used to obtain world
map clippings from expedia.
Field Summary | |
protected static MemoryCache |
imageCache_
cache to store already requested images |
protected static double |
scaleFactor_
The factor to convert the scale from MapInfo
(in meters per pixel) into the ExpediaMap specific scale |
protected static double |
scaleMax_
largest scale factor that is valid for this ExpediaMapRequester |
protected static double |
scaleMin_
smallest scale factor that is valid for this ExpediaMapRequester |
Constructor Summary | |
ExpediaMapRequester()
Creates a new Expedia . |
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final double scaleFactor_
MapInfo
(in meters per pixel) into the ExpediaMap specific scale
protected static final double scaleMin_
ExpediaMapRequester
protected static final double scaleMax_
ExpediaMapRequester
protected static MemoryCache imageCache_
Constructor Detail |
public ExpediaMapRequester()
Expedia
.
Method Detail |
public double scaleMin()
MapRequester
MapRequester
.
scaleMin
in interface MapRequester
MapRequester
public double scaleMax()
MapRequester
MapRequester
.
scaleMax
in interface MapRequester
MapRequester
public BufferedImage getMap(WGS84Coordinate center, double scale, int width, int height) throws IOException
MapRequester
BufferedImage
object.
The center of the requested map is specified by center
. The
scale
argument is expected to be equal to or more than
MapRequester.scaleMin()
and equal to or less than MapRequester.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
.
getMap
in interface MapRequester
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
retrievalpublic BufferedImage getMap(Latitude latitude, Longitude longitude, double scale, int width, int height) throws IOException
MapRequester
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 MapRequester.scaleMin()
and equal to or less
than MapRequester.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
.
getMap
in interface MapRequester
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
retrieval
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |