| Modifier and Type | Field and Description |
|---|---|
protected List |
items
|
protected Node |
subnode
subnodes are numbered as follows: 0 | 1
|
| Constructor and Description |
|---|
NodeBase()
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object
|
List |
addAllItems(List
|
void |
addAllItemsFromOverlapping(Interval
Adds items in the tree which potentially overlap the query interval to the given collection.
|
List |
getItems()
|
static int |
getSubnodeIndex(Interval
Returns the index of the subnode that wholely contains the given interval.
|
boolean |
hasChildren()
|
boolean |
hasItems()
|
boolean |
isPrunable()
|
protected abstract boolean |
isSearchMatch(Interval
|
boolean |
remove(Interval
Removes a single item from this subtree.
|
protected Listitems
protected Node[] subnode
public static int getSubnodeIndex(Intervalinterval, double centre)
public ListgetItems()
public void add(Objectitem)
protected abstract boolean isSearchMatch(Intervalinterval)
public void addAllItemsFromOverlapping(Intervalinterval, Collection resultItems)
interval - a query nterval, or null
resultItems - the candidate items found
public boolean remove(IntervalitemInterval, Object item)
itemInterval - the envelope containing the item
item - the item to remove
true if the item was found and removed
public boolean isPrunable()
public boolean hasChildren()
public boolean hasItems()