public class Node extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
numShapesId |
protected int[] |
shapesId |
protected List |
subNodes |
| Constructor and Description |
|---|
Node(Envelope bounds) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShapeId(int id)
Add a shape id
|
void |
addSubNode(Node node)
DOCUMENT ME!
|
void |
clean()
To be used only against in memory nodes, allows to start over on rebuilding this node
|
void |
clearSubNodes() |
void |
close()
Clears up whatever resources the node is hanging onto
|
Node |
copy() |
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 |
isChildrenVisited() |
boolean |
isVisited() |
void |
pack() |
boolean |
removeSubNode(Node node)
Removes a subnode
|
void |
setBounds(Envelope bounds)
DOCUMENT ME!
|
void |
setChildrenVisited(boolean childrenVisited) |
void |
setShapesId(int[] ids)
Sets the shape ids
|
void |
setShapesId(Node other) |
void |
setVisited(boolean visited) |
protected int numShapesId
protected int[] shapesId
protected List subNodes
public Envelope getBounds()
public void setBounds(Envelope bounds)
bounds - The bounds to set.public int getNumSubNodes()
public int getNumShapeIds()
public void addSubNode(Node node)
node - NullPointerException - DOCUMENT ME!public boolean removeSubNode(Node node)
node - The subnode to removepublic void clearSubNodes()
public Node getSubNode(int pos) throws StoreException
pos - The positionStoreException - DOCUMENT ME!public void addShapeId(int id)
id - public int getShapeId(int pos)
pos - The positionArrayIndexOutOfBoundsException - DOCUMENT ME!public void setShapesId(int[] ids)
ids - public void setShapesId(Node other)
public int[] getShapesId()
public boolean isVisited()
public void setVisited(boolean visited)
public boolean isChildrenVisited()
public void setChildrenVisited(boolean childrenVisited)
public Node copy() throws IOException
IOExceptionpublic void close()
public void clean()
public void pack()
Copyright © 1996–2019 Geotools. All rights reserved.