Extends mxShape to implement a polyline (a line with multiple points). This shape is registered under <mxConstants.SHAPE_POLYLINE> in mxCellRenderer.
mxPolyline | Extends mxShape to implement a polyline (a line with multiple points). |
Functions | |
mxPolyline | Constructs a new polyline shape. |
getRotation | Returns 0. |
getShapeRotation | Returns 0. |
isPaintBoundsInverted | Returns false. |
paintEdgeShape | Paints the line shape. |
paintLine | Paints the line shape. |
paintLine | Paints the line shape. |
function mxPolyline( points, stroke, strokewidth )
Constructs a new polyline shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
stroke | String that defines the stroke color. Default is ‘black’. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
Constructs a new polyline shape.
function mxPolyline( points, stroke, strokewidth )
Returns 0.
mxPolyline.prototype.getRotation = function()
Returns 0.
mxPolyline.prototype.getShapeRotation = function()
Returns false.
mxPolyline.prototype.isPaintBoundsInverted = function()
Paints the line shape.
mxPolyline.prototype.paintEdgeShape = function( c, pts )
Paints the line shape.
mxPolyline.prototype.paintLine = function( c, pts, rounded )
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points