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.
updateBoundingBoxUpdates the <boundingBox> for this shape using <createBoundingBox> and augmentBoundingBox and stores the result in <boundingBox>.
paintEdgeShapePaints the line shape.
createMarkerPrepares the marker by adding offsets in pts and returning a function to paint the marker.
augmentBoundingBoxAugments the bounding box with the strokewidth and shadow offsets.

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>.

updateBoundingBox

mxConnector.prototype.updateBoundingBox = function()

Updates the <boundingBox> for this shape using <createBoundingBox> and augmentBoundingBox and stores the result in <boundingBox>.

paintEdgeShape

mxConnector.prototype.paintEdgeShape = function(c,
pts)

Paints the line shape.

createMarker

mxConnector.prototype.createMarker = function(c,
pts,
source)

Prepares the marker by adding offsets in pts and returning a function to paint the marker.

augmentBoundingBox

mxConnector.prototype.augmentBoundingBox = function(bbox)

Augments the bounding box with the strokewidth and shadow offsets.

Base class for all shapes.
function mxConnector(points,
stroke,
strokewidth)
Constructs a new connector shape.
mxConnector.prototype.updateBoundingBox = function()
Updates the boundingBox for this shape using createBoundingBox and augmentBoundingBox and stores the result in boundingBox.
mxConnector.prototype.augmentBoundingBox = function(bbox)
Augments the bounding box with the strokewidth and shadow offsets.
mxConnector.prototype.paintEdgeShape = function(c,
pts)
Paints the line shape.
mxConnector.prototype.createMarker = function(c,
pts,
source)
Prepares the marker by adding offsets in pts and returning a function to paint the marker.
SHAPE_CONNECTOR: 'connector'
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