|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DataOrganizer lets you organize objects in a way that will let you retrieve them based on a geographic query. It's an interface that lets you decide, with an implementation, the best way to manage and retrieve your data.
Method Summary | |
void |
clear()
Clear the organizer. |
java.lang.Object |
get(float lat,
float lon)
Find an object closest to a lat/lon. |
java.lang.Object |
get(float lat,
float lon,
double withinDistance)
Find an object closest to a lat/lon, within a given maximum. |
java.util.Vector |
get(float north,
float west,
float south,
float east)
Find all the objects within a bounding box. |
boolean |
put(float lat,
float lon,
java.lang.Object obj)
Add a object into the organizer at a location. |
java.lang.Object |
remove(float lat,
float lon,
java.lang.Object obj)
Remove a object out of the organizer at a location. |
Method Detail |
public boolean put(float lat, float lon, java.lang.Object obj)
lat
- up-down location (latitude, y)lon
- left-right location (longitude, x)
public java.lang.Object remove(float lat, float lon, java.lang.Object obj)
lat
- up-down location (latitude, y)lon
- left-right location (longitude, x)
public void clear()
public java.lang.Object get(float lat, float lon)
lat
- up-down location in QuadTree Grid (latitude, y)lon
- left-right location in QuadTree Grid (longitude, x)
public java.lang.Object get(float lat, float lon, double withinDistance)
lat
- up-down location in QuadTree Grid (latitude, y)lon
- left-right location in QuadTree Grid (longitude, x)withinDistance
- maximum distance to have a hit.
public java.util.Vector get(float north, float west, float south, float east)
north
- top location in QuadTree Grid (latitude, y)west
- left location in QuadTree Grid (longitude, x)south
- lower location in QuadTree Grid (latitude, y)east
- right location in QuadTree Grid (longitude, x)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |