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. |
createHtml | Creates and returns the HTML node to represent this shape. |
createVml | Creates and returns the VML node to represent this shape. |
createSvg | Creates and returns the SVG node to represent this shape. |
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 )
Creates and returns the HTML node to represent this shape.
mxRectangleShape.prototype.createHtml = function()
Creates and returns the VML node to represent this shape.
mxRectangleShape.prototype.createVml = function()
Creates and returns the SVG node to represent this shape.
mxRectangleShape.prototype.createSvg = function()
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds