/** * Sets the position of the tree nodes specified * * @param roots * the tree node whose position is to be set */ protected void setPosition(List roots) { for (Iterator it = roots.iterator(); it.hasNext();) { ((StandardTreeNode) it.next()).setPosition(null, 0); } }
((StandardTreeNode) it.next()).setPosition(parent, nextLevelHeight); ((StandardTreeNode) it.next()).setPosition(new Point2D.Double(x + parent.getX(), y), nextLevelHeight);
} else { for (Iterator it = children.iterator(); it.hasNext();) { ((StandardTreeNode) it.next()).setPosition(parent, nextLevelHeight); } else { for (Iterator it = children.iterator(); it.hasNext();) { ((StandardTreeNode) it.next()).setPosition( new Point2D.Double(x + parent.getX(), y), nextLevelHeight);
spaceMultipleTrees(root); root.setPosition(null, 0);