com.jgraph.layout.tree
Class OrganizationalChart.OrganizationalTreeNode
java.lang.Object
com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
com.jgraph.layout.tree.JGraphTreeLayout.StandardTreeNode
com.jgraph.layout.tree.OrganizationalChart.OrganizationalTreeNode
- Enclosing class:
- OrganizationalChart
protected class OrganizationalChart.OrganizationalTreeNode
- extends JGraphTreeLayout.StandardTreeNode
An ADT representing a node in an organisational chart structure.
Field Summary |
protected boolean |
verticalStyleChildren
Whether or not children of this node this have vertical children |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verticalStyleChildren
protected boolean verticalStyleChildren
- Whether or not children of this node this have vertical children
OrganizationalChart.OrganizationalTreeNode
public OrganizationalChart.OrganizationalTreeNode(java.lang.Object cell)
addChild
public void addChild(JGraphTreeLayout.StandardTreeNode newChild)
- Adds a new child to this parent node
- Overrides:
addChild
in class JGraphTreeLayout.StandardTreeNode
- Parameters:
newChild
- the child to be added
isVerticalStyleChildren
public boolean isVerticalStyleChildren()
- Returns:
- the verticalStyleChildren
setVerticalStyleChildren
public void setVerticalStyleChildren(boolean verticalStyleChildren)
- Parameters:
verticalStyleChildren
- the verticalStyleChildren to set
setDepth
public void setDepth(int depth)
- Overrides:
setDepth
in class JGraphTreeLayout.StandardTreeNode
- Parameters:
depth
- the depth to set
setPosition
public void setPosition(java.awt.geom.Point2D parent,
double levelHeight)
- Sets the position of this node
- Overrides:
setPosition
in class JGraphTreeLayout.StandardTreeNode
- Parameters:
parent
- the parent of this nodelevelHeight
- the height of nodes on the same level
positionVerticalChildren
protected void positionVerticalChildren(java.awt.geom.Point2D parent)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.