Extends mxShape to implement a rhombus (aka diamond) shape. This shape is registered under mxConstants.SHAPE_RHOMBUS in mxCellRenderer.
mxRhombus | Extends mxShape to implement a rhombus (aka diamond) shape. |
Functions | |
mxRhombus | Constructs a new rhombus shape. |
paintVertexShape | Generic painting implementation. |
function mxRhombus( bounds, fill, stroke, strokewidth )
Constructs a new rhombus shape.
bounds | mxRectangle that defines the bounds. This is stored in mxShape.bounds. |
fill | String that defines the fill color. This is stored in <fill>. |
stroke | String that defines the stroke color. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
Constructs a new rhombus shape.
function mxRhombus( bounds, fill, stroke, strokewidth )
Generic painting implementation.
mxRhombus.prototype.paintVertexShape = function( c, x, y, w, h )
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds