|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.imgfmt.app.Area
public class Area
A map area in map units. There is a constructor available for creating in lat/long form.
Constructor Summary | |
---|---|
Area(double minLat,
double minLong,
double maxLat,
double maxLong)
|
|
Area(int minLat,
int minLong,
int maxLat,
int maxLong)
Create an area from the given coordinates. |
Method Summary | |
---|---|
boolean |
allInsideBoundary(java.util.List<Coord> coords)
|
boolean |
contains(Coord co)
|
boolean |
equals(java.lang.Object o)
|
Coord |
getCenter()
|
int |
getHeight()
|
int |
getMaxDimention()
Get the largest dimension. |
int |
getMaxLat()
|
int |
getMaxLong()
|
int |
getMinLat()
|
int |
getMinLong()
|
int |
getWidth()
|
int |
hashCode()
|
boolean |
insideBoundary(Coord co)
|
boolean |
intersects(Area bbox)
Checks if this area intersects the given bounding box at least in one point. |
boolean |
isEmpty()
|
boolean |
onBoundary(Coord co)
|
Area[] |
split(int xsplit,
int ysplit)
Split this area up into a number of smaller areas. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Area(int minLat, int minLong, int maxLat, int maxLong)
minLat
- The western latitude.minLong
- The southern longitude.maxLat
- The eastern lat.maxLong
- The northern long.public Area(double minLat, double minLong, double maxLat, double maxLong)
Method Detail |
---|
public int getMinLat()
public int getMinLong()
public int getMaxLat()
public int getMaxLong()
public int getWidth()
public int getHeight()
public Coord getCenter()
public java.lang.String toString()
toString
in class java.lang.Object
public Area[] split(int xsplit, int ysplit)
xsplit
- The number of pieces to split this area into in the x
direction.ysplit
- The number of pieces to split this area into in the y
direction.
public int getMaxDimention()
public final boolean contains(Coord co)
public final boolean insideBoundary(Coord co)
public final boolean onBoundary(Coord co)
public final boolean intersects(Area bbox)
bbox
- an area
true
if this area intersects the bbox;
false
elsepublic boolean isEmpty()
public boolean allInsideBoundary(java.util.List<Coord> coords)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |