mxStencilShape

Implements a shape based on a mxStencil.

Summary
mxStencilShapeImplements a shape based on a mxStencil.
Functions
mxStencilShapeConstructs a new generic shape.
Variables
mixedModeHtmlAlways prefers VML in mixed mode for stencil shapes.
preferModeHtmlAlways prefers VML in prefer HTML mode for stencil shapes.
stencilHolds the mxStencil that defines the shape.
stateHolds the mxCellState associated with this shape.
vmlScaleRenders VML with a scale of 4.
Functions
applyExtends mxShape apply to keep a reference to the mxCellState.
createSvgCreates and returns the SVG node(s) to represent this shape.
configureHtmlShapeOverrides method to set the overflow style to visible.
createVmlCreates and returns the VML node to represent this shape.
configureVmlShapeConfigures the specified VML node by applying the current color, bounds, shadow, opacity etc.
redrawCreates and returns the SVG node(s) to represent this shape.
redrawShapeUpdates the SVG or VML shape.

Functions

mxStencilShape

function mxStencilShape(stencil)

Constructs a new generic shape.

Variables

mixedModeHtml

mxStencilShape.prototype.mixedModeHtml

Always prefers VML in mixed mode for stencil shapes.  Default is false.

preferModeHtml

mxStencilShape.prototype.preferModeHtml

Always prefers VML in prefer HTML mode for stencil shapes.  Default is false.

stencil

mxStencilShape.prototype.stencil

Holds the mxStencil that defines the shape.

state

mxStencilShape.prototype.state

Holds the mxCellState associated with this shape.

vmlScale

mxStencilShape.prototype.vmlScale

Renders VML with a scale of 4.

Functions

apply

mxStencilShape.prototype.apply = function(state)

Extends mxShape apply to keep a reference to the mxCellState.

Parameters

statemxCellState of the corresponding cell.

createSvg

mxStencilShape.prototype.createSvg = function()

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

configureHtmlShape

mxStencilShape.prototype.configureHtmlShape = function(node)

Overrides method to set the overflow style to visible.

createVml

mxStencilShape.prototype.createVml = function()

Creates and returns the VML node to represent this shape.

configureVmlShape

mxStencilShape.prototype.configureVmlShape = function(node)

Configures the specified VML node by applying the current color, bounds, shadow, opacity etc.

redraw

mxStencilShape.prototype.redraw = function()

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

redrawShape

mxStencilShape.prototype.redrawShape = function()

Updates the SVG or VML shape.

Implements a generic shape which is based on a XML node as a description.
function mxStencilShape(stencil)
Constructs a new generic shape.
mxStencilShape.prototype.mixedModeHtml
Always prefers VML in mixed mode for stencil shapes.
mxStencilShape.prototype.preferModeHtml
Always prefers VML in prefer HTML mode for stencil shapes.
mxStencilShape.prototype.stencil
Holds the mxStencil that defines the shape.
mxStencilShape.prototype.state
Holds the mxCellState associated with this shape.
Represents the current state of a cell in a given mxGraphView.
mxStencilShape.prototype.vmlScale
Renders VML with a scale of 4.
mxStencilShape.prototype.apply = function(state)
Extends mxShape apply to keep a reference to the mxCellState.
Base class for all shapes.
mxStencilShape.prototype.createSvg = function()
Creates and returns the SVG node(s) to represent this shape.
mxStencilShape.prototype.configureHtmlShape = function(node)
Overrides method to set the overflow style to visible.
mxStencilShape.prototype.createVml = function()
Creates and returns the VML node to represent this shape.
mxStencilShape.prototype.configureVmlShape = function(node)
Configures the specified VML node by applying the current color, bounds, shadow, opacity etc.
mxStencilShape.prototype.redraw = function()
Creates and returns the SVG node(s) to represent this shape.
mxStencilShape.prototype.redrawShape = function()
Updates the SVG or VML shape.
Close