|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectNode
public class Node
DOCUMENT ME!
Field Summary | |
---|---|
protected int |
numShapesId
|
protected int[] |
shapesId
|
protected List |
subNodes
|
Constructor Summary | |
---|---|
Node(Envelope bounds)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numShapesId
protected int[] shapesId
protected List subNodes
Constructor Detail |
---|
public Node(Envelope bounds)
Method Detail |
---|
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 remove
public void clearSubNodes()
public Node getSubNode(int pos) throws StoreException
pos
- The position
StoreException
- DOCUMENT ME!public void addShapeId(int id)
id
- public int getShapeId(int pos)
pos
- The position
ArrayIndexOutOfBoundsException
- 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
IOException
public void close()
public void clean()
public void pack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |