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.
paintVertexShapeRedirects to redrawPath for subclasses to work.

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

paintVertexShape

mxLine.prototype.paintVertexShape = function(c,
x,
y,
w,
h)

Redirects to redrawPath for subclasses to work.

Base class for all shapes.
function mxLine(bounds,
stroke,
strokewidth)
Constructs a new line shape.
mxLine.prototype.paintVertexShape = function(c,
x,
y,
w,
h)
Redirects to redrawPath for subclasses to work.
SHAPE_LINE: 'line'
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