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.
Variables
addPipeSpecifies if a SVG path should be created around any path to increase the tolerance for mouse events.
Functions
createOverride to create HTML regardless of gradient and rounded property.
redrawVmlOverrides the method to update the bounds if they have not been assigned.
createSvgCreates and returns the SVG node(s) to represent this shape.
redrawSvgUpdates the SVG node(s) to reflect the latest bounds and scale.

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>.

Variables

addPipe

mxPolyline.prototype.addPipe

Specifies if a SVG path should be created around any path to increase the tolerance for mouse events.  Default is false since this shape is filled.

Functions

create

mxPolyline.prototype.create = function()

Override to create HTML regardless of gradient and rounded property.

redrawVml

mxPolyline.prototype.redrawVml = function()

Overrides the method to update the bounds if they have not been assigned.

createSvg

mxPolyline.prototype.createSvg = function()

Creates and returns the SVG node(s) to represent this shape.

redrawSvg

mxPolyline.prototype.redrawSvg = function()

Updates the SVG node(s) to reflect the latest bounds and scale.

Base class for all shapes.
function mxPolyline(points,
stroke,
strokewidth)
Constructs a new polyline shape.
mxPolyline.prototype.addPipe
Specifies if a SVG path should be created around any path to increase the tolerance for mouse events.
mxPolyline.prototype.create = function()
Override to create HTML regardless of gradient and rounded property.
mxPolyline.prototype.redrawVml = function()
Overrides the method to update the bounds if they have not been assigned.
mxPolyline.prototype.createSvg = function()
Creates and returns the SVG node(s) to represent this shape.
mxPolyline.prototype.redrawSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
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