/** * Lays out the central tree circle * * @param graph * the description of the graph to be laid out * @param node * the root of the tree */ private void layoutTree0(JGraphFacade graph, TreeNode node) { node.angle = 0; node.x = rootx; node.y = rooty; node.rightBisector = 0; node.rightTangent = 0; node.leftBisector = TWO_PI; node.leftTangent = TWO_PI; List parent = new ArrayList(1); parent.add(node); layoutTreeN(graph, 1, parent); }
layoutTreeN(graph, level + 1, parentNodes);