Extends mxShape to implement a rectangle shape. This shape is registered under mxConstants.SHAPE_RECTANGLE in mxCellRenderer.
mxRectangleShape | Extends mxShape to implement a rectangle shape. |
Functions | |
mxRectangleShape | Constructs a new rectangle shape. |
isHtmlAllowed | Returns true for non-rounded, non-rotated shapes with no glass gradient. |
paintBackground | Generic background painting implementation. |
isRoundable | Adds roundable support. |
paintForeground | Generic background painting implementation. |
function mxRectangleShape( bounds, fill, stroke, strokewidth )
Constructs a new rectangle 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 rectangle shape.
function mxRectangleShape( bounds, fill, stroke, strokewidth )
Returns true for non-rounded, non-rotated shapes with no glass gradient.
mxRectangleShape.prototype.isHtmlAllowed = function()
Generic background painting implementation.
mxRectangleShape.prototype.paintBackground = function( c, x, y, w, h )
Adds roundable support.
mxRectangleShape.prototype.isRoundable = function( c, x, y, w, h )
Generic background painting implementation.
mxRectangleShape.prototype.paintForeground = function( c, x, y, w, h )
Name under which mxRectangleShape is registered in mxCellRenderer.
SHAPE_RECTANGLE: 'rectangle'
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds