java.io.Serializable
, Boundable
public abstract class AbstractNode extends java.lang.Object implements Boundable, java.io.Serializable
AbstractSTRtree
. A node is one of:
AbstractNode
s
ItemBoundable
s).
Constructor | Description |
---|---|
AbstractNode() |
Default constructor required for serialization.
|
AbstractNode(int level) |
Constructs an AbstractNode at the given level in the tree
|
Modifier and Type | Method | Description |
---|---|---|
void |
addChildBoundable(Boundable childBoundable) |
Adds either an AbstractNode, or if this is a leaf node, a data object
(wrapped in an ItemBoundable)
|
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. |
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 levelpublic java.util.List getChildBoundables()
AbstractNode
s, or if this is a leaf node, real data (wrapped
in ItemBoundable
s).public java.lang.Object getBounds()
public int getLevel()
public int size()
Boundable
s at this node.public boolean isEmpty()
Boundable
s at this node.public void addChildBoundable(Boundable childBoundable)
Copyright © 2018. All rights reserved.