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.
getRotationReturns 0.
getShapeRotationReturns 0.
isPaintBoundsInvertedReturns false.
paintEdgeShapePaints the line shape.
paintLinePaints 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()

Returns 0.

getShapeRotation

mxPolyline.prototype.getShapeRotation = function()

Returns 0.

isPaintBoundsInverted

mxPolyline.prototype.isPaintBoundsInverted = function()

Returns false.

paintEdgeShape

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

Paints the line shape.

paintLine

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

Paints the line shape.

paintLine

Paints the line shape.

Base class for all shapes.
function mxPolyline(points,
stroke,
strokewidth)
Constructs a new polyline shape.
mxPolyline.prototype.getRotation = function()
Returns 0.
mxPolyline.prototype.getShapeRotation = function()
Returns 0.
mxPolyline.prototype.isPaintBoundsInverted = function()
Returns false.
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