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
FieldsModifier and TypeFieldDescriptionprotected booleanWhether or not children of this node this have vertical childrenFields inherited from class JGraphTreeLayout.StandardTreeNode
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(JGraphTreeLayout.StandardTreeNode newChild) Adds a new child to this parent nodebooleanprotected voidpositionVerticalChildren(Point2D parent) voidsetDepth(int depth) voidsetPosition(Point2D parent, double levelHeight) Sets the position of this nodevoidsetVerticalStyleChildren(boolean verticalStyleChildren) Methods inherited from class JGraphTreeLayout.StandardTreeNode
getChildren, getDepth, getHeight, getLeftWidth, getNodesByLevel, getParent, getRightWidth, setParentMethods inherited from class JGraphAbstractTreeLayout.TreeNode
getWidth, routeEdges, setWidth
-
Field Details
-
verticalStyleChildren
protected boolean verticalStyleChildrenWhether or not children of this node this have vertical children
-
-
Constructor Details
-
OrganizationalTreeNode
-
-
Method Details
-
addChild
Adds a new child to this parent node- Overrides:
addChildin classJGraphTreeLayout.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:
setDepthin classJGraphTreeLayout.StandardTreeNode- Parameters:
depth- the depth to set
-
setPosition
Sets the position of this node- Overrides:
setPositionin classJGraphTreeLayout.StandardTreeNode- Parameters:
parent- the parent of this nodelevelHeight- the height of nodes on the same level
-
positionVerticalChildren
-