Class 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)

    • Field Summary

      • Fields inherited from class com.mxgraph.layout.hierarchical.mxHierarchicalLayout

        disableEdgeStyle, fineTuning, interHierarchySpacing, interRankCellSpacing, intraCellSpacing, model, moveParent, orientation, parallelEdgeSpacing, parentBorder, resizeParent, roots, traverseAncestors
      • Fields inherited from class com.mxgraph.layout.mxGraphLayout

        graph, parent, useBoundingBox
    • 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
    • Constructor Detail

      • CustomHierarchicalLayout

        public CustomHierarchicalLayout​(com.mxgraph.view.mxGraph graph,
                                        int orientation)