Class Node
Object
Node
- Direct Known Subclasses:
FileSystemNode
- Author:
- Tommaso Nolli
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddShapeId(int id) Add a shape idvoidaddSubNode(Node node) voidclean()To be used only against in memory nodes, allows to start over on rebuilding this nodevoidvoidclose()Clears up whatever resources the node is hanging ontocopy()intintintgetShapeId(int pos) Gets a shape idint[]getSubNode(int pos) Gets the Node at the requested positionbooleanbooleanvoidpack()booleanremoveSubNode(Node node) Removes a subnodevoidvoidsetChildrenVisited(boolean childrenVisited) voidsetShapesId(int[] ids) Sets the shape idsvoidsetShapesId(Node other) voidsetVisited(boolean visited)
-
Field Details
-
numShapesId
protected int numShapesId -
shapesId
protected int[] shapesId -
subNodes
-
-
Constructor Details
-
Node
-
-
Method Details
-
getBounds
- Returns:
- Returns the bounds.
-
setBounds
- Parameters:
bounds- The bounds to set.
-
getNumSubNodes
public int getNumSubNodes()- Returns:
- Returns the numSubNodes.
-
getNumShapeIds
public int getNumShapeIds()- Returns:
- Returns the number of records stored.
-
addSubNode
- Parameters:
node-
-
removeSubNode
Removes a subnode- Parameters:
node- The subnode to remove- Returns:
- true if the subnode has been removed
-
clearSubNodes
public void clearSubNodes() -
getSubNode
Gets the Node at the requested position- Parameters:
pos- The position- Returns:
- A Node
- Throws:
StoreException
-
addShapeId
public void addShapeId(int id) Add a shape 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
-
setShapesId
public void setShapesId(int[] ids) Sets the shape ids -
setShapesId
-
getShapesId
public int[] getShapesId()- Returns:
- Returns the shapesId.
-
isVisited
public boolean isVisited() -
setVisited
public void setVisited(boolean visited) -
isChildrenVisited
public boolean isChildrenVisited() -
setChildrenVisited
public void setChildrenVisited(boolean childrenVisited) -
copy
- Throws:
IOException
-
close
public void close()Clears up whatever resources the node is hanging onto -
clean
public void clean()To be used only against in memory nodes, allows to start over on rebuilding this node -
pack
public void pack()
-