public abstract class AbstractNode<T> extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNode() |
|
AbstractNode(int level,
double... bounds) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(QuadTree<T> tree,
double[] bounds,
T item) |
void |
clear() |
AbstractNode<T> |
createExpanded(AbstractNode<T> node,
double[] bounds) |
protected AbstractNode<T> |
createNode(double[] bounds) |
protected abstract AbstractNode<T> |
createNode(int level,
double... newBounds) |
int |
depth() |
protected abstract void |
doAdd(QuadTree<T> tree,
double[] bounds,
T item) |
protected abstract void |
doRemove(int index) |
AbstractNode<T> |
find(double[] bounds) |
protected abstract double[] |
getBounds(QuadTree<T> tree,
int i) |
protected abstract T |
getItem(QuadTree<T> tree,
int i) |
abstract int |
getItemCount() |
AbstractNode<T> |
getNode(double[] bounds) |
protected AbstractNode<T> |
getNode(int i) |
protected int |
getNodeCount() |
boolean |
hasChildren() |
boolean |
hasItems() |
protected void |
insertRoot(QuadTree<T> tree,
double[] bounds,
T item) |
boolean |
isEmpty() |
boolean |
isPrunable() |
boolean |
isRoot() |
protected boolean |
isSearchMatch(double[] bounds) |
boolean |
remove(QuadTree<T> tree,
double[] bounds,
T item) |
protected void |
setNode(int i,
AbstractNode<T> node) |
protected int |
size() |
String |
toString() |
boolean |
visit(QuadTree<T> tree,
double[] bounds,
Visitor<T> visitor) |
boolean |
visit(QuadTree<T> tree,
Visitor<T> visitor) |
protected AbstractNode()
public AbstractNode(int level,
double... bounds)
public void clear()
public AbstractNode<T> createExpanded(AbstractNode<T> node, double[] bounds)
protected AbstractNode<T> createNode(double[] bounds)
protected abstract AbstractNode<T> createNode(int level, double... newBounds)
public int depth()
protected abstract void doRemove(int index)
public AbstractNode<T> find(double[] bounds)
public abstract int getItemCount()
public AbstractNode<T> getNode(double[] bounds)
protected AbstractNode<T> getNode(int i)
protected int getNodeCount()
public boolean hasChildren()
public boolean hasItems()
public boolean isEmpty()
public boolean isPrunable()
public boolean isRoot()
protected boolean isSearchMatch(double[] bounds)
protected void setNode(int i,
AbstractNode<T> node)
protected int size()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.