Extends mxShape to implement an arrow shape. (The shape is used to represent edges, not vertices.) This shape is registered under mxConstants.SHAPE_ARROW in mxCellRenderer.
mxArrow | Extends mxShape to implement an arrow shape. |
Functions | |
mxArrow | Constructs a new arrow shape. |
augmentBoundingBox | Augments the bounding box with the edge width and markers. |
paintEdgeShape | Paints the line shape. |
function mxArrow( points, fill, stroke, strokewidth, arrowWidth, spacing, endSize )
Constructs a new arrow shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
fill | String that defines the fill color. This is stored in <fill>. |
stroke | String that defines the stroke color. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
arrowWidth | Optional integer that defines the arrow width. Default is mxConstants.ARROW_WIDTH. This is stored in <arrowWidth>. |
spacing | Optional integer that defines the spacing between the arrow shape and its endpoints. Default is mxConstants.ARROW_SPACING. This is stored in <spacing>. |
endSize | Optional integer that defines the size of the arrowhead. Default is mxConstants.ARROW_SIZE. This is stored in <endSize>. |
Constructs a new arrow shape.
function mxArrow( points, fill, stroke, strokewidth, arrowWidth, spacing, endSize )
Augments the bounding box with the edge width and markers.
mxArrow.prototype.augmentBoundingBox = function( bbox )
Paints the line shape.
mxArrow.prototype.paintEdgeShape = function( c, pts )
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points