com.jgraph.layout.tree
public class OrganizationalChart extends JGraphTreeLayout
| Nested Class Summary | |
|---|---|
| protected class | OrganizationalChart.OrganizationalTreeNode
An ADT representing a node in an organisational chart structure. |
| Field Summary | |
|---|---|
| protected int | childrenLimitOrientationSwitch
The minimum number of children a parent has before all children are
drawn in the vertical orientation style |
| protected 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 |
| Method Summary | |
|---|---|
| protected JGraphTreeLayout.StandardTreeNode | getTreeNode(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. |
Parameters: cell the cell whose tree node is to be found
Returns: the matching tree node, if any
Parameters: node the tree node to be laid out
Parameters: graph the facade describing the graph and its configuration