protected class OrganizationalChart.OrganizationalTreeNode extends JGraphTreeLayout.StandardTreeNode
Modifier and Type | Field and Description |
---|---|
protected boolean |
verticalStyleChildren
Whether or not children of this node this have vertical children
|
parent
Constructor and Description |
---|
OrganizationalTreeNode(java.lang.Object cell) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(JGraphTreeLayout.StandardTreeNode newChild)
Adds a new child to this parent node
|
boolean |
isVerticalStyleChildren() |
protected void |
positionVerticalChildren(java.awt.geom.Point2D parent) |
void |
setDepth(int depth) |
void |
setPosition(java.awt.geom.Point2D parent,
double levelHeight)
Sets the position of this node
|
void |
setVerticalStyleChildren(boolean verticalStyleChildren) |
getChildren, getDepth, getHeight, getLeftWidth, getNodesByLevel, getParent, getRightWidth, setParent
getWidth, routeEdges, setWidth
protected boolean verticalStyleChildren
public void addChild(JGraphTreeLayout.StandardTreeNode newChild)
addChild
in class JGraphTreeLayout.StandardTreeNode
newChild
- the child to be addedpublic boolean isVerticalStyleChildren()
public void setVerticalStyleChildren(boolean verticalStyleChildren)
verticalStyleChildren
- the verticalStyleChildren to setpublic void setDepth(int depth)
setDepth
in class JGraphTreeLayout.StandardTreeNode
depth
- the depth to setpublic void setPosition(java.awt.geom.Point2D parent, double levelHeight)
setPosition
in class JGraphTreeLayout.StandardTreeNode
parent
- the parent of this nodelevelHeight
- the height of nodes on the same levelprotected void positionVerticalChildren(java.awt.geom.Point2D parent)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.