Extends mxShape to implement a horizontal line shape. This shape is registered under mxConstants.SHAPE_LINE in mxCellRenderer.
mxLine | Extends mxShape to implement a horizontal line shape. |
Functions | |
mxLine | Constructs a new line shape. |
Variables | |
vmlNodes | Adds local references to mxShape.vmlNodes. |
mixedModeHtml | Overrides the parent value with false, meaning it will draw in VML in mixed Html mode. |
preferModeHtml | Overrides the parent value with false, meaning it will draw as VML in prefer Html mode. |
Functions | |
clone | Overrides the clone method to add special fields. |
createVml | Creates and returns the VML node to represent this shape. |
redrawVml | Redraws this VML shape by invoking <updateVmlShape> on this.node. |
redrawVml | Updates the VML node(s) to reflect the latest bounds and scale. |
createSvg | Creates and returns the SVG node(s) to represent this shape. |
redrawSvg | Updates the SVG node(s) to reflect the latest bounds and scale. |
function mxLine( bounds, stroke, strokewidth )
Constructs a new line shape.
bounds | mxRectangle that defines the bounds. This is stored in mxShape.bounds. |
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>. |
mxLine.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
Constructs a new line shape.
function mxLine( bounds, stroke, strokewidth )
Adds local references to mxShape.vmlNodes.
mxLine.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxShape.prototype.vmlNodes
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxLine.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxLine.prototype.preferModeHtml
Overrides the clone method to add special fields.
mxLine.prototype.clone = function()
Creates and returns the VML node to represent this shape.
mxLine.prototype.createVml = function()
Updates the VML node(s) to reflect the latest bounds and scale.
mxLine.prototype.redrawVml = function()
Creates and returns the SVG node(s) to represent this shape.
mxLine.prototype.createSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxLine.prototype.redrawSvg = function()
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds