Extends mxGraphLayout for arranging parallel edges. This layout works on edges for all pairs of vertices where there is more than one edge connecting the latter.
var layout = new mxParallelEdgeLayout(graph); layout.execute(graph.getDefaultParent());
mxParallelEdgeLayout | Extends mxGraphLayout for arranging parallel edges. |
Functions | |
mxCompactTreeLayout | Constructs a new fast organic layout for the specified graph. |
Variables | |
spacing | Defines the spacing between the parallels. |
Functions | |
execute | Implements mxGraphLayout.execute. |
findParallels | Finds the parallel edges in the given parent. |
getEdgeId | Returns a unique ID for the given edge. |
layout | Lays out the parallel edges in the given array. |
route | Routes the given edge via the given point. |
mxParallelEdgeLayout.prototype.execute = function( parent )
Implements mxGraphLayout.execute.
Defines the spacing between the parallels.
mxParallelEdgeLayout.prototype.spacing
Implements mxGraphLayout.execute.
mxParallelEdgeLayout.prototype.execute = function( parent )
Executes the layout algorithm for the children of the given parent.
mxGraphLayout.prototype.execute = function( parent )
Finds the parallel edges in the given parent.
mxParallelEdgeLayout.prototype.findParallels = function( parent )
Returns a unique ID for the given edge.
mxParallelEdgeLayout.prototype.getEdgeId = function( edge )
Lays out the parallel edges in the given array.
mxParallelEdgeLayout.prototype.layout = function( parallels )
Routes the given edge via the given point.
mxParallelEdgeLayout.prototype.route = function( edge, x, y )