Package com.mxgraph.layout
Class mxParallelEdgeLayout
- java.lang.Object
-
- com.mxgraph.layout.mxGraphLayout
-
- com.mxgraph.layout.mxParallelEdgeLayout
-
- All Implemented Interfaces:
mxIGraphLayout
public class mxParallelEdgeLayout extends mxGraphLayout
-
-
Field Summary
Fields Modifier and Type Field Description protected int
spacing
Specifies the spacing between the edges.-
Fields inherited from class com.mxgraph.layout.mxGraphLayout
graph, parent, useBoundingBox
-
-
Constructor Summary
Constructors Constructor Description mxParallelEdgeLayout(mxGraph graph)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.mxParallelEdgeLayout(mxGraph graph, int spacing)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.lang.Object parent)
Executes the layout for the children of the specified parent.protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>>
findParallels(java.lang.Object parent)
protected java.lang.String
getEdgeId(java.lang.Object edge)
protected void
layout(java.util.List<java.lang.Object> parallels)
protected void
route(java.lang.Object edge, double x, double y)
-
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
-
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 Detail
-
execute
public void execute(java.lang.Object parent)
Description copied from interface:mxIGraphLayout
Executes the layout for the children of the specified parent.- Specified by:
execute
in interfacemxIGraphLayout
- Overrides:
execute
in classmxGraphLayout
- Parameters:
parent
- Parent cell that contains the children to be layed out.
-
findParallels
protected java.util.Map<java.lang.String,java.util.List<java.lang.Object>> findParallels(java.lang.Object parent)
-
getEdgeId
protected java.lang.String getEdgeId(java.lang.Object edge)
-
layout
protected void layout(java.util.List<java.lang.Object> parallels)
-
route
protected void route(java.lang.Object edge, double x, double y)
-
-