|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.index.strtree.AbstractNode
public abstract class AbstractNode
A node of an AbstractSTRtree
. A node is one of:
AbstractNode
s
ItemBoundable
s).
Constructor Summary | |
---|---|
AbstractNode()
Default constructor required for serialization. |
|
AbstractNode(int level)
Constructs an AbstractNode at the given level in the tree |
Method Summary | |
---|---|
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()
Gets the bounds of this node |
java.util.List |
getChildBoundables()
Returns either child AbstractNode s, or if this is a leaf node, real data (wrapped
in ItemBoundable s). |
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 |
boolean |
isEmpty()
Tests whether there are any Boundable s at this node. |
int |
size()
Gets the count of the Boundable s at this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractNode()
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 levelMethod Detail |
---|
public java.util.List getChildBoundables()
AbstractNode
s, or if this is a leaf node, real data (wrapped
in ItemBoundable
s).
protected abstract java.lang.Object computeBounds()
AbstractSTRtree.IntersectsOp
public java.lang.Object getBounds()
getBounds
in interface Boundable
public int getLevel()
public int size()
Boundable
s at this node.
public boolean isEmpty()
Boundable
s at this node.
public void addChildBoundable(Boundable childBoundable)
|
JTS Topology Suite version 1.13 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |