public class ObjectQTree
extends java.lang.Object
Constructor and Description |
---|
ObjectQTree(java.awt.geom.Rectangle2D box)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object newObj,
java.awt.geom.Rectangle2D rect)
Method to insert new element into qTree
|
java.util.Set |
find(java.awt.geom.Rectangle2D searchB)
Method to find set of elements overlaping the search box.
|
void |
print()
Method to print the qTree elements
|
public ObjectQTree(java.awt.geom.Rectangle2D box)
box
- represents the bounding box of the root leafpublic boolean add(java.lang.Object newObj, java.awt.geom.Rectangle2D rect)
newObj
- rect
- public void print()
public java.util.Set find(java.awt.geom.Rectangle2D searchB)
searchB
-