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
vmlNodesAdds local references to mxShape.vmlNodes.
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.
addPipeSpecifies if a SVG path should be created around the background for better hit detection.
strokedBackgroundSpecifies if the background should be stroked.
maxHeightDefines the maximum height of the top and bottom part of the cylinder shape.
vmlScaleRenders VML with a scale of 2.
Functions
createOverrides the method to make sure the <stroke> is never null.
reconfigureOverrides the method to make sure the <stroke> is applied to the foreground.
createVmlCreates and returns the VML node to represent this shape.
redrawVmlUpdates the VML node(s) to reflect the latest bounds and scale.
createSvgCreates and returns the SVG node(s) to represent this shape.
redrawSvgUpdates the SVG node(s) to reflect the latest bounds and scale.
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

vmlNodes

mxCylinder.prototype.vmlNodes

Adds local references to mxShape.vmlNodes.

mixedModeHtml

mxCylinder.prototype.mixedModeHtml

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

preferModeHtml

mxCylinder.prototype.preferModeHtml

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

addPipe

mxCylinder.prototype.addPipe

Specifies if a SVG path should be created around the background for better hit detection.  Default is false.

strokedBackground

mxCylinder.prototype.strokedBackground

Specifies if the background should be stroked.  Default is true.

maxHeight

mxCylinder.prototype.maxHeight

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

vmlScale

mxCylinder.prototype.vmlScale

Renders VML with a scale of 2.

Functions

create

mxCylinder.prototype.create = function(container)

Overrides the method to make sure the <stroke> is never null.  If it is null is will be assigned the <fill> color.

reconfigure

mxCylinder.prototype.reconfigure = function()

Overrides the method to make sure the <stroke> is applied to the foreground.

createVml

mxCylinder.prototype.createVml = function()

Creates and returns the VML node to represent this shape.

redrawVml

mxCylinder.prototype.redrawVml = function()

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

createSvg

mxCylinder.prototype.createSvg = function()

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

redrawSvg

mxCylinder.prototype.redrawSvg = function()

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

redrawPath

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.

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