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 | |
vmlNodes | Adds local references to mxShape.vmlNodes. |
mixedModeHtml | Overrides the parent value with false, meaning it will draw in VML in mixed Html mode. |
preferModeHtml | Overrides the parent value with false, meaning it will draw as VML in prefer Html mode. |
addPipe | Specifies if a SVG path should be created around the background for better hit detection. |
strokedBackground | Specifies if the background should be stroked. |
maxHeight | Defines the maximum height of the top and bottom part of the cylinder shape. |
vmlScale | Renders VML with a scale of 2. |
Functions | |
create | Overrides the method to make sure the <stroke> is never null. |
reconfigure | Overrides the method to make sure the <stroke> is applied to the foreground. |
createVml | Creates and returns the VML node to represent this shape. |
redrawVml | Updates the VML node(s) to reflect the latest bounds and scale. |
createSvg | Creates and returns the SVG node(s) to represent this shape. |
redrawSvg | Updates the SVG node(s) to reflect the latest bounds and scale. |
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>. |
mxCylinder.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
mxCylinder.prototype.redrawPath = function( path, x, y, w, h, isForeground )
Draws the path for this shape. This method uses the mxPath abstraction to paint the shape for VML and SVG.
Constructs a new cylinder shape.
function mxCylinder( bounds, fill, stroke, strokewidth )
Adds local references to mxShape.vmlNodes.
mxCylinder.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxShape.prototype.vmlNodes
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxCylinder.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxCylinder.prototype.preferModeHtml
Specifies if a SVG path should be created around the background for better hit detection.
mxCylinder.prototype.addPipe
Specifies if the background should be stroked.
mxCylinder.prototype.strokedBackground
Defines the maximum height of the top and bottom part of the cylinder shape.
mxCylinder.prototype.maxHeight
Renders VML with a scale of 2.
mxCylinder.prototype.vmlScale
Overrides the method to make sure the stroke is never null.
mxCylinder.prototype.create = function( container )
Overrides the method to make sure the stroke is applied to the foreground.
mxCylinder.prototype.reconfigure = function()
Creates and returns the VML node to represent this shape.
mxCylinder.prototype.createVml = function()
Updates the VML node(s) to reflect the latest bounds and scale.
mxCylinder.prototype.redrawVml = function()
Creates and returns the SVG node(s) to represent this shape.
mxCylinder.prototype.createSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxCylinder.prototype.redrawSvg = function()
Draws the path for this shape.
mxCylinder.prototype.redrawPath = function( path, x, y, w, h, isForeground )
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds