|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoodsjpi.Persistent
goodslib.Rtree
Field Summary |
Fields inherited from class goodsjpi.Persistent |
defaultMetaobject, metaobject |
Method Summary | |
void |
clear()
Remove all objects from the index |
SpatialObject[] |
get(Rectangle r)
Find all objects located in the selected rectangle |
java.util.ArrayList |
getList(Rectangle r)
Find all objects located in the selected rectangle |
Rectangle |
getWrappingRectangle()
Get wrapping rectangle |
java.util.Iterator |
iterator()
Get iterator through all members of the index |
java.util.Iterator |
iterator(Rectangle r)
Get objects which rectangle intersects with specified rectangle |
void |
put(SpatialObject obj)
Put new spatial object in the index. |
boolean |
remove(SpatialObject obj)
Remove spatial object from the tree. |
int |
size()
Get number of objects in the index |
SpatialObject[] |
toArray()
Get array of all members of the index |
SpatialObject[] |
toArray(SpatialObject[] arr)
Get all objects in the index. |
Methods inherited from class goodsjpi.Persistent |
attachToStorage, clone, clusterWith, finalize, getDatabase, getOid, getStorageId, hashCode, onLoad |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void put(SpatialObject obj)
obj
- spatial object with specified bounded rectanglepublic int size()
public boolean remove(SpatialObject obj)
obj
- spatial object with specified bounded rectangle
true
if object was sucessfully deleted, false
oif
object not found in treepublic SpatialObject[] get(Rectangle r)
r
- selected rectangle
public java.util.ArrayList getList(Rectangle r)
r
- selected rectangle
public SpatialObject[] toArray()
public SpatialObject[] toArray(SpatialObject[] arr)
If this index fits in the specified array with room to spare (i.e., the array has more elements than this index), the element in the array immediately following the end of the index is set to null. This is useful in determining the length of this index only if the caller knows that this index does not contain any null elements.)
arr
- specified array
public Rectangle getWrappingRectangle()
null
if index is emptypublic void clear()
public java.util.Iterator iterator()
public java.util.Iterator iterator(Rectangle r)
r
- selected rectangle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |