|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jdesktop.swingx.mapviewer.GeoBounds
public class GeoBounds extends Object
The GeoBounds class provides access the the North East and
South West corners of the bounds and provides an intersects method.
| Field Summary | |
|---|---|
private Rectangle2D[] |
rects
Internal representation of the bounds |
| Constructor Summary | |
GeoBounds(double minLat, double minLng, double maxLat, double maxLng)
Constructor. |
|
GeoBounds(Set geoPositions)
Constructor. |
|
| Method Summary | |
|---|---|
GeoPosition
|
getNorthWest()
Gets the north west position. |
GeoPosition
|
getSouthEast()
Gets the south east position. |
boolean
|
intersects(GeoBounds other)
Determines if this bounds intersects the other bounds. |
private void
|
setRect(double minLat, double minLng, double maxLat, double maxLng)
Sets the internal rectangle representation. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private Rectangle2D[] rects
| Constructor Detail |
|---|
public GeoBounds(double minLat, double minLng, double maxLat, double maxLng)
minLat
- The minimum latitude.minLng
- The minimum longitude.maxLat
- The maximum latitude.maxLng
- The maximum longitude.
public GeoBounds(Set geoPositions)
geoPositions
- A non null list of 2 or more different GeoBounds
objects.
| Method Detail |
|---|
public GeoPosition getNorthWest()
public GeoPosition getSouthEast()
public boolean intersects(GeoBounds other)
other
- The other bounds to test for intersection with.
private void setRect(double minLat, double minLng, double maxLat, double maxLng)
minLat
- The minimum latitude.minLng
- The minimum longitude.maxLat
- The maximum latitude.maxLng
- The maximum longitude.
Groovy Documentation