Package science.aist.bpmn.viz
Class BpmnAutoLayout.CustomHierarchicalLayout
- java.lang.Object
-
- com.mxgraph.layout.mxGraphLayout
-
- com.mxgraph.layout.hierarchical.mxHierarchicalLayout
-
- science.aist.bpmn.viz.BpmnAutoLayout.CustomHierarchicalLayout
-
- All Implemented Interfaces:
com.mxgraph.layout.mxIGraphLayout
- Enclosing class:
- BpmnAutoLayout
public static class BpmnAutoLayout.CustomHierarchicalLayout extends com.mxgraph.layout.hierarchical.mxHierarchicalLayout
Due to a bug (see http://forum.jgraph.com/questions/5952/mxhierarchicallayout-not-correct-when-using-child-vertex) We must extend the default hierarchical layout to tweak it a bit (see url link) otherwise the layouting crashes.Verify again with a later release if fixed (ie the mxHierarchicalLayout can be used directly)
The bug is that the normal mxHierarchicalLayout would traverse ancestors which is not necessary, otherwise the whole layout would get messed up (However, with our current examples it does not mess up anything)
-
-
Constructor Summary
Constructors Constructor Description CustomHierarchicalLayout(com.mxgraph.view.mxGraph graph, int orientation)
-
Method Summary
-
Methods inherited from class com.mxgraph.layout.hierarchical.mxHierarchicalLayout
crossingStage, cycleStage, execute, execute, filterDescendants, findRoots, getEdges, getInterHierarchySpacing, getInterRankCellSpacing, getIntraCellSpacing, getModel, getOrientation, getParallelEdgeSpacing, getParentBorder, isDisableEdgeStyle, isFineTuning, isMoveParent, isResizeParent, layeringStage, placementStage, run, setDisableEdgeStyle, setFineTuning, setInterHierarchySpacing, setInterRankCellSpacing, setIntraCellSpacing, setMoveParent, setOrientation, setParallelEdgeSpacing, setParentBorder, setResizeParent, toString, traverse
-
Methods inherited from class com.mxgraph.layout.mxGraphLayout
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
-
-