<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxStencilShape"></a>mxStencilShape</h1><divclass=CBody><p>Implements a shape based on a <ahref="mxStencil-js.html#mxStencil"class=LClassid=link19onMouseOver="ShowTip(event, 'tt1', 'link19')"onMouseOut="HideTip('tt1')">mxStencil</a>.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxStencilShape">mxStencilShape</a></td><tdclass=SDescription>Implements a shape based on a <ahref="mxStencil-js.html#mxStencil"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxStencil</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxStencilShape.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.mxStencilShape"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxStencilShape</a></td><tdclass=SDescription>Constructs a new generic shape.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxStencilShape.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.mixedModeHtml"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mixedModeHtml</a></td><tdclass=SDescription>Always prefers VML in mixed mode for stencil shapes. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxStencilShape.preferModeHtml"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">preferModeHtml</a></td><tdclass=SDescription>Always prefers VML in prefer HTML mode for stencil shapes. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.stencil"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">stencil</a></td><tdclass=SDescription>Holds the <ahref="mxStencil-js.html#mxStencil"class=LClassid=link6onMouseOver="ShowTip(event, 'tt1', 'link6')"onMouseOut="HideTip('tt1')">mxStencil</a> that defines the shape.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxStencilShape.state"id=link7onMouseOver="ShowTip(event, 'tt6', 'link7')"onMouseOut="HideTip('tt6')">state</a></td><tdclass=SDescription>Holds the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link8onMouseOver="ShowTip(event, 'tt7', 'link8')"onMouseOut="HideTip('tt7')">mxCellState</a> associated with this shape.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.vmlScale"id=link9onMouseOver="ShowTip(event, 'tt8', 'link9')"onMouseOut="HideTip('tt8')">vmlScale</a></td><tdclass=SDescription>Renders VML with a scale of 4.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxStencilShape.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.apply"id=link10onMouseOver="ShowTip(event, 'tt9', 'link10')"onMouseOut="HideTip('tt9')">apply</a></td><tdclass=SDescription>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link11onMouseOver="ShowTip(event, 'tt10', 'link11')"onMouseOut="HideTip('tt10')">mxShape</a> apply to keep a reference to the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link12onMouseOver="ShowTip(event, 'tt7', 'link12')"onMouseOut="HideTip('tt7')">mxCellState</a>.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxStencilShape.createSvg"id=link13onMouseOver="ShowTip(event, 'tt11', 'link13')"onMouseOut="HideTip('tt11')">createSvg</a></td><tdclass=SDescription>Creates and returns the SVG node(s) to represent this shape.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxStencilShape.configureHtmlShape"id=link14onMouseOver="ShowTip(event, 'tt12', 'link14')"onMouseOut=
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.mxStencilShape"></a>mxStencilShape</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxStencilShape(</td><tdclass=PParameternowrap>stencil</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new generic shape.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.mixedModeHtml"></a>mixedModeHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.mixedModeHtml</td></tr></table></blockquote><p>Always prefers VML in mixed mode for stencil shapes. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.preferModeHtml"></a>preferModeHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.preferModeHtml</td></tr></table></blockquote><p>Always prefers VML in prefer HTML mode for stencil shapes. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.stencil"></a>stencil</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.stencil</td></tr></table></blockquote><p>Holds the <ahref="mxStencil-js.html#mxStencil"class=LClassid=link20onMouseOver="ShowTip(event, 'tt1', 'link20')"onMouseOut="HideTip('tt1')">mxStencil</a> that defines the shape.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.state"></a>state</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.state</td></tr></table></blockquote><p>Holds the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link21onMouseOver="ShowTip(event, 'tt7', 'link21')"onMouseOut="HideTip('tt7')">mxCellState</a> associated with this shape.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.vmlScale"></a>vmlScale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.vmlScale</td></tr></table></blockquote><p>Renders VML with a scale of 4.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.apply"></a>apply</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.apply = function(</td><tdclass=PParameternowrap>state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link22onMouseOver="ShowTip(event, 'tt10', 'link22')"onMouseOut="HideTip('tt10')">mxShape</a> apply to keep a reference to the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link23onMouseOver="ShowTip(event, 'tt7', 'link23')"onMouseOut="HideTip('tt7')">mxCellState</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>state</td><tdclass=CDLDescription><ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link24onMouseOver="ShowTip(event, 'tt7', 'link24')"onMouseOut="HideTip('tt7')">mxCellState</a> of the corresponding cell.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.createSvg"></a>createSvg</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.createSvg = function()</td></tr></table></blockquote><p>Creates and returns the SVG node(s) to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.configureHtmlShape"></a>configureHtmlShape</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.configureHtmlShape = function(</td><tdclass=PParameternowrap>node</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Overrides method to set the overflow style to visible.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.createVml"></a>createVml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.createVml = function()</td></tr></table></blockquote><p>Creates and returns the VML node to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.configureVmlShape"></a>configureVmlShape</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.configureVmlShape = function(</td><tdclass=PParameternowrap>node</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Configures the specified VML node by applying the current color, bounds, shadow, opacity etc.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.redraw"></a>redraw</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.redraw = function()</td></tr></table></blockquote><p>Creates and returns the SVG node(s) to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxStencilShape.redrawShape"></a>redrawShape</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.redrawShape = function()</td></tr></table></blockquote><p>Updates the SVG or VML shape.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CClass>Implements a generic shape which is based on a XML node as a description. </div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxStencilShape(</td><tdclass=PParameternowrap>stencil</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new generic shape.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.mixedModeHtml</td></tr></table></blockquote>Always prefers VML in mixed mode for stencil shapes. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.preferModeHtml</td></tr></table></blockquote>Always prefers VML in prefer HTML mode for stencil shapes. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.stencil</td></tr></table></blockquote>Holds the mxStencil that defines the shape.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.state</td></tr></table></blockquote>Holds the mxCellState associated with this shape.</div></div><divclass=CToolTipid="tt7"><divclass=CClass>Represents the current state of a cell in a given mxGraphView.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.vmlScale</td></tr></table></blockquote>Renders VML with a scale of 4.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.apply = function(</td><tdclass=PParameternowrap>state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Extends mxShape apply to keep a reference to the mxCellState.</div></div><divclass=CToolTipid="tt10"><divclass=CClass>Base class for all shapes. </div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.createSvg = function()</td></tr></table></blockquote>Creates and returns the SVG node(s) to represent this shape.</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.configureHtmlShape = function(</td><tdclass=PParameternowrap>node</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Overrides method to set the overflow style to visible.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxStencilShape.prototype.createVml = function()</td></tr></table></blockquote>Creates and returns the VML node to represent this shape.</div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxStencilShape.prototype.configureVmlShape = function(</td><tdclass=PParameternowrap>node</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Configures the specified VML node by applying the c