jjdh API

dh.java.math.graph
Class AbstractTreeNode<T extends TreeNode<T>>

java.lang.Object
  extended by dh.java.math.graph.AbstractTreeNode<T>
All Implemented Interfaces:
TreeNode<T>
Direct Known Subclasses:
ContainerScenegraphNode, LeafScenegraphNode, TreeTest.SimpleNode

public class AbstractTreeNode<T extends TreeNode<T>>
extends Object
implements TreeNode<T>


Field Summary
protected  List<T> childs
           
private  String name
           
 
Constructor Summary
AbstractTreeNode()
          Creates a new node.
 
Method Summary
 List<T> getChilds()
          Returns all child nodes of this node.
 String getName()
           
 boolean isLeaf()
          Indicates if this node is a leaf.
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

childs

protected List<T extends TreeNode<T>> childs

name

private String name
Constructor Detail

AbstractTreeNode

public AbstractTreeNode()
Creates a new node.

Method Detail

getChilds

public List<T> getChilds()
Description copied from interface: TreeNode
Returns all child nodes of this node.

Specified by:
getChilds in interface TreeNode<T extends TreeNode<T>>
Returns:
all child nodes of this node.

isLeaf

public boolean isLeaf()
Description copied from interface: TreeNode
Indicates if this node is a leaf.

Specified by:
isLeaf in interface TreeNode<T extends TreeNode<T>>
Returns:
if this node is a leaf

getName

public String getName()

setName

public void setName(String name)

toString

public String toString()
Overrides:
toString in class Object

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.