It will place these nodes so that they symetrically fill each row. This is simple to calculate but is not visually nice for most trees.
@author Malcolm F Ware (mfw4@cs.waikato.ac.nz) @version $Revision: 1.4 $
622623624625626627628629630631632
//from training m_top = new TreeClass(null, 0, 0, m_nextId, 1, te, null); m_focus = m_top; //System.out.println(graph()); m_tView = new TreeVisualizer(this, graph(), new PlaceNode1()); m_reps.add("Tree Visualizer", m_tView); //tree_frame = new JFrame(); //tree_frame.getContentPane().add(m_tView); //tree_frame.setSize(800,600);
619620621622623624625626627628629