mxArrow

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.

Summary
mxArrowExtends mxShape to implement an arrow shape.
Functions
mxArrowConstructs a new arrow shape.
augmentBoundingBoxAugments the bounding box with the edge width and markers.
paintEdgeShapePaints the line shape.

Functions

mxArrow

function mxArrow(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>.

augmentBoundingBox

mxArrow.prototype.augmentBoundingBox = function(bbox)

Augments the bounding box with the edge width and markers.

paintEdgeShape

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

Paints the line shape.

Base class for all shapes.
function mxArrow(points,
fill,
stroke,
strokewidth,
arrowWidth,
spacing,
endSize)
Constructs a new arrow shape.
mxArrow.prototype.augmentBoundingBox = function(bbox)
Augments the bounding box with the edge width and markers.
mxArrow.prototype.paintEdgeShape = function(c,
pts)
Paints the line shape.
Name under which mxArrow 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.
Defines the width of the arrow shape.
Defines the spacing between the arrow shape and its terminals.
Defines the size of the arrowhead in the arrow shape.
Close