mxElbowEdgeHandler

Graph event handler that reconnects edges and modifies control points and the edge label location.  Uses <mxTerminalMarker> for finding and highlighting new source and target vertices.  This handler is automatically created in mxGraph.createHandler.  It extends mxEdgeHandler.

Summary
mxElbowEdgeHandlerGraph event handler that reconnects edges and modifies control points and the edge label location.
Functions
mxEdgeHandlerConstructs an edge handler for the specified mxCellState.
Variables
doubleClickOrientationResourceSpecifies the resource key for the tooltip to be displayed on the single control point for routed edges.
Functions
createBendsOverrides mxEdgeHandler.createBends to create custom bends.
createVirtualBendCreates a virtual bend that supports double clicking and calls mxGraph.flipEdge.
getCursorForBendReturns the cursor to be used for the bend.
getTooltipForNodeReturns the tooltip for the given node.
convertPointConverts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid.
redrawInnerBendsUpdates and redraws the inner bends.

Functions

mxEdgeHandler

Constructs an edge handler for the specified mxCellState.

Parameters

statemxCellState of the cell to be modified.

Variables

doubleClickOrientationResource

mxElbowEdgeHandler.prototype.doubleClickOrientationResource

Specifies the resource key for the tooltip to be displayed on the single control point for routed edges.  If the resource for this key does not exist then the value is used as the error message.  Default is ‘doubleClickOrientation’.

Functions

createBends

mxElbowEdgeHandler.prototype.createBends = function()

Overrides mxEdgeHandler.createBends to create custom bends.

createVirtualBend

mxElbowEdgeHandler.prototype.createVirtualBend = function(dblClickHandler)

Creates a virtual bend that supports double clicking and calls mxGraph.flipEdge.

getCursorForBend

mxElbowEdgeHandler.prototype.getCursorForBend = function()

Returns the cursor to be used for the bend.

getTooltipForNode

mxElbowEdgeHandler.prototype.getTooltipForNode = function(node)

Returns the tooltip for the given node.

convertPoint

mxElbowEdgeHandler.prototype.convertPoint = function(point,
gridEnabled)

Converts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid.

Parameters

pointmxPoint to be converted.
gridEnabledBoolean that specifies if the grid should be applied.

redrawInnerBends

mxElbowEdgeHandler.prototype.redrawInnerBends = function(p0,
pe)

Updates and redraws the inner bends.

Parameters

p0mxPoint that represents the location of the first point.
pemxPoint that represents the location of the last point.
Represents the current state of a cell in a given mxGraphView.
mxElbowEdgeHandler.prototype.doubleClickOrientationResource
Specifies the resource key for the tooltip to be displayed on the single control point for routed edges.
mxElbowEdgeHandler.prototype.createBends = function()
Overrides mxEdgeHandler.createBends to create custom bends.
mxEdgeHandler.prototype.createBends = function()
Creates and returns the bends used for modifying the edge.
mxElbowEdgeHandler.prototype.createVirtualBend = function(dblClickHandler)
Creates a virtual bend that supports double clicking and calls mxGraph.flipEdge.
mxGraph.prototype.flipEdge = function(edge)
Toggles the style of the given edge between null (or empty) and alternateEdgeStyle.
mxElbowEdgeHandler.prototype.getCursorForBend = function()
Returns the cursor to be used for the bend.
mxElbowEdgeHandler.prototype.getTooltipForNode = function(node)
Returns the tooltip for the given node.
mxElbowEdgeHandler.prototype.convertPoint = function(point,
gridEnabled)
Converts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid.
mxElbowEdgeHandler.prototype.redrawInnerBends = function(p0,
pe)
Updates and redraws the inner bends.
mxGraph.prototype.createHandler = function(state)
Creates a new handler for the given cell state.
Constructs an edge handler for the specified mxCellState.
Implements a 2-dimensional vector with double precision coordinates.
Close