mxLine

Extends mxShape to implement a horizontal line shape.  This shape is registered under mxConstants.SHAPE_LINE in mxCellRenderer.

Summary
mxLineExtends mxShape to implement a horizontal line shape.
Functions
mxLineConstructs a new line shape.
Variables
vmlNodesAdds local references to mxShape.vmlNodes.
mixedModeHtmlOverrides the parent value with false, meaning it will draw in VML in mixed Html mode.
preferModeHtmlOverrides the parent value with false, meaning it will draw as VML in prefer Html mode.
Functions
cloneOverrides the clone method to add special fields.
createVmlCreates and returns the VML node to represent this shape.
redrawVmlRedraws this VML shape by invoking <updateVmlShape> on this.node.
redrawVmlUpdates the VML node(s) to reflect the latest bounds and scale.
createSvgCreates and returns the SVG node(s) to represent this shape.
redrawSvgUpdates the SVG node(s) to reflect the latest bounds and scale.

Functions

mxLine

function mxLine(bounds,
stroke,
strokewidth)

Constructs a new line shape.

Parameters

boundsmxRectangle that defines the bounds.  This is stored in mxShape.bounds.
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

vmlNodes

mxLine.prototype.vmlNodes

Adds local references to mxShape.vmlNodes.

mixedModeHtml

mxLine.prototype.mixedModeHtml

Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.

preferModeHtml

mxLine.prototype.preferModeHtml

Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.

Functions

clone

mxLine.prototype.clone = function()

Overrides the clone method to add special fields.

createVml

mxLine.prototype.createVml = function()

Creates and returns the VML node to represent this shape.

redrawVml

Redraws this VML shape by invoking <updateVmlShape> on this.node.

redrawVml

mxLine.prototype.redrawVml = function()

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

createSvg

mxLine.prototype.createSvg = function()

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

redrawSvg

mxLine.prototype.redrawSvg = function()

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

Base class for all shapes.
function mxLine(bounds,
stroke,
strokewidth)
Constructs a new line shape.
mxLine.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
mxShape.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxLine.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxLine.prototype.preferModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxLine.prototype.clone = function()
Overrides the clone method to add special fields.
mxLine.prototype.createVml = function()
Creates and returns the VML node to represent this shape.
mxLine.prototype.redrawVml = function()
Updates the VML node(s) to reflect the latest bounds and scale.
mxLine.prototype.createSvg = function()
Creates and returns the SVG node(s) to represent this shape.
mxLine.prototype.redrawSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
Name under which mxLine is registered in mxCellRenderer.
Renders cells into a document object model.
Extends mxPoint to implement a 2-dimensional rectangle with double precision coordinates.
mxShape.prototype.bounds
Holds the mxRectangle that specifies the bounds of this shape.
Close