Treeviz 0.37 2010-10-17

ch.randelshofer.tree.hypertree
Class HTDraw

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

public class HTDraw
extends java.lang.Object

The HTDraw class implements the drawing model for the HTView.


Field Summary
 boolean isAnimationEnabled
          Animation only makes sense for small trees.
 
Method Summary
protected  ch.randelshofer.tree.hypertree.HTDrawNode findDrawNode(TreeNode htNode)
          Finds a HTDrawNode for a given TreeNode.
 boolean isAdjusting()
           
 boolean isAnimating()
           
protected  void mapNode(TreeNode htNode, ch.randelshofer.tree.hypertree.HTDrawNode drawNode)
          Maps a ch.randelshofer.tree.DataNode to a HTDrawNode.
 void repaint()
           
 void setAdjusting(boolean newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isAnimationEnabled

public boolean isAnimationEnabled
Animation only makes sense for small trees.

Method Detail

repaint

public void repaint()

setAdjusting

public void setAdjusting(boolean newValue)

isAdjusting

public boolean isAdjusting()

isAnimating

public boolean isAnimating()

mapNode

protected void mapNode(TreeNode htNode,
                       ch.randelshofer.tree.hypertree.HTDrawNode drawNode)
Maps a ch.randelshofer.tree.DataNode to a HTDrawNode. Used for backwards finding a HTDrawNode instance for a given DataNode.

Parameters:
htNode - the DataNode.
drawNode - the HTDrawNode for the given DataNode.

findDrawNode

protected ch.randelshofer.tree.hypertree.HTDrawNode findDrawNode(TreeNode htNode)
Finds a HTDrawNode for a given TreeNode.

Parameters:
htNode - the DataNode for which we want to find the HTDrawNode.
Returns:
the HTDrawNode for the given DataNode.

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