All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.treevisualizer.PlaceNode2

java.lang.Object
    |
    +----weka.gui.treevisualizer.PlaceNode2

public class PlaceNode2
extends java.lang.Object
implements NodePlace
This class will place the Nodes of a tree.

It will place these nodes so that they fall at evenly below their parent. It will then go through and look for places where nodes fall on the wrong side of other nodes when it finds one it will trace back up the tree to find the first common sibling group these two nodes have And it will adjust the spacing between these two siblings so that the two nodes no longer overlap. This is nasty to calculate with , and takes a while with the current algorithm I am using to do this.

Version:
$Revision: 1.3 $
Author:
Malcolm Ware (mfw4@cs.waikato.ac.nz)

Constructor Index

 o PlaceNode2()
 

Method Index

 o place(Node)
The Funtion to call to have the nodes arranged.

Constructor Detail

 o PlaceNode2
public PlaceNode2()

Method Detail

 o place
public void place(Node r)
          The Funtion to call to have the nodes arranged.
Parameters:
r - The top node of the tree to arrange.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home