mxConnector

Extends mxShape to implement a connector shape.  The connector shape allows for arrow heads on either side.

This shape is registered under mxConstants.SHAPE_CONNECTOR in mxCellRenderer.

Summary
mxConnectorExtends mxShape to implement a connector shape.
Functions
mxConnectorConstructs a new connector shape.
Variables
vmlNodesAdds local references to mxShape.vmlNodes.
mixedModeHtmlOverrides the parent value with false, meaning it will draw in VML in mixed Html mode.
preferModeHtmlOverrides the parent value with false, meaning it will draw as VML in prefer Html mode.
allowCrispMarkersSpecifies if mxShape.crisp should be allowed for markers.
addPipeSpecifies if a SVG path should be created around any path to increase the tolerance for mouse events.
Functions
configureHtmlShapeOverrides mxShape.configureHtmlShape to clear the border and background.
createVmlCreates and returns the VML node to represent this shape.
updateVmlMarkerOpacityUpdates the opacity for the markers in VML.
redrawVmlRedraws this VML shape by invoking <updateVmlShape> on this.node.
redrawVmlRedraws this VML shape by invoking <updateVmlShape> on this.node.
createSvgCreates and returns the SVG node to represent this shape.
redrawSvgUpdates the SVG node(s) to reflect the latest bounds and scale.
createDashPatternCreates a dash pattern for the given factor.
redrawMarkerUpdates the given SVG or VML marker.

Functions

mxConnector

function mxConnector(points,
stroke,
strokewidth)

Constructs a new connector shape.

Parameters

pointsArray of mxPoints that define the points.  This is stored in mxShape.points.
strokeString that defines the stroke color.  This is stored in <stroke>.  Default is ‘black’.
strokewidthOptional integer that defines the stroke width.  Default is 1.  This is stored in <strokewidth>.

Variables

vmlNodes

mxConnector.prototype.vmlNodes

Adds local references to mxShape.vmlNodes.

mixedModeHtml

mxConnector.prototype.mixedModeHtml

Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.

preferModeHtml

mxConnector.prototype.preferModeHtml

Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.

allowCrispMarkers

mxConnector.prototype.allowCrispMarkers

Specifies if mxShape.crisp should be allowed for markers.  Default is false.

addPipe

mxConnector.prototype.addPipe

Specifies if a SVG path should be created around any path to increase the tolerance for mouse events.  Default is false since this shape is filled.

Functions

configureHtmlShape

mxConnector.prototype.configureHtmlShape = function(node)

Overrides mxShape.configureHtmlShape to clear the border and background.

createVml

mxConnector.prototype.createVml = function()

Creates and returns the VML node to represent this shape.

updateVmlMarkerOpacity

mxConnector.prototype.updateVmlMarkerOpacity = function()

Updates the opacity for the markers in VML.

redrawVml

Redraws this VML shape by invoking <updateVmlShape> on this.node.

redrawVml

mxConnector.prototype.redrawVml = function()

Redraws this VML shape by invoking <updateVmlShape> on this.node.

createSvg

mxConnector.prototype.createSvg = function()

Creates and returns the SVG node to represent this shape.

redrawSvg

mxConnector.prototype.redrawSvg = function()

Updates the SVG node(s) to reflect the latest bounds and scale.

createDashPattern

mxConnector.prototype.createDashPattern = function(factor)

Creates a dash pattern for the given factor.

redrawMarker

mxConnector.prototype.redrawMarker = function(node,
type,
p0,
pe,
color,
size)

Updates the given SVG or VML marker.

Base class for all shapes.
function mxConnector(points,
stroke,
strokewidth)
Constructs a new connector shape.
mxConnector.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
mxShape.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxConnector.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxConnector.prototype.preferModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxConnector.prototype.allowCrispMarkers
Specifies if mxShape.crisp should be allowed for markers.
mxShape.prototype.crisp
Special attribute for SVG rendering to set the shape-rendering attribute to crispEdges in the output.
mxConnector.prototype.addPipe
Specifies if a SVG path should be created around any path to increase the tolerance for mouse events.
mxConnector.prototype.configureHtmlShape = function(node)
Overrides mxShape.configureHtmlShape to clear the border and background.
mxShape.prototype.configureHtmlShape = function(node)
Configures the specified HTML node by applying the current color, bounds, shadow, opacity etc.
mxConnector.prototype.createVml = function()
Creates and returns the VML node to represent this shape.
mxConnector.prototype.updateVmlMarkerOpacity = function()
Updates the opacity for the markers in VML.
mxConnector.prototype.redrawVml = function()
Redraws this VML shape by invoking updateVmlShape on this.node.
mxConnector.prototype.createSvg = function()
Creates and returns the SVG node to represent this shape.
mxConnector.prototype.redrawSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxConnector.prototype.createDashPattern = function(factor)
Creates a dash pattern for the given factor.
mxConnector.prototype.redrawMarker = function(node,
type,
p0,
pe,
color,
size)
Updates the given SVG or VML marker.
Name under which mxConnector is registered in mxCellRenderer.
Renders cells into a document object model.
Implements a 2-dimensional vector with double precision coordinates.
mxShape.prototype.points
Holds the array of mxPoints that specify the points of this shape.
Close