public class OrganizationalChart extends JGraphTreeLayout
Modifier and Type | Class and Description |
---|---|
protected class |
OrganizationalChart.OrganizationalTreeNode
An ADT representing a node in an organisational chart structure.
|
JGraphTreeLayout.PolyLine, JGraphTreeLayout.StandardTreeNode
JGraphAbstractTreeLayout.TreeNode
JGraphLayout.Stoppable
Modifier and Type | Field and Description |
---|---|
protected int |
childrenLimitOrientationSwitch
The minimum number of children a parent has before all children are
drawn in the vertical orientation style
|
protected java.util.Set |
horizontalParentsSet
A set of cells whose children should be drawn in the vertical style
|
protected int |
vertexDepthOrientationSwitch
The level at which nodes in the tree are switched to be vertically
oriented.
|
protected int |
verticalEdgeLeftInset
The inset from left hand side of parent vertices that descending
vertical edges are placed
|
protected int |
verticalEdgeRightInset
The inset right from vertical edges that vertices in the vertical style
are offset by
|
alignment, combineLevelNodes
graph, levelDistance, lowerLevelValues, nodeDistance, nodes, oldOrigin, orientation, positionMultipleTrees, routeTreeEdges, treeBoundary, treeDistance, upperLevelValues
VERSION
Constructor and Description |
---|
OrganizationalChart() |
Modifier and Type | Method and Description |
---|---|
protected JGraphTreeLayout.StandardTreeNode |
getTreeNode(java.lang.Object cell)
Obtains the tree node corresponding to the specified cell
|
protected void |
layout(JGraphTreeLayout.StandardTreeNode node)
Top-level method that performs actual layout of tree for a specific node.
|
void |
run(JGraphFacade graph)
The API method used to exercise the layout upon the facade description
and produce a separate description of the vertex position and edge
routing changes made.
|
distance, getAlignment, getLeftMostX, getRightMostX, isCombineLevelNodes, join, merge, setAlignment, setCombineLevelNodes, setLevelHeights, setPosition, spaceMultipleTrees, toString
getLevelDistance, getNodeDistance, getOrientation, getRouteTreeEdges, getTreeDistance, isPositionMultipleTrees, setLevelDistance, setNodeDistance, setOrientation, setPositionMultipleTrees, setRouteTreeEdges, setTreeDistance
protected int vertexDepthOrientationSwitch
protected int childrenLimitOrientationSwitch
protected java.util.Set horizontalParentsSet
protected int verticalEdgeLeftInset
protected int verticalEdgeRightInset
public void run(JGraphFacade graph)
run
in interface JGraphLayout
run
in class JGraphTreeLayout
graph
- the facade describing the graph and its configurationprotected JGraphTreeLayout.StandardTreeNode getTreeNode(java.lang.Object cell)
getTreeNode
in class JGraphTreeLayout
cell
- the cell whose tree node is to be foundprotected void layout(JGraphTreeLayout.StandardTreeNode node)
layout
in class JGraphTreeLayout
node
- the tree node to be laid outCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.