Extends mxShape to implement a horizontal line shape. This shape is registered under mxConstants.SHAPE_LINE in mxCellRenderer.
function mxLine( bounds, stroke, strokewidth, vertical )
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>. |
Constructs a new line shape.
function mxLine( bounds, stroke, strokewidth, vertical )
Redirects to redrawPath for subclasses to work.
mxLine.prototype.paintVertexShape = function( c, x, y, w, h )
Name under which mxLine is registered in mxCellRenderer.
SHAPE_LINE: 'line'
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds