public interface

Box

implements Extension
com.google.gdata.data.geo.Box
Known Indirect Subclasses

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.

Summary

Public Methods
abstract Point getLowerLeft()
abstract Point getUpperRight()
abstract void setGeoLocation(Point lowerLeft, Point upperRight)
Sets the coordinates of this box.
[Expand]
Inherited Methods
From interface com.google.gdata.data.Extension

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.