|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MMBounds
Defined in MultimapAPI
| Constructor Summary | |
MMBounds
( <Object> south_west, <Object> north_east )
An object for storing information about a rectangular bounding box on a map. |
|
| Method Summary | |
boolean
|
contains( <Object> point )
Returns true if the rectangle bounds contain the given point. |
boolean
|
containsBounds( <MMBounds> other )
Returns true if this bounds rectangle contains the given bounds rectangle. |
MMLocation
|
copy()
Function to return a copy of the object in a new object. |
void
|
extend( <Object> point )
Extends the bounds to contain the given point. |
MMLatLon
|
getCenter()
Retrieves the center point of the bounded rectangle. |
MMLatLon
|
getNorthEast()
Gets the point at the northeast of the rectangle. |
MMLatLon
|
getNorthWest()
Gets the point at the northwest of the rectangle. |
MMLatLon
|
getSouthEast()
Gets the point at the southeast of the rectangle. |
MMLatLon
|
getSouthWest()
Gets the point at the southwest of the rectangle. |
boolean
|
intersects( <MMBounds> other )
Returns true if this bounds rectangle intersects the given bounds rectangle. |
void
|
reset( <Object> south_west, <Object> north_east )
A method to reset the contents of a bounds object, allows re-use. |
String
|
toString()
Function to return a simple string representation of the object. |
| Constructor Detail |
MMBounds( <Object> south_west, <Object> north_east )
south_west - South-west point of the rectangle, or an array of points.
north_east - (optional) North-east point of the rectangle.
| Method Detail |
boolean contains( <Object> point )
point - Point to check for.
boolean containsBounds( <MMBounds> other )
other - The other rectangle to check.
MMLocation copy()
void extend( <Object> point )
point - Point to extend the bounds by.
MMLatLon getCenter()
MMLatLon getNorthEast()
MMLatLon getNorthWest()
MMLatLon getSouthEast()
MMLatLon getSouthWest()
boolean intersects( <MMBounds> other )
other - The other rectangle to check.
void reset( <Object> south_west, <Object> north_east )
south_west - South-west point of the rectangle, or an array of points.
north_east - (optional) North-east point of the rectangle.
String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||