mxRhombus

Extends mxShape to implement a rhombus (aka diamond) shape.  This shape is registered under mxConstants.SHAPE_RHOMBUS in mxCellRenderer.

Summary
mxRhombusExtends mxShape to implement a rhombus (aka diamond) shape.
Functions
mxRhombusConstructs a new rhombus shape.
Variables
mixedModeHtmlOverrides the parent value with false, meaning it will draw in VML in mixed Html mode.
preferModeHtmlOverrides the parent value with false, meaning it will draw as VML in prefer Html mode.
Functions
createHtmlCreates and returns the HTML node to represent this shape.
createVmlCreates and returns the VML node(s) to represent this shape.
createSvgCreates and returns the SVG node(s) to represent this shape.
redrawVmlUpdates the VML node(s) to reflect the latest bounds and scale.
redrawHtmlUpdates the HTML node(s) to reflect the latest bounds and scale.
redrawSvgUpdates the SVG node(s) to reflect the latest bounds and scale.
createSvgSpanUpdates the path for the given SVG node.

Functions

mxRhombus

function mxRhombus(bounds,
fill,
stroke,
strokewidth)

Constructs a new rhombus 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>.

Variables

mixedModeHtml

mxRhombus.prototype.mixedModeHtml

Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.

preferModeHtml

mxRhombus.prototype.preferModeHtml

Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.

Functions

createHtml

mxRhombus.prototype.createHtml = function()

Creates and returns the HTML node to represent this shape.

createVml

mxRhombus.prototype.createVml = function()

Creates and returns the VML node(s) to represent this shape.

createSvg

mxRhombus.prototype.createSvg = function()

Creates and returns the SVG node(s) to represent this shape.

redrawVml

mxRhombus.prototype.redrawVml = function()

Updates the VML node(s) to reflect the latest bounds and scale.

redrawHtml

mxRhombus.prototype.redrawHtml = function()

Updates the HTML node(s) to reflect the latest bounds and scale.

redrawSvg

mxRhombus.prototype.redrawSvg = function()

Updates the SVG node(s) to reflect the latest bounds and scale.

createSvgSpan

Updates the path for the given SVG node.

Base class for all shapes.
function mxRhombus(bounds,
fill,
stroke,
strokewidth)
Constructs a new rhombus shape.
mxRhombus.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxRhombus.prototype.preferModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxRhombus.prototype.createHtml = function()
Creates and returns the HTML node to represent this shape.
mxRhombus.prototype.createVml = function()
Creates and returns the VML node(s) to represent this shape.
mxRhombus.prototype.createSvg = function()
Creates and returns the SVG node(s) to represent this shape.
mxRhombus.prototype.redrawVml = function()
Updates the VML node(s) to reflect the latest bounds and scale.
mxRhombus.prototype.redrawHtml = function()
Updates the HTML node(s) to reflect the latest bounds and scale.
mxRhombus.prototype.redrawSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
Name under which mxRhombus 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