mxEdgeLabelLayout

Extends mxGraphLayout to implement an edge label layout.  This layout makes use of cell states, which means the graph must be validated in a graph view (so that the label bounds are available) before this layout can be executed.

Example

var layout = new mxEdgeLabelLayout(graph);
layout.execute(graph.getDefaultParent());
Summary
mxEdgeLabelLayoutExtends mxGraphLayout to implement an edge label layout.
Functions
mxEdgeLabelLayoutConstructs a new edge label layout.
executeImplements mxGraphLayout.execute.
placeLabelsPlaces the labels of the given edges.
avoidPlaces the labels of the given edges.

Functions

mxEdgeLabelLayout

function mxEdgeLabelLayout(graph,
radius)

Constructs a new edge label layout.

Arguments

graphmxGraph that contains the cells.

execute

mxEdgeLabelLayout.prototype.execute = function(parent)

Implements mxGraphLayout.execute.

placeLabels

mxEdgeLabelLayout.prototype.placeLabels = function(v,
e)

Places the labels of the given edges.

avoid

mxEdgeLabelLayout.prototype.avoid = function(edge,
vertex)

Places the labels of the given edges.

Base class for all layout algorithms in mxGraph.
function mxEdgeLabelLayout(graph,
radius)
Constructs a new edge label layout.
mxEdgeLabelLayout.prototype.execute = function(parent)
Implements mxGraphLayout.execute.
mxGraphLayout.prototype.execute = function(parent)
Executes the layout algorithm for the children of the given parent.
mxEdgeLabelLayout.prototype.placeLabels = function(v,
e)
Places the labels of the given edges.
mxEdgeLabelLayout.prototype.avoid = function(edge,
vertex)
Places the labels of the given edges.
Extends mxEventSource to implement a graph component for the browser.
Close