|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.tree.JGraphAbstractTreeLayout
com.jgraph.layout.tree.JGraphTreeLayout
com.jgraph.layout.tree.OrganizationalChart
public class OrganizationalChart
A simple organisational chart. There are a number of switches that cause children cells to be drawn downwards from a vertex with the edges routed on one side. If any of the conditions are true, the vertical style is used for those vertices, regardless of whether the other conditions are true or false.
Nested Class Summary | |
---|---|
protected class |
OrganizationalChart.OrganizationalTreeNode
An ADT representing a node in an organisational chart structure. |
Nested classes/interfaces inherited from class com.jgraph.layout.tree.JGraphTreeLayout |
---|
JGraphTreeLayout.PolyLine, JGraphTreeLayout.StandardTreeNode |
Nested classes/interfaces inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout |
---|
JGraphAbstractTreeLayout.TreeNode |
Nested classes/interfaces inherited from interface com.jgraph.layout.JGraphLayout |
---|
JGraphLayout.Stoppable |
Field Summary | |
---|---|
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 |
Fields inherited from class com.jgraph.layout.tree.JGraphTreeLayout |
---|
alignment, combineLevelNodes |
Fields inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout |
---|
graph, levelDistance, lowerLevelValues, nodeDistance, nodes, oldOrigin, orientation, positionMultipleTrees, routeTreeEdges, treeBoundary, treeDistance, upperLevelValues |
Fields inherited from interface com.jgraph.layout.JGraphLayout |
---|
VERSION |
Constructor Summary | |
---|---|
OrganizationalChart()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.jgraph.layout.tree.JGraphTreeLayout |
---|
distance, getAlignment, getLeftMostX, getRightMostX, isCombineLevelNodes, join, merge, setAlignment, setCombineLevelNodes, setLevelHeights, setPosition, spaceMultipleTrees, toString |
Methods inherited from class com.jgraph.layout.tree.JGraphAbstractTreeLayout |
---|
getLevelDistance, getNodeDistance, getOrientation, getRouteTreeEdges, getTreeDistance, isPositionMultipleTrees, setLevelDistance, setNodeDistance, setOrientation, setPositionMultipleTrees, setRouteTreeEdges, setTreeDistance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int vertexDepthOrientationSwitch
protected int childrenLimitOrientationSwitch
protected java.util.Set horizontalParentsSet
protected int verticalEdgeLeftInset
protected int verticalEdgeRightInset
Constructor Detail |
---|
public OrganizationalChart()
Method Detail |
---|
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 found
protected void layout(JGraphTreeLayout.StandardTreeNode node)
layout
in class JGraphTreeLayout
node
- the tree node to be laid out
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |