texsoft.java.debug
Interface DebugTreeNode


public interface DebugTreeNode

If a class implements this interface its instances can be drawn onto a DebugTreeNodePanel.

Useful for debugging as it's possible to get a visual rapresentation of a tree data structure.

See Also:
DebugTreeNodePanel

Method Summary
 DebugTreeNode getDebugNodeChild(int n)
          Return the n-th child of this node object.
 int getDebugNodeChildrenCount()
          Return the number of children of this node object.
 java.lang.String getDebugNodeText()
          Return a String describing the node condent.
 

Method Detail

getDebugNodeText

public java.lang.String getDebugNodeText()
Return a String describing the node condent. If the string contains \n characters, the text is drawn with corresponding carriage returns.

Returns:
A String describing the node.

getDebugNodeChild

public DebugTreeNode getDebugNodeChild(int n)
Return the n-th child of this node object. Can be null if the n-th node is not present.

Parameters:
n - index of the requested child. Must be a value between 0 and getDebugNodeChildrenCount()-1.
Returns:
The n-th child of this node object.

getDebugNodeChildrenCount

public int getDebugNodeChildrenCount()
Return the number of children of this node object. Child nodes can be get with getDebugNodeChild(int).

Returns:
The number of children of this node object.