mxRectangleShape

Extends mxShape to implement a rectangle shape.  This shape is registered under mxConstants.SHAPE_RECTANGLE in mxCellRenderer.

Summary
mxRectangleShapeExtends mxShape to implement a rectangle shape.
Functions
mxRectangleShapeConstructs a new rectangle shape.
createHtmlCreates and returns the HTML node to represent this shape.
createVmlCreates and returns the VML node to represent this shape.
createSvgCreates and returns the SVG node to represent this shape.

Functions

mxRectangleShape

function mxRectangleShape(bounds,
fill,
stroke,
strokewidth)

Constructs a new rectangle shape.

Parameters

boundsmxRectangle that defines the bounds.  This is stored in mxShape.bounds.
fillString that defines the fill color.  This is stored in <fill>.
strokeString that defines the stroke color.  This is stored in <stroke>.
strokewidthOptional integer that defines the stroke width.  Default is 1.  This is stored in <strokewidth>.

createHtml

mxRectangleShape.prototype.createHtml = function()

Creates and returns the HTML node to represent this shape.

createVml

mxRectangleShape.prototype.createVml = function()

Creates and returns the VML node to represent this shape.

createSvg

mxRectangleShape.prototype.createSvg = function()

Creates and returns the SVG node to represent this shape.

Base class for all shapes.
function mxRectangleShape(bounds,
fill,
stroke,
strokewidth)
Constructs a new rectangle shape.
mxRectangleShape.prototype.createHtml = function()
Creates and returns the HTML node to represent this shape.
mxRectangleShape.prototype.createVml = function()
Creates and returns the VML node to represent this shape.
mxRectangleShape.prototype.createSvg = function()
Creates and returns the SVG node to represent this shape.
Name under which mxRectangleShape 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