Class Node
- java.lang.Object
-
- org.locationtech.jts.index.quadtree.NodeBase
-
- org.locationtech.jts.index.quadtree.Node
-
- All Implemented Interfaces:
Serializable
public class Node extends NodeBase
Represents a node of aQuadtree. Nodes contain items which have a spatial extent corresponding to the node's position in the quadtree.- Version:
- 1.7
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodecreateExpanded(Node node, Envelope addEnv)static NodecreateNode(Envelope env)NodeBasefind(Envelope searchEnv)Returns the smallest existing node containing the envelope.EnvelopegetEnvelope()NodegetNode(Envelope searchEnv)Returns the subquad containing the envelope searchEnv.protected booleanisSearchMatch(Envelope searchEnv)-
Methods inherited from class org.locationtech.jts.index.quadtree.NodeBase
add, addAllItems, addAllItemsFromOverlapping, getItems, getSubnodeIndex, hasChildren, hasItems, isEmpty, isPrunable, remove, visit
-
-
-
-
Constructor Detail
-
Node
public Node(Envelope env, int level)
-
-
Method Detail
-
getEnvelope
public Envelope getEnvelope()
-
isSearchMatch
protected boolean isSearchMatch(Envelope searchEnv)
- Specified by:
isSearchMatchin classNodeBase
-
getNode
public Node getNode(Envelope searchEnv)
Returns the subquad containing the envelope searchEnv. Creates the subquad if it does not already exist.- Returns:
- the subquad containing the search envelope
-
-