infovis.tree.visualization.nodelink
Class DendrogramTreeLayout

java.lang.Object
  extended by infovis.tree.visualization.NodeLinkTreeLayout
      extended by infovis.tree.visualization.nodelink.DendrogramTreeLayout
All Implemented Interfaces:
Layout, Orientable, SwingConstants

public class DendrogramTreeLayout
extends NodeLinkTreeLayout

Layout for Dendrograms.

May use a length column.

Version:
$Revision: 1.6 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
TreeLayoutFactory "Dendrogram"

Field Summary
 
Fields inherited from interface infovis.visualization.Orientable
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
DendrogramTreeLayout()
          Create a DendrogramTreeLayout.
 
Method Summary
 void computeShapes(Rectangle2D bounds, NodeLinkTreeVisualization vis)
          Performs the actual computation of the layout.
 String getName()
          Returns the name of the layout algorithm.
 Dimension getPreferredSize(Visualization vis)
          Computes and return the preferred size for this layout and this visualization.
 double nodeDepth(int node)
          Returns the depth of a specified node.
 
Methods inherited from class infovis.tree.visualization.NodeLinkTreeLayout
childrenIterator, computeShapes, findRectAt, getFirstChild, getLevelSeparation, getOrientation, getParent, getRectAt, getSiblingSeparation, getSubtreeSeparation, invalidate, isLeaf, iterator, setLevelSeparation, setOrientation, setRectSizeAt, setShapeAt, setSiblingSeparation, setSubtreeSeparation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DendrogramTreeLayout

public DendrogramTreeLayout()
Create a DendrogramTreeLayout.

Method Detail

nodeDepth

public double nodeDepth(int node)
Returns the depth of a specified node.

Parameters:
node - the node
Returns:
the depth of a specified node.

computeShapes

public void computeShapes(Rectangle2D bounds,
                          NodeLinkTreeVisualization vis)
Performs the actual computation of the layout.

Specified by:
computeShapes in class NodeLinkTreeLayout
Parameters:
bounds - the visualization bounds
vis - the visualization

getName

public String getName()
Returns the name of the layout algorithm.

Returns:
the name of the layout algorithm

getPreferredSize

public Dimension getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization.

Specified by:
getPreferredSize in interface Layout
Overrides:
getPreferredSize in class NodeLinkTreeLayout
Parameters:
vis - the visualization
Returns:
the preferred size for this layout and this visualization.


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.