|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.map.client.LatLngBounds
public class LatLngBounds
Represents an area bounded by minimum and maximum latitude and longitude values (a rectangle, in geographical coordinates). The area can cross the 180 degree meridian.
Constructor Summary | |
---|---|
LatLngBounds(LatLng point)
Creates a new LatLngBounds that represents an empty rectangle
centered at the specified point. |
|
LatLngBounds(LatLng southWest,
LatLng northEast)
Creates a new LatLngBounds that represents the rectangle bounded
by the specified south-west and north-east points. |
Method Summary | |
---|---|
boolean |
contains(LatLng point)
Returns whether this LatLngBounds contains the specified point. |
boolean |
contains(LatLngBounds bounds)
Returns whether this LatLngBounds contains the specified one. |
static LatLngBounds |
create(LatLng point1,
LatLng point2,
LatLng include)
Creates a new LatLngBounds that represents the rectangle bounded
by point1 and point2 and that contains the
include point (there two are possible rectangles bounded by
two points). |
boolean |
crosses180Meridian()
Returns whether this LatLngBounds crosses the 180 meridian. |
LatLng |
getCenter()
Returns the center point. |
LatLngBounds |
getExtended(LatLng point)
Returns a new LatLngBounds which extends the current one in the
minimal possible way to include the specified point too. |
double |
getLatitudalSpan()
Returns the latitudal span of this LatLngBounds . |
double |
getLongitudalSpan()
Returns the longitudal span of this LatLngBounds . |
LatLng |
getNorthEast()
Returns the north-eastern point. |
LatLng |
getSouthWest()
Returns the south-western point. |
boolean |
spansFullLatitude()
Returns whether this LatLngBounds spans the entire planet
latitudally. |
boolean |
spansFullLongitude()
Returns whether this LatLngBounds spans the entire planet
longitudally. |
String |
toString()
Returns a textual representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LatLngBounds(LatLng point)
LatLngBounds
that represents an empty rectangle
centered at the specified point.
public LatLngBounds(LatLng southWest, LatLng northEast)
LatLngBounds
that represents the rectangle bounded
by the specified south-west and north-east points. Note that the latitude
of southWest
may not be larger than that of
northEast
, but its longitue may be, in which case the
represented area will cross the 180 degree meridian.
Method Detail |
---|
public static LatLngBounds create(LatLng point1, LatLng point2, LatLng include)
LatLngBounds
that represents the rectangle bounded
by point1
and point2
and that contains the
include
point (there two are possible rectangles bounded by
two points).
public LatLng getSouthWest()
public LatLng getNorthEast()
public LatLng getCenter()
public boolean crosses180Meridian()
LatLngBounds
crosses the 180 meridian. This
occurs when the longitude of the south-west point is larger than that of
the north-east point.
public boolean spansFullLatitude()
LatLngBounds
spans the entire planet
latitudally.
public boolean spansFullLongitude()
LatLngBounds
spans the entire planet
longitudally.
public boolean contains(LatLng point)
LatLngBounds
contains the specified point.
public boolean contains(LatLngBounds bounds)
LatLngBounds
contains the specified one.
public double getLatitudalSpan()
LatLngBounds
.
public double getLongitudalSpan()
LatLngBounds
.
public LatLngBounds getExtended(LatLng point)
LatLngBounds
which extends the current one in the
minimal possible way to include the specified point too.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |