mxArrowConnector

Extends mxShape to implement an new rounded arrow shape with support for waypoints and double arrows.  (The shape is used to represent edges, not vertices.)  This shape is registered under mxConstants.SHAPE_ARROW_CONNECTOR in mxCellRenderer.

Summary
mxArrowConnectorExtends mxShape to implement an new rounded arrow shape with support for waypoints and double arrows.
Functions
mxArrowConnectorConstructs a new arrow shape.
Variables
useSvgBoundingBoxAllows to use the SVG bounding box in SVG.
Functions
isRoundableHook for subclassers.
Variables
resetStylesOverrides mxShape to reset spacing.
Functions
augmentBoundingBoxAugments the bounding box with the edge width and markers.
paintEdgeShapePaints the line shape.
paintMarkerPaints the marker.
isArrowRoundedReturns wether the arrow is rounded
getStartArrowWidthReturns the width of the start arrow
getEndArrowWidthReturns the width of the end arrow
getEdgeWidthReturns the width of the body of the edge
isOpenEndedReturns whether the ends of the shape are drawn
isMarkerStartReturns whether the start marker is drawn
isMarkerEndReturns whether the end marker is drawn

Functions

mxArrowConnector

function mxArrowConnector(points,
fill,
stroke,
strokewidth,
arrowWidth,
spacing,
endSize)

Constructs a new arrow shape.

Parameters

pointsArray of mxPoints that define the points.  This is stored in mxShape.points.
fillString that defines the fill color.  This is stored in <fill>.
strokeString that defines the stroke color.  This is stored in <stroke>.
strokewidthOptional integer that defines the stroke width.  Default is 1.  This is stored in <strokewidth>.
arrowWidthOptional integer that defines the arrow width.  Default is mxConstants.ARROW_WIDTH.  This is stored in <arrowWidth>.
spacingOptional integer that defines the spacing between the arrow shape and its endpoints.  Default is mxConstants.ARROW_SPACING.  This is stored in <spacing>.
endSizeOptional integer that defines the size of the arrowhead.  Default is mxConstants.ARROW_SIZE.  This is stored in <endSize>.

Variables

useSvgBoundingBox

mxArrowConnector.prototype.useSvgBoundingBox

Allows to use the SVG bounding box in SVG.  Default is false for performance reasons.

Functions

isRoundable

mxArrowConnector.prototype.isRoundable = function()

Hook for subclassers.

Variables

resetStyles

mxArrowConnector.prototype.resetStyles

Overrides mxShape to reset spacing.

Functions

augmentBoundingBox

mxArrowConnector.prototype.augmentBoundingBox = function(bbox)

Augments the bounding box with the edge width and markers.

paintEdgeShape

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

Paints the line shape.

paintMarker

mxArrowConnector.prototype.paintMarker = function(c,
ptX,
ptY,
nx,
ny,
size,
arrowWidth,
edgeWidth,
spacing,
initialMove)

Paints the marker.

isArrowRounded

mxArrowConnector.prototype.isArrowRounded = function()

Returns wether the arrow is rounded

getStartArrowWidth

mxArrowConnector.prototype.getStartArrowWidth = function()

Returns the width of the start arrow

getEndArrowWidth

mxArrowConnector.prototype.getEndArrowWidth = function()

Returns the width of the end arrow

getEdgeWidth

mxArrowConnector.prototype.getEdgeWidth = function()

Returns the width of the body of the edge

isOpenEnded

mxArrowConnector.prototype.isOpenEnded = function()

Returns whether the ends of the shape are drawn

isMarkerStart

mxArrowConnector.prototype.isMarkerStart = function()

Returns whether the start marker is drawn

isMarkerEnd

mxArrowConnector.prototype.isMarkerEnd = function()

Returns whether the end marker is drawn

Base class for all shapes.
function mxArrowConnector(points,
fill,
stroke,
strokewidth,
arrowWidth,
spacing,
endSize)
Constructs a new arrow shape.
mxArrowConnector.prototype.useSvgBoundingBox
Allows to use the SVG bounding box in SVG.
mxArrowConnector.prototype.isRoundable = function()
Hook for subclassers.
mxArrowConnector.prototype.resetStyles
Overrides mxShape to reset spacing.
mxArrowConnector.prototype.augmentBoundingBox = function(bbox)
Augments the bounding box with the edge width and markers.
mxArrowConnector.prototype.paintEdgeShape = function(c,
pts)
Paints the line shape.
mxArrowConnector.prototype.paintMarker = function(c,
ptX,
ptY,
nx,
ny,
size,
arrowWidth,
edgeWidth,
spacing,
initialMove)
Paints the marker.
mxArrowConnector.prototype.isArrowRounded = function()
Returns wether the arrow is rounded
mxArrowConnector.prototype.getStartArrowWidth = function()
Returns the width of the start arrow
mxArrowConnector.prototype.getEndArrowWidth = function()
Returns the width of the end arrow
mxArrowConnector.prototype.getEdgeWidth = function()
Returns the width of the body of the edge
mxArrowConnector.prototype.isOpenEnded = function()
Returns whether the ends of the shape are drawn
mxArrowConnector.prototype.isMarkerStart = function()
Returns whether the start marker is drawn
mxArrowConnector.prototype.isMarkerEnd = function()
Returns whether the end marker is drawn
SHAPE_ARROW_CONNECTOR: 'arrowConnector'
Name under which mxArrowConnector 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.
ARROW_WIDTH: 30
Defines the width of the arrow shape.
ARROW_SPACING: 0
Defines the spacing between the arrow shape and its terminals.
ARROW_SIZE: 30
Defines the size of the arrowhead in the arrow shape.
Close