org.geotools.index.quadtree
Class Node

java.lang.Object
  extended byorg.geotools.index.quadtree.Node
Direct Known Subclasses:
FileSystemNode

public class Node
extends java.lang.Object

DOCUMENT ME!

Author:
Tommaso Nolli

Field Summary
protected  java.util.List subNodes
           
 
Constructor Summary
Node(com.vividsolutions.jts.geom.Envelope bounds)
           
 
Method Summary
 void addShapeId(int id)
          Add a shape id
 void addSubNode(Node node)
          DOCUMENT ME!
 void clearSubNodes()
           
 com.vividsolutions.jts.geom.Envelope getBounds()
          DOCUMENT ME!
 int getNumShapeIds()
          DOCUMENT ME!
 int getNumSubNodes()
          DOCUMENT ME!
 int getShapeId(int pos)
          Gets a shape id
 int[] getShapesId()
          DOCUMENT ME!
 Node getSubNode(int pos)
          Gets the Node at the requested position
 boolean removeSubNode(Node node)
          Removes a subnode
 void setBounds(com.vividsolutions.jts.geom.Envelope bounds)
          DOCUMENT ME!
 void setShapesId(int[] ids)
          Sets the shape ids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subNodes

protected java.util.List subNodes
Constructor Detail

Node

public Node(com.vividsolutions.jts.geom.Envelope bounds)
Method Detail

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()
DOCUMENT ME!

Returns:
Returns the bounds.

setBounds

public void setBounds(com.vividsolutions.jts.geom.Envelope bounds)
DOCUMENT ME!

Parameters:
bounds - The bounds to set.

getNumSubNodes

public int getNumSubNodes()
DOCUMENT ME!

Returns:
Returns the numSubNodes.

getNumShapeIds

public int getNumShapeIds()
DOCUMENT ME!

Returns:
Returns the number of records stored.

addSubNode

public void addSubNode(Node node)
DOCUMENT ME!

Parameters:
node -
Throws:
java.lang.NullPointerException - DOCUMENT ME!

removeSubNode

public boolean removeSubNode(Node node)
Removes a subnode

Parameters:
node - The subnode to remove
Returns:
true if the subnode has been removed

clearSubNodes

public void clearSubNodes()

getSubNode

public Node getSubNode(int pos)
                throws StoreException
Gets the Node at the requested position

Parameters:
pos - The position
Returns:
A Node
Throws:
StoreException - DOCUMENT ME!

addShapeId

public void addShapeId(int id)
Add a shape id

Parameters:
id -

getShapeId

public int getShapeId(int pos)
Gets a shape id

Parameters:
pos - The position
Returns:
The shape id (or recno) at the requested position
Throws:
java.lang.ArrayIndexOutOfBoundsException - DOCUMENT ME!

setShapesId

public void setShapesId(int[] ids)
Sets the shape ids

Parameters:
ids -

getShapesId

public int[] getShapesId()
DOCUMENT ME!

Returns:
Returns the shapesId.


Copyright © GeoTools. All Rights Reserved.