/** * @return the height of this node */ public double getHeight() { if (children.isEmpty()) { return levelheight; } double height = 0; for (Iterator it = children.iterator(); it.hasNext();) { height = Math.max(height, ((StandardTreeNode) it.next()).getHeight()); } return height + levelDistance + levelheight; }