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.
mxElbowEdgeHandler | Graph event handler that reconnects edges and modifies control points and the edge label location. |
Functions | |
mxEdgeHandler | Constructs an edge handler for the specified mxCellState. |
Variables | |
doubleClickOrientationResource | Specifies the resource key for the tooltip to be displayed on the single control point for routed edges. |
Functions | |
createBends | Overrides mxEdgeHandler.createBends to create custom bends. |
createVirtualBend | Creates a virtual bend that supports double clicking and calls mxGraph.flipEdge. |
getCursorForBend | Returns the cursor to be used for the bend. |
getTooltipForNode | Returns the tooltip for the given node. |
convertPoint | Converts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid. |
redrawInnerBends | Updates and redraws the inner bends. |
Constructs an edge handler for the specified mxCellState.
state | mxCellState of the cell to be modified. |
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’.
mxElbowEdgeHandler.prototype.createBends = function()
Overrides mxEdgeHandler.createBends to create custom bends.
mxElbowEdgeHandler.prototype.createVirtualBend = function( dblClickHandler )
Creates a virtual bend that supports double clicking and calls mxGraph.flipEdge.
mxElbowEdgeHandler.prototype.convertPoint = function( point, gridEnabled )
Converts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid.
point | mxPoint to be converted. |
gridEnabled | Boolean that specifies if the grid should be applied. |
Specifies the resource key for the tooltip to be displayed on the single control point for routed edges.
mxElbowEdgeHandler.prototype.doubleClickOrientationResource
Overrides mxEdgeHandler.createBends to create custom bends.
mxElbowEdgeHandler.prototype.createBends = function()
Creates and returns the bends used for modifying the edge.
mxEdgeHandler.prototype.createBends = function()
Creates a virtual bend that supports double clicking and calls mxGraph.flipEdge.
mxElbowEdgeHandler.prototype.createVirtualBend = function( dblClickHandler )
Toggles the style of the given edge between null (or empty) and alternateEdgeStyle.
mxGraph.prototype.flipEdge = function( edge )
Returns the cursor to be used for the bend.
mxElbowEdgeHandler.prototype.getCursorForBend = function()
Returns the tooltip for the given node.
mxElbowEdgeHandler.prototype.getTooltipForNode = function( node )
Converts the given point in-place from screen to unscaled, untranslated graph coordinates and applies the grid.
mxElbowEdgeHandler.prototype.convertPoint = function( point, gridEnabled )
Updates and redraws the inner bends.
mxElbowEdgeHandler.prototype.redrawInnerBends = function( p0, pe )
Creates a new handler for the given cell state.
mxGraph.prototype.createHandler = function( state )