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.
isHtmlAllowedReturns true for non-rounded, non-rotated shapes with no glass gradient.
paintBackgroundGeneric background painting implementation.
paintForegroundGeneric background painting implementation.
redrawHtmlAllow optimization by replacing VML with HTML.
mixedModeHtmlAllow optimization by replacing VML with HTML.
mixedModeHtmlAllow optimization by replacing VML with HTML.
updateHtmlFiltersAllow optimization by replacing VML with HTML.

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>.

isHtmlAllowed

mxRectangleShape.prototype.isHtmlAllowed = function()

Returns true for non-rounded, non-rotated shapes with no glass gradient.

paintBackground

mxRectangleShape.prototype.paintBackground = function(c,
x,
y,
w,
h)

Generic background painting implementation.

paintForeground

mxRectangleShape.prototype.paintForeground = function(c,
x,
y,
w,
h)

Generic background painting implementation.

redrawHtml

mxRectangleShape.prototype.redrawHtmlShape = function()

Allow optimization by replacing VML with HTML.

mixedModeHtml

Allow optimization by replacing VML with HTML.

mixedModeHtml

Allow optimization by replacing VML with HTML.

updateHtmlFilters

mxRectangleShape.prototype.updateHtmlFilters = function(node)

Allow optimization by replacing VML with HTML.

Base class for all shapes.
function mxRectangleShape(bounds,
fill,
stroke,
strokewidth)
Constructs a new rectangle shape.
mxRectangleShape.prototype.isHtmlAllowed = function()
Returns true for non-rounded, non-rotated shapes with no glass gradient.
mxRectangleShape.prototype.paintBackground = function(c,
x,
y,
w,
h)
Generic background painting implementation.
mxRectangleShape.prototype.paintForeground = function(c,
x,
y,
w,
h)
Generic background painting implementation.
mxRectangleShape.prototype.redrawHtmlShape = function()
Allow optimization by replacing VML with HTML.
mxRectangleShape.prototype.updateHtmlFilters = function(node)
Allow optimization by replacing VML with HTML.
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