<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxLabel"></a>mxLabel</h1><divclass=CBody><p>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link16onMouseOver="ShowTip(event, 'tt1', 'link16')"onMouseOut="HideTip('tt1')">mxShape</a> to implement an image shape with a label. This shape is registered under <ahref="../util/mxConstants-js.html#mxConstants.SHAPE_LABEL"class=LVariableid=link17onMouseOver="ShowTip(event, 'tt16', 'link17')"onMouseOut="HideTip('tt16')">mxConstants.SHAPE_LABEL</a> in <ahref="../view/mxCellRenderer-js.html#mxCellRenderer"class=LClassid=link18onMouseOver="ShowTip(event, 'tt17', 'link18')"onMouseOut="HideTip('tt17')">mxCellRenderer</a>.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxLabel">mxLabel</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 image shape with a label. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxLabel.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.mxLabel"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxLabel</a></td><tdclass=SDescription>Constructs a new label shape.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxLabel.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.imageSize"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">imageSize</a></td><tdclass=SDescription>Default width and height for the image. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxLabel.spacing"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">spacing</a></td><tdclass=SDescription>Default value for image spacing. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.indicatorSize"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">indicatorSize</a></td><tdclass=SDescription>Default width and height for the indicicator. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxLabel.indicatorSpacing"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">indicatorSpacing</a></td><tdclass=SDescription>Default spacing between image and indicator. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxLabel.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.init"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">init</a></td><tdclass=SDescription>Initializes the shape and the <indicator>.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxLabel.redraw"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">redraw</a></td><tdclass=SDescription>Reconfigures this shape. </td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.isHtmlAllowed"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">isHtmlAllowed</a></td><tdclass=SDescription>Returns true for non-rounded, non-rotated shapes with no glass gradient and no indicator shape.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxLabel.paintForeground"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">paintForeground</a></td><tdclass=SDescription>Generic background painting implementation.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxLabel.paintImage"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">pain
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxLabel.mxLabel"></a>mxLabel</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxLabel(</td><tdclass="PParameter prettyprint "nowrap>bounds,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>fill,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>stroke,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>strokewidth</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new label 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=link19onMouseOver="ShowTip(event, 'tt18', 'link19')"onMouseOut="HideTip('tt18')">mxRectangle</a> that defines the bounds. This is stored in <ahref="mxShape-js.html#mxShape.bounds"class=LVariableid=link20onMouseOver="ShowTip(event, 'tt19', 'link20')"onMouseOut="HideTip('tt19')">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="mxLabel.imageSize"></a>imageSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.imageSize</td></tr></table></blockquote><p>Default width and height for the image. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_IMAGESIZE"class=LVariableid=link21onMouseOver="ShowTip(event, 'tt20', 'link21')"onMouseOut="HideTip('tt20')">mxConstants.DEFAULT_IMAGESIZE</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxLabel.spacing"></a>spacing</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.spacing</td></tr></table></blockquote><p>Default value for image spacing. Default is 2.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxLabel.indicatorSize"></a>indicatorSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.indicatorSize</td></tr></table></blockquote><p>Default width and height for the indicicator. Default is 10.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxLabel.indicatorSpacing"></a>indicatorSpacing</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.indicatorSpacing</td></tr></table></blockquote><p>Default spacing between image and indicator. Default is 2.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxLabel.init"></a>init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxLabel.prototype.init = function(</td><tdclass="PParameter prettyprint "nowrap>container</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Initializes the shape and the <indicator>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxLabel.redraw"></a>redraw</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.redraw = function()</td></tr></table></blockquote><p>Reconfigures this shape. This will update the colors of the indicator and reconfigure it if required.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxLabel.isHtmlAllowed"></a>isHtmlAllowed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.isHtmlAllowed = function()</td></tr></table></blockquote><p>Returns true for non-rounded, non-rotated shapes with no glass gradient and no indicator shape.</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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxLabel(</td><tdclass="PParameter prettyprint "nowrap>bounds,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>fill,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>stroke,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>strokewidth</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new label shape.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.imageSize</td></tr></table></blockquote>Default width and height for the image. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.spacing</td></tr></table></blockquote>Default value for image spacing. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.indicatorSize</td></tr></table></blockquote>Default width and height for the indicicator. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.indicatorSpacing</td></tr></table></blockquote>Default spacing between image and indicator. </div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxLabel.prototype.init = function(</td><tdclass="PParameter prettyprint "nowrap>container</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Initializes the shape and the indicator.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.redraw = function()</td></tr></table></blockquote>Reconfigures this shape. </div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxLabel.prototype.isHtmlAllowed = function()</td></tr></table></blockquote>Returns true for non-rounded, non-rotated shapes with no glass gradient and no indicator shape.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxLabel.prototype.paintForeground = function(</td><tdclass="PParameter prettyprint "nowrap>c,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>y,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>w,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>h</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Generic background painting implementation.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxLabel.prototype.paintImage = function(</td><tdclass="PParameter prettyprint "nowrap>c,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>x,</td></tr><tr><td></td><tdclass="PParameterprettypri