mxCylinder

Extends mxShape to implement an cylinder shape.  If a custom shape with one filled area and an overlay path is needed, then this shape’s redrawPath should be overridden.  This shape is registered under mxConstants.SHAPE_CYLINDER in mxCellRenderer.

Summary
mxCylinderExtends mxShape to implement an cylinder shape.
Functions
mxCylinderConstructs a new cylinder shape.
Variables
maxHeightDefines the maximum height of the top and bottom part of the cylinder shape.
svgStrokeToleranceSets stroke tolerance to 0 for SVG.
Functions
paintVertexShapeRedirects to redrawPath for subclasses to work.
getCylinderSizeReturns the cylinder size.
redrawPathDraws the path for this shape.

Functions

mxCylinder

function mxCylinder(bounds,
fill,
stroke,
strokewidth)

Constructs a new cylinder 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

maxHeight

mxCylinder.prototype.maxHeight

Defines the maximum height of the top and bottom part of the cylinder shape.

svgStrokeTolerance

mxCylinder.prototype.svgStrokeTolerance

Sets stroke tolerance to 0 for SVG.

Functions

paintVertexShape

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

Redirects to redrawPath for subclasses to work.

getCylinderSize

mxCylinder.prototype.getCylinderSize = function(x,
y,
w,
h)

Returns the cylinder size.

redrawPath

mxCylinder.prototype.redrawPath = function(c,
x,
y,
w,
h,
isForeground)

Draws the path for this shape.

Base class for all shapes.
function mxCylinder(bounds,
fill,
stroke,
strokewidth)
Constructs a new cylinder shape.
mxCylinder.prototype.maxHeight
Defines the maximum height of the top and bottom part of the cylinder shape.
mxCylinder.prototype.svgStrokeTolerance
Sets stroke tolerance to 0 for SVG.
mxCylinder.prototype.paintVertexShape = function(c,
x,
y,
w,
h)
Redirects to redrawPath for subclasses to work.
mxCylinder.prototype.getCylinderSize = function(x,
y,
w,
h)
Returns the cylinder size.
mxCylinder.prototype.redrawPath = function(c,
x,
y,
w,
h,
isForeground)
Draws the path for this shape.
SHAPE_CYLINDER: 'cylinder'
Name under which mxCylinder 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