|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.geom.LatLngBounds
public class LatLngBounds
Represents a rectangle in geographical coordinates, including one that crosses the 180 degrees meridian.
Constructor Summary | |
---|---|
protected |
LatLngBounds()
|
Method Summary | |
---|---|
boolean |
contains(LatLng coordinate)
Deprecated. See containsLatLng(LatLng) |
boolean |
containsBounds(LatLngBounds other)
Returns true if the passed rectangle is contained within
this rectangle. |
boolean |
containsLatLng(LatLng coordinate)
Returns true iff the geographical coordinates of the point lie within this rectangle. |
void |
extend(LatLng coordinate)
Returns a new rectangle such that it contains the given point. |
LatLng |
getCenter()
Returns the point at the center of the rectangle. |
LatLng |
getNorthEast()
Returns the point at the north-east corner of the rectangle. |
LatLng |
getSouthWest()
Returns the point at the south-west corner of the rectangle. |
boolean |
intersects(LatLngBounds other)
Returns true if the specified rectangle intersects this
rectangle. |
boolean |
isEmpty()
Returns true if this rectangle is empty. |
boolean |
isFullLatitude()
Returns true |
boolean |
isFullLongitude()
Returns true if this rectangle extends fully around the
earth in the longitude direction. |
static LatLngBounds |
newInstance()
Construct a new LatLngBounds object. |
static LatLngBounds |
newInstance(LatLng southWest,
LatLng northEast)
Construct a new LatLngBounds object by specifying two opposite corners. |
LatLng |
toSpan()
Returns a LatLng whose coordinates represent the size of this rectangle. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LatLngBounds()
Method Detail |
---|
public static LatLngBounds newInstance()
public static LatLngBounds newInstance(LatLng southWest, LatLng northEast)
southWest
- the south-west corner of the bounds to create.northEast
- the north-east corner of the bounds to create.@Deprecated public final boolean contains(LatLng coordinate)
containsLatLng(LatLng)
coordinate
- point to compare.
true
if the specified point is contained within the
range of this bounds object.public final boolean containsBounds(LatLngBounds other)
true
if the passed rectangle is contained within
this rectangle.
other
- bounds to compare.
true
if the geographical coordinates of the bounds
lie within this rectangle.public final boolean containsLatLng(LatLng coordinate)
coordinate
- point to compare
true
if the geographical coordinates of the point
lie within this rectangle.public final void extend(LatLng coordinate)
coordinate
- coordinate to use in creating the new LatLngBounds
object.public final LatLng getCenter()
public final LatLng getNorthEast()
public final LatLng getSouthWest()
public final boolean intersects(LatLngBounds other)
true
if the specified rectangle intersects this
rectangle.
other
- the rectangle to compare.
true
if the specified rectangle intersects this
rectangle.public final boolean isEmpty()
true
if this rectangle is empty.
true
if this rectangle is empty.public final boolean isFullLatitude()
true if this rectangle extends from the south pole to the north
pole.
- Returns:
true
if this rectangle extends from the south pole to the north
pole.
public final boolean isFullLongitude()
true
if this rectangle extends fully around the
earth in the longitude direction.
true
if this rectangle extends fully around the
earth in the longitude direction.public final LatLng toSpan()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |