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.
mxConnector | Extends mxShape to implement a connector shape. |
Functions | |
mxConnector | Constructs a new connector shape. |
updateBoundingBox | Updates the <boundingBox> for this shape using <createBoundingBox> and augmentBoundingBox and stores the result in <boundingBox>. |
paintEdgeShape | Paints the line shape. |
createMarker | Prepares the marker by adding offsets in pts and returning a function to paint the marker. |
augmentBoundingBox | Augments the bounding box with the strokewidth and shadow offsets. |
function mxConnector( points, stroke, strokewidth )
Constructs a new connector shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
stroke | String that defines the stroke color. This is stored in <stroke>. Default is ‘black’. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
mxConnector.prototype.updateBoundingBox = function()
Updates the <boundingBox> for this shape using <createBoundingBox> and augmentBoundingBox and stores the result in <boundingBox>.
Constructs a new connector shape.
function mxConnector( points, stroke, strokewidth )
Updates the boundingBox for this shape using createBoundingBox and augmentBoundingBox and stores the result in boundingBox.
mxConnector.prototype.updateBoundingBox = function()
Augments the bounding box with the strokewidth and shadow offsets.
mxConnector.prototype.augmentBoundingBox = function( bbox )
Paints the line shape.
mxConnector.prototype.paintEdgeShape = function( c, pts )
Prepares the marker by adding offsets in pts and returning a function to paint the marker.
mxConnector.prototype.createMarker = function( c, pts, source )
Name under which mxConnector is registered in mxCellRenderer.
SHAPE_CONNECTOR: 'connector'
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points