public final class LatLngBounds
extends java.lang.Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
LatLngBounds.Builder
经纬度坐标矩形区域的生成器。
|
| 构造器和说明 |
|---|
LatLngBounds(LatLng southwest,
LatLng northeast)
使用传入的西南角坐标和东北角坐标创建一个矩形区域。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static LatLngBounds.Builder |
builder() |
boolean |
contains(LatLng point)
判断矩形区域是否包含传入的经纬度点。
|
boolean |
contains(LatLngBounds curBounds) |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
LatLngBounds |
including(LatLng point)
返回一个新的矩形区域。
|
boolean |
intersects(LatLngBounds lnglatsBounds) |
java.lang.String |
toString()
返回矩形区域东北和西南的坐标字符串
|
void |
writeToParcel(Parcel out,
int flags) |
public LatLngBounds(LatLng southwest, LatLng northeast) throws AMapException
southwest - 西南角坐标。northeast - 东北角坐标。java.lang.IllegalArgumentException - 如果东北角的纬度小于西南角的纬度,抛出此异常。AMapExceptionpublic static LatLngBounds.Builder builder()
public boolean contains(LatLng point)
point - 经纬度点。public boolean contains(LatLngBounds curBounds)
public boolean intersects(LatLngBounds lnglatsBounds)
public LatLngBounds including(LatLng point)
point - 扩展点的经纬度对象。public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic int describeContents()
public void writeToParcel(Parcel out,
int flags)