| com.google.gdata.data.geo.Box |
Known Indirect Subclasses
| GeoRssBox |
A georss:box that contains 2 points, like:
42.943 -71.032 43.039 -69.856
|
| GeoRssWhere |
The georss:where element. |
| GmlEnvelope |
A gml:Envelope element, this is used to describe a box using the gml version
of our geographic information language. |
|
Class Overview
Interface for specifying a box that describes a rectangular geographic
location. This is a bounding box described by two Point objects,
the lower left coordinate and the upper right coordinate.
Public Methods
public
abstract
Point
getLowerLeft
()
Returns
- the point that represents the lower-left coordinate of the box.
public
abstract
Point
getUpperRight
()
Returns
- the point that represents the upper-right coordinate of the box.
public
abstract
void
setGeoLocation
(Point lowerLeft, Point upperRight)
Sets the coordinates of this box. Both lowerLeft and upperRight must be
non-null or both must be null. Implementations will throw an
IllegalArgumentException if one is null and the other non-null.
Parameters
| lowerLeft
| The lower left coordinate. The latitude of this point
must be below the latitude of the upper right coordinate. |
| upperRight
| The upper right coordinate. The latitude of this point
must be above the latitude of the lower left coordinate. |
Throws
| IllegalArgumentException
| if only one of the points is non-null, or
if an invalid pair of points is given.
|