cz.cuni.jagrlib.iface
Interface QuadTree.Inspector

Enclosing interface:
QuadTree

public static interface QuadTree.Inspector

Quad-tree inspector object.

Since:
0.04
See Also:
QuadTree.java

Method Summary
 void down()
          Descends to the next deepest level of the tree (does nothing for leaf nodes).
 java.lang.Object getData()
          Retrieves the current node's data.
 QuadTree.Node getNode()
          Returns the current QuadTree.Node.
 void init()
          (Re-)initialization of a Quad-tree pass.
 boolean isInner()
          Is the current node inner?
 void makeLeafNode()
          Discards all descendants of the current node.
 void next()
          Advances in the same level (horizontally).
 java.lang.Object setData(java.lang.Object data)
          Assigns the current node's data.
 void up()
          Ascends to the previous level of the tree (does nothing for the root).
 

Method Detail

init

void init()
(Re-)initialization of a Quad-tree pass.


isInner

boolean isInner()
Is the current node inner?

Returns:
true if the current node is inner (non-leaf node).

getData

java.lang.Object getData()
Retrieves the current node's data.

Returns:
The current node's data (can be null).

setData

java.lang.Object setData(java.lang.Object data)
Assigns the current node's data.

Parameters:
data - The new data for the current node (can be null).
Returns:
The old node's data.

getNode

QuadTree.Node getNode()
Returns the current QuadTree.Node.

Returns:
The current node.

next

void next()
Advances in the same level (horizontally).


down

void down()
Descends to the next deepest level of the tree (does nothing for leaf nodes).


up

void up()
Ascends to the previous level of the tree (does nothing for the root).


makeLeafNode

void makeLeafNode()
Discards all descendants of the current node.