public class mxParallelEdgeLayout extends mxGraphLayout
Modifier and Type | Field and Description |
---|---|
protected int |
spacing
Specifies the spacing between the edges.
|
graph, parent, useBoundingBox
Constructor and 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.
|
Modifier and Type | Method and 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) |
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
public mxParallelEdgeLayout(mxGraph graph)
public mxParallelEdgeLayout(mxGraph graph, int spacing)
public void execute(java.lang.Object parent)
mxIGraphLayout
execute
in interface mxIGraphLayout
execute
in class mxGraphLayout
parent
- Parent cell that contains the children to be layed out.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)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.