org.omegahat.DataStructures.Trees
Interface Tree

All Known Subinterfaces:
GraphicalContainerInt
All Known Implementing Classes:
BasicTree

public interface Tree

Basic methods for organizing objects in a simple tree structure


Method Summary
 boolean add(java.lang.Object child)
          Add an entry to the list of children.
 java.lang.Object get(int which)
          Get the ith child.
 int getChildCount()
          Get the number of children currently contained in this node.
 java.util.List getChildren()
          Return the entire collection of children.
 java.lang.Object remove(int which)
          Remove the ith child from the list of children.
 

Method Detail

add

public boolean add(java.lang.Object child)
Add an entry to the list of children.

getChildCount

public int getChildCount()
Get the number of children currently contained in this node.

get

public java.lang.Object get(int which)
Get the ith child.

remove

public java.lang.Object remove(int which)
Remove the ith child from the list of children.

getChildren

public java.util.List getChildren()
Return the entire collection of children.