com.jgraph.layout.tree

Class OrganizationalChart.OrganizationalTreeNode

protected class OrganizationalChart.OrganizationalTreeNode extends JGraphTreeLayout.StandardTreeNode

An ADT representing a node in an organisational chart structure.
Field Summary
protected booleanverticalStyleChildren
Whether or not children of this node this have vertical children
Constructor Summary
OrganizationalTreeNode(Object cell)
Method Summary
voidaddChild(JGraphTreeLayout.StandardTreeNode newChild)
Adds a new child to this parent node
booleanisVerticalStyleChildren()
protected voidpositionVerticalChildren(Point2D parent)
voidsetDepth(int depth)
voidsetPosition(Point2D parent, double levelHeight)
Sets the position of this node
voidsetVerticalStyleChildren(boolean verticalStyleChildren)

Field Detail

verticalStyleChildren

protected boolean verticalStyleChildren
Whether or not children of this node this have vertical children

Constructor Detail

OrganizationalTreeNode

public OrganizationalTreeNode(Object cell)

Method Detail

addChild

public void addChild(JGraphTreeLayout.StandardTreeNode newChild)
Adds a new child to this parent node

Parameters: newChild the child to be added

isVerticalStyleChildren

public boolean isVerticalStyleChildren()

Returns: the verticalStyleChildren

positionVerticalChildren

protected void positionVerticalChildren(Point2D parent)

setDepth

public void setDepth(int depth)

Parameters: depth the depth to set

setPosition

public void setPosition(Point2D parent, double levelHeight)
Sets the position of this node

Parameters: parent the parent of this node levelHeight the height of nodes on the same level

setVerticalStyleChildren

public void setVerticalStyleChildren(boolean verticalStyleChildren)

Parameters: verticalStyleChildren the verticalStyleChildren to set

Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.