public DStack(TreeNode head, DataPoolManager dpm) { super(dpm); _count = TreeUtils.getChildIntegerData(head, Tags.count_tag).intValue(); _thread_state = TreeUtils.getChildIntegerData(head, Tags.count_tag).intValue(); Vector frames = TreeUtils.findAllTags(head, Tags.frame_tag); _frames = new Vector(); for (int i = 0; i < frames.size(); i++) { TreeNode t = (TreeNode) frames.elementAt(i); _frames.addElement(new DFrame(t, dpm)); } }
protected BaseTreeTableModel(TreeInfoContext ct, String[] ccol, String[] cn) { super(null, false); context = ct; setColIndex(ccol); setColCaption(cn); DataSetTreeNode dstn = TreeUtils.createRootNode(ct.getCaption()); setRoot(dstn); CreateData(); }
protected void writeTimeTreeFile(PrintStream ps) throws IOException { FlexibleTree tree = new FlexibleTree(treesPanel.getTreeAsViewed()); Regression r = treesPanel.getTemporalRooting().getRootToTipRegression(treesPanel.getTreeAsViewed()); for (int i = 0; i < tree.getInternalNodeCount(); i++) { NodeRef node = tree.getInternalNode(i); double height = tree.getNodeHeight(node); tree.setNodeHeight(node, height / r.getGradient()); } TreeUtils.setHeightsFromDates(tree); NexusExporter nexusExporter = new NexusExporter(new PrintStream(ps)); nexusExporter.exportTree(tree); }