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.
mxCylinder | Extends mxShape to implement an cylinder shape. |
Functions | |
mxCylinder | Constructs a new cylinder shape. |
Variables | |
maxHeight | Defines the maximum height of the top and bottom part of the cylinder shape. |
svgStrokeTolerance | Sets stroke tolerance to 0 for SVG. |
Functions | |
paintVertexShape | Redirects to redrawPath for subclasses to work. |
getCylinderSize | Returns the cylinder size. |
redrawPath | Draws the path for this shape. |
function mxCylinder( bounds, fill, stroke, strokewidth )
Constructs a new cylinder shape.
bounds | mxRectangle that defines the bounds. This is stored in mxShape.bounds. |
fill | String that defines the fill color. This is stored in <fill>. |
stroke | String that defines the stroke color. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
Constructs a new cylinder shape.
function mxCylinder( bounds, fill, stroke, strokewidth )
Defines the maximum height of the top and bottom part of the cylinder shape.
mxCylinder.prototype.maxHeight
Sets stroke tolerance to 0 for SVG.
mxCylinder.prototype.svgStrokeTolerance
Redirects to redrawPath for subclasses to work.
mxCylinder.prototype.paintVertexShape = function( c, x, y, w, h )
Returns the cylinder size.
mxCylinder.prototype.getCylinderSize = function( x, y, w, h )
Draws the path for this shape.
mxCylinder.prototype.redrawPath = function( c, x, y, w, h, isForeground )
Name under which mxCylinder is registered in mxCellRenderer.
SHAPE_CYLINDER: 'cylinder'
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds