Class Node
Object
Node
- Direct Known Subclasses:
FileSystemNode
- Author:
- Tommaso Nolli
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addShapeId
(int id) Add a shape idvoid
addSubNode
(Node node) void
clean()
To be used only against in memory nodes, allows to start over on rebuilding this nodevoid
void
close()
Clears up whatever resources the node is hanging ontocopy()
int
int
int
getShapeId
(int pos) Gets a shape idint[]
getSubNode
(int pos) Gets the Node at the requested positionboolean
boolean
void
pack()
boolean
removeSubNode
(Node node) Removes a subnodevoid
void
setChildrenVisited
(boolean childrenVisited) void
setShapesId
(int[] ids) Sets the shape idsvoid
setShapesId
(Node other) void
setVisited
(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()
-