mxPolyline

Extends mxShape to implement a polyline (a line with multiple points).  This shape is registered under <mxConstants.SHAPE_POLYLINE> in mxCellRenderer.

Summary
mxPolylineExtends mxShape to implement a polyline (a line with multiple points).
Functions
mxPolylineConstructs a new polyline shape.
getRotationOverrides to return 0.
paintEdgeShapePaints the line shape.
paintLinePaints the line shape.

Functions

mxPolyline

function mxPolyline(points,
stroke,
strokewidth)

Constructs a new polyline shape.

Parameters

pointsArray of mxPoints that define the points.  This is stored in mxShape.points.
strokeString that defines the stroke color.  Default is ‘black’.  This is stored in <stroke>.
strokewidthOptional integer that defines the stroke width.  Default is 1.  This is stored in <strokewidth>.

getRotation

mxPolyline.prototype.getRotation = function()

Overrides to return 0.

paintEdgeShape

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

Paints the line shape.

paintLine

mxPolyline.prototype.paintLine = function(c,
pts,
rounded)

Paints the line shape.

Base class for all shapes.
function mxPolyline(points,
stroke,
strokewidth)
Constructs a new polyline shape.
mxPolyline.prototype.getRotation = function()
Overrides to return 0.
mxPolyline.prototype.paintEdgeShape = function(c,
pts)
Paints the line shape.
mxPolyline.prototype.paintLine = function(c,
pts,
rounded)
Paints the line shape.
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