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.
paintVertexShapeGeneric painting implementation.

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

paintVertexShape

mxRhombus.prototype.paintVertexShape = function(c,
x,
y,
w,
h)

Generic painting implementation.

Base class for all shapes.
function mxRhombus(bounds,
fill,
stroke,
strokewidth)
Constructs a new rhombus shape.
mxRhombus.prototype.paintVertexShape = function(c,
x,
y,
w,
h)
Generic painting implementation.
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