Treeviz 0.37 2010-10-17

ch.randelshofer.tree.hypertree
Class HyperTree

java.lang.Object
  extended by ch.randelshofer.tree.hypertree.HyperTree

public class HyperTree
extends java.lang.Object

The HyperTree class implements an hyperbolic tree representation for data.

An HyperTree is build from hierarchical data, given as a tree of TreeNode. So, the first parameter to give to build an HyperTree is the TreeNode which is the root of the to-be-represented tree. The tree to be displayed by the HyperTree should be build before the call to HyperTree, that is the root node should return children when the children() method is called.

You can get a HTView (herited from JView) containing the HyperTree by calling getView().

Version:
1.0
Author:
Christophe Bouthier [bouthier@loria.fr]

Constructor Summary
HyperTree(TreeNode root, NodeInfo info)
          Constructor.
 
Method Summary
 NodeInfo getInfo()
           
 SwingHTView getView()
          Returns a view of the hypertree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperTree

public HyperTree(TreeNode root,
                 NodeInfo info)
Constructor.

Parameters:
root - the root of the tree to be represented; could not be null
Method Detail

getView

public SwingHTView getView()
Returns a view of the hypertree.

Returns:
the desired view of the hypertree

getInfo

public NodeInfo getInfo()

Copyright 2007-2008 (c) Werner Randelshofer.
All rights reserved.