JGraph
v5.13.0.0


com.jgraph.layout.tree
Class OrganizationalChart.OrganizationalTreeNode

java.lang.Object
  extended by com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
      extended by com.jgraph.layout.tree.JGraphTreeLayout.StandardTreeNode
          extended by 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
 
Fields inherited from class com.jgraph.layout.tree.JGraphTreeLayout.StandardTreeNode
parent
 
Fields inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
cell, height, width, x, y
 
Constructor Summary
OrganizationalChart.OrganizationalTreeNode(Object cell)
           
 
Method Summary
 void addChild(JGraphTreeLayout.StandardTreeNode newChild)
          Adds a new child to this parent node
 boolean isVerticalStyleChildren()
           
protected  void positionVerticalChildren(Point2D parent)
           
 void setDepth(int depth)
           
 void setPosition(Point2D parent, double levelHeight)
          Sets the position of this node
 void setVerticalStyleChildren(boolean verticalStyleChildren)
           
 
Methods inherited from class com.jgraph.layout.tree.JGraphTreeLayout.StandardTreeNode
getChildren, getDepth, getHeight, getLeftWidth, getNodesByLevel, getParent, getRightWidth, setParent
 
Methods inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout.TreeNode
getWidth, routeEdges, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verticalStyleChildren

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

Constructor Detail

OrganizationalChart.OrganizationalTreeNode

public OrganizationalChart.OrganizationalTreeNode(Object cell)
Method Detail

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(Point2D parent,
                        double levelHeight)
Sets the position of this node

Overrides:
setPosition in class JGraphTreeLayout.StandardTreeNode
Parameters:
parent - the parent of this node
levelHeight - the height of nodes on the same level

positionVerticalChildren

protected void positionVerticalChildren(Point2D parent)

JGraph
v5.13.0.0


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