com.vividsolutions.jts.index.strtree
public abstract class AbstractNode extends java.lang.Object implements Boundable
Constructor and Description |
---|
AbstractNode(int level)
Constructs an AbstractNode at the given level in the tree
|
Modifier and Type | Method and Description |
---|---|
void |
addChildBoundable(Boundable childBoundable)
Adds either an AbstractNode, or if this is a leaf node, a data object
(wrapped in an ItemBoundable)
|
protected abstract java.lang.Object |
computeBounds()
Returns a representation of space that encloses this Boundable,
preferably not much bigger than this Boundable's boundary yet fast to
test for intersection with the bounds of other Boundables.
|
java.lang.Object |
getBounds()
Returns a representation of space that encloses this Boundable, preferably
not much bigger than this Boundable's boundary yet fast to test for intersection
with the bounds of other Boundables.
|
java.util.List |
getChildBoundables()
Returns either child
AbstractNodes , or if this is a leaf node, real data (wrapped
in ItemBoundables ). |
int |
getLevel()
Returns 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the
root node will have the highest level
|
public AbstractNode(int level)
level
- 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the
root node will have the highest levelpublic java.util.List getChildBoundables()
AbstractNodes
, or if this is a leaf node, real data (wrapped
in ItemBoundables
).protected abstract java.lang.Object computeBounds()
AbstractSTRtree.IntersectsOp
public java.lang.Object getBounds()
Boundable
getBounds
in interface Boundable
AbstractSTRtree.IntersectsOp
public int getLevel()
public void addChildBoundable(Boundable childBoundable)