<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxActor"></a>mxActor</h1><divclass=CBody><p>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link11onMouseOver="ShowTip(event, 'tt1', 'link11')"onMouseOut="HideTip('tt1')">mxShape</a> to implement an actor shape. If a custom shape with one filled area is needed, then this shape’s <ahref="#mxActor.redrawPath"class=LFunctionid=link12onMouseOver="ShowTip(event, 'tt10', 'link12')"onMouseOut="HideTip('tt10')">redrawPath</a> should be overridden.</p><h4class=CHeading>Example</h4><blockquote><preclass="prettyprint">function SampleShape() { }
}</pre></blockquote><p>This shape is registered under <ahref="../util/mxConstants-js.html#mxConstants.SHAPE_ACTOR"class=LVariableid=link13onMouseOver="ShowTip(event, 'tt11', 'link13')"onMouseOut="HideTip('tt11')">mxConstants.SHAPE_ACTOR</a> in <ahref="../view/mxCellRenderer-js.html#mxCellRenderer"class=LClassid=link14onMouseOver="ShowTip(event, 'tt12', 'link14')"onMouseOut="HideTip('tt12')">mxCellRenderer</a>.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxActor">mxActor</a></td><tdclass=SDescription>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxShape</a> to implement an actor shape. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxActor.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.mxActor"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxActor</a></td><tdclass=SDescription>Constructs a new actor shape.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxActor.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.mixedModeHtml"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mixedModeHtml</a></td><tdclass=SDescription>Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxActor.preferModeHtml"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">preferModeHtml</a></td><tdclass=SDescription>Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.vmlScale"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">vmlScale</a></td><tdclass=SDescription>Renders VML with a scale of 2.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxActor.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.createVml"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">createVml</a></td><tdclass=SDescription>Creates and returns the VML node(s) to represent this shape.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxActor.redrawVml"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">redrawVml</a></td><tdclass=SDescription>Updates the VML node(s) to reflect the latest bounds and scale.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.createSvg"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">createSvg</a></td><tdclass=SDescription>Creates and returns the SVG node(s) to represent this shape.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxActor.redrawSvg"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">redrawSvg</a></td><tdclass=SDescription>Updates the SVG node(s) to reflect the latest bounds and scale.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxActor.redrawPath"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">redrawPath</a></td><tdclass=SDescription>Draws the path for this shape. </td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxActor.mxActor"></a>mxActor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxActor(</td><tdclass=PParameternowrap>bounds,</td></tr><tr><td></td><tdclass=PParameternowrap>fill,</td></tr><tr><td></td><tdclass=PParameternowrap>stroke,</td></tr><tr><td></td><tdclass=PParameternowrap>strokewidth</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new actor shape.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>bounds</td><tdclass=CDLDescription><ahref="../util/mxRectangle-js.html#mxRectangle"class=LClassid=link15onMouseOver="ShowTip(event, 'tt13', 'link15')"onMouseOut="HideTip('tt13')">mxRectangle</a> that defines the bounds. This is stored in <ahref="mxShape-js.html#mxShape.bounds"class=LVariableid=link16onMouseOver="ShowTip(event, 'tt14', 'link16')"onMouseOut="HideTip('tt14')">mxShape.bounds</a>.</td></tr><tr><tdclass=CDLEntry>fill</td><tdclass=CDLDescription>String that defines the fill color. This is stored in <fill>.</td></tr><tr><tdclass=CDLEntry>stroke</td><tdclass=CDLDescription>String that defines the stroke color. This is stored in <stroke>.</td></tr><tr><tdclass=CDLEntry>strokewidth</td><tdclass=CDLDescription>Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>.</td></tr></table></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxActor.mixedModeHtml"></a>mixedModeHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.mixedModeHtml</td></tr></table></blockquote><p>Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxActor.preferModeHtml"></a>preferModeHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.preferModeHtml</td></tr></table></blockquote><p>Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxActor.vmlScale"></a>vmlScale</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.vmlScale</td></tr></table></blockquote><p>Renders VML with a scale of 2.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxActor.createVml"></a>createVml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.createVml = function()</td></tr></table></blockquote><p>Creates and returns the VML node(s) to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxActor.redrawVml"></a>redrawVml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.redrawVml = function()</td></tr></table></blockquote><p>Updates the VML node(s) to reflect the latest bounds and scale.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxActor.createSvg"></a>createSvg</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.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="mxActor.redrawSvg"></a>redrawSvg</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.redrawSvg = function()</td></tr></table></blockquote><p>Updates the SVG node(s) to reflect the latest bounds and scale.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxActor.redrawPath"></a>redrawPath</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxActor.prototype.redrawPath = function(</td><tdclass=PParameternowrap>path,</td></tr><tr><td></td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>w,</td></tr><tr><td></td><tdclass=PParameternowrap>h</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws the path for this shape. This method uses the <ahref="../util/mxPath-js.html#mxPath"class=LClassid=link17onMouseOver="ShowTip(event, 'tt15', 'link17')"onMouseOut="HideTip('tt15')">mxPath</a> abstraction to paint the shape for VML and SVG.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CClass>Base class for all shapes. </div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxActor(</td><tdclass=PParameternowrap>bounds,</td></tr><tr><td></td><tdclass=PParameternowrap>fill,</td></tr><tr><td></td><tdclass=PParameternowrap>stroke,</td></tr><tr><td></td><tdclass=PParameternowrap>strokewidth</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new actor shape.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.mixedModeHtml</td></tr></table></blockquote>Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.</div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.preferModeHtml</td></tr></table></blockquote>Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.vmlScale</td></tr></table></blockquote>Renders VML with a scale of 2.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.createVml = function()</td></tr></table></blockquote>Creates and returns the VML node(s) to represent this shape.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.redrawVml = function()</td></tr></table></blockquote>Updates the VML node(s) to reflect the latest bounds and scale.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.createSvg = function()</td></tr></table></blockquote>Creates and returns the SVG node(s) to represent this shape.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxActor.prototype.redrawSvg = function()</td></tr></table></blockquote>Updates the SVG node(s) to reflect the latest bounds and scale.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxActor.prototype.redrawPath = function(</td><tdclass=PParameternowrap>path,</td></tr><tr><td></td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>w,</td></tr><tr><td></td><tdclass=PParameternowrap>h</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Draws the path for this shape. </div></div><divclass=CToolTipid="tt11"><divclass=CVariable>Name under which mxActor is registered in mxCellRenderer. </div></div><divclass=CToolTipid="tt12"><divclass=CClass>Renders cells into a document object model. </div></div><divclass=CToolTipid="tt13"><divclass=CClass>Extends mxPoint to implement a 2-dimensional rectangle with double precision coordinates.</div></div><divclass=CToolTipid="tt14"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxShape.prototype.bounds</td></tr></table></blockquote>Holds the mxRectangle that specifies the bounds of this shape.</div></div><divclass=CToolTipid="tt15"><divclass=CClass>An abstraction for creating VML and SVG paths. </div></div><!--END_