Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.spatial.mapper
Class Map

java.lang.Object
  extended byoracle.panama.spatial.mapper.Map


public class Map
extends java.lang.Object

This class represents a mapping result. This mapping result contains more detail than just a map image URL. Further, it describes the actual corner coordinates of the map. These corner coordinates might differ from the originally requested bounding box. One reason for this is that the requested bounding box and the requested image size (in pixels) might not have the same aspect ratio. In such a the actual map will show more than just the bounding box. Another reason is that the mapping provider might not be able to show exactly the requested bounding box, which might be due to the projection, for example. It might, though, be able to provide the exact corner coordinates actually shown on the resulting map. One little issue with the corner coordinates is that the map might well use a projected, rather than geographic coordinate system. Then, the (lat/lon) corner coordinates might not form a rectangle, although the (pixel) map image will.


Constructor Summary
Map(java.lang.String url, Point upperLeftCorner, Point upperRightCorner, Point lowerLeftCorner, Point lowerRightCorner, Provider provider)

Method Summary
Point getLowerLeftCorner()
This returns the lower left corner of the map.
Point getLowerRightCorner()
This returns the lower right corner of the map.
java.lang.String getMapUrl()
This returns the map image URL.
Provider getProvider()
This returns the provider of the map.
Point getUpperLeftCorner()
This returns the upper left corner of the map.
Point getUpperRightCorner()
This returns the upper right corner of the map.
java.lang.String toString()
Returns the string representation of the stored values

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

Map

public Map(java.lang.String url,
           Point upperLeftCorner,
           Point upperRightCorner,
           Point lowerLeftCorner,
           Point lowerRightCorner,
           Provider provider)

Method Detail

getLowerLeftCorner

public Point getLowerLeftCorner()
This returns the lower left corner of the map.
Returns:
a Point representing the lower left corner of the map

getLowerRightCorner

public Point getLowerRightCorner()
This returns the lower right corner of the map.
Returns:
a Point representing the lower right corner of the map

getMapUrl

public java.lang.String getMapUrl()
This returns the map image URL.
Returns:
a String representing the map image URL

getProvider

public Provider getProvider()
This returns the provider of the map.
Returns:
a Provider object representing the provider of the map

getUpperLeftCorner

public Point getUpperLeftCorner()
This returns the upper left corner of the map.
Returns:
a Point representing the upper left corner of the map

getUpperRightCorner

public Point getUpperRightCorner()
This returns the upper right corner of the map.
Returns:
a Point representing the upper right corner of the map

toString

public java.lang.String toString()
Returns the string representation of the stored values
Returns:
the string representation of the stored values

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.