Class mxParallelEdgeLayout

java.lang.Object
com.mxgraph.layout.mxGraphLayout
com.mxgraph.layout.mxParallelEdgeLayout
All Implemented Interfaces:
mxIGraphLayout

public class mxParallelEdgeLayout extends mxGraphLayout
  • Field Details

    • spacing

      protected int spacing
      Specifies the spacing between the edges. Default is 20.
  • Constructor Details

    • mxParallelEdgeLayout

      public mxParallelEdgeLayout(mxGraph graph)
      Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
    • mxParallelEdgeLayout

      public mxParallelEdgeLayout(mxGraph graph, int spacing)
      Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
  • Method Details

    • execute

      public void execute(Object parent)
      Description copied from interface: mxIGraphLayout
      Executes the layout for the children of the specified parent.
      Specified by:
      execute in interface mxIGraphLayout
      Overrides:
      execute in class mxGraphLayout
      Parameters:
      parent - Parent cell that contains the children to be layed out.
    • findParallels

      protected Map<String,List<Object>> findParallels(Object parent)
    • getEdgeId

      protected String getEdgeId(Object edge)
    • layout

      protected void layout(List<Object> parallels)
    • route

      protected void route(Object edge, double x, double y)