public class Bounds extends Object implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Bounds> |
CREATOR |
| Constructor and Description |
|---|
Bounds(Coordinate[] coordinates)
Creates a rectangular Bound given the the geographic coordinate of the 4 corners.
|
Bounds(Coordinate southWest,
Coordinate northEast,
Coordinate northWest,
Coordinate southEast)
Creates a rectangular Bound given the the geographic coordinate of the 4 corners.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
Coordinate |
getNorthEast()
Returns the coordinate of the north-east corner of the bound.
|
Coordinate |
getNorthWest()
Returns the coordinate of the north-west corner of the bound.
|
Coordinate |
getSouthEast()
Returns the coordinate of the south-east corner of the bound.
|
Coordinate |
getSouthWest()
Returns the coordinate of the south-east corner of the bound.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Bounds> CREATOR
public Bounds(Coordinate southWest, Coordinate northEast, Coordinate northWest, Coordinate southEast)
southWest - e.g (0,0)northEast - e.g (w,h)northWest - e.g (0,h)southEast - e.g (w,0)IllegalArgumentException - if some parameter is nullpublic Bounds(Coordinate[] coordinates)
coordinates - array with 4 non-null the geographic coordinate, ordered {southWest, northEast, northWest, southEast}.e.g {(0,0), (w,h), (0,h), (w,0)}
public Coordinate getNorthWest()
Coordinatepublic Coordinate getNorthEast()
Coordinatepublic Coordinate getSouthEast()
Coordinatepublic Coordinate getSouthWest()
Coordinatepublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable