<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxText"></a>mxText</h1><divclass=CBody><p>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link34onMouseOver="ShowTip(event, 'tt1', 'link34')"onMouseOut="HideTip('tt1')">mxShape</a> to implement a text shape. To change vertical text from bottom to top to top to bottom, the following code can be used:</p><blockquote><preclass="prettyprint">mxText.prototype.ieVerticalFilter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=1)';
};</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxText">mxText</a></td><tdclass=SDescription>Extends <ahref="mxShape-js.html#mxShape"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxShape</a> to implement a text shape. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxText.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.mxText"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxText</a></td><tdclass=SDescription>Constructs a new text shape.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxText.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.replaceLinefeeds"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">replaceLinefeeds</a></td><tdclass=SDescription>Specifies if linefeeds in HTML labels should be replaced with BR tags. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxText.ieVerticalFilter"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">ieVerticalFilter</a></td><tdclass=SDescription>Holds the filter definition for vertical text in IE. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.verticalTextDegree"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">verticalTextDegree</a></td><tdclass=SDescription>Specifies the degree to be used for vertical text. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxText.forceIgnoreStringSize"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">forceIgnoreStringSize</a></td><tdclass=SDescription>Specifies if the string size should always be ignored. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxText.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.isStyleSet"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">isStyleSet</a></td><tdclass=SDescription>Returns true if the given font style (bold, italic etc) is true in this shape’s fontStyle.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxText.create"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">create</a></td><tdclass=SDescription>Override to create HTML regardless of gradient and rounded property.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.updateBoundingBox"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">updateBoundingBox</a></td><tdclass=SDescription>Overrides method to do nothing.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxText.createForeignObject"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">createForeignObject</a></td><tdclass=SDescription>Creates and returns the foreignObject node to represent this shape.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.createHtml"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">createHtml</a></td><tdclass=SDescription>Creates and returns the HTML node to represent this shape.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxText.createVml"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">createVml</a></td><tdclass=SDescription>Creates and returns the VML node(s) to represent this shape.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxText.redrawHtml"id=link13onMouseOver="ShowTip(event, 'tt13', 'link13')"onMouseOut="HideTip('tt13')">redraw
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.mxText"></a>mxText</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxText(</td><tdclass=PParameternowrap>value,</td></tr><tr><td></td><tdclass=PParameternowrap>bounds,</td></tr><tr><td></td><tdclass=PParameternowrap>align,</td></tr><tr><td></td><tdclass=PParameternowrap>valign,</td></tr><tr><td></td><tdclass=PParameternowrap>color,</td></tr><tr><td></td><tdclass=PParameternowrap>family,</td></tr><tr><td></td><tdclass=PParameternowrap>size,</td></tr><tr><td></td><tdclass=PParameternowrap>fontStyle,</td></tr><tr><td></td><tdclass=PParameternowrap>spacing,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingTop,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingRight,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingBottom,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingLeft,</td></tr><tr><td></td><tdclass=PParameternowrap>horizontal,</td></tr><tr><td></td><tdclass=PParameternowrap>background,</td></tr><tr><td></td><tdclass=PParameternowrap>border,</td></tr><tr><td></td><tdclass=PParameternowrap>wrap,</td></tr><tr><td></td><tdclass=PParameternowrap>clipped,</td></tr><tr><td></td><tdclass=PParameternowrap>overflow,</td></tr><tr><td></td><tdclass=PParameternowrap>labelPadding</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new text shape.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>String that represents the text to be displayed. This is stored in <value>.</td></tr><tr><tdclass=CDLEntry>bounds</td><tdclass=CDLDescription><ahref="../util/mxRectangle-js.html#mxRectangle"class=LClassid=link35onMouseOver="ShowTip(event, 'tt33', 'link35')"onMouseOut="HideTip('tt33')">mxRectangle</a> that defines the bounds. This is stored in <ahref="mxShape-js.html#mxShape.bounds"class=LVariableid=link36onMouseOver="ShowTip(event, 'tt34', 'link36')"onMouseOut="HideTip('tt34')">mxShape.bounds</a>.</td></tr><tr><tdclass=CDLEntry>align</td><tdclass=CDLDescription>Specifies the horizontal alignment. Default is ‘’. This is stored in <align>.</td></tr><tr><tdclass=CDLEntry>valign</td><tdclass=CDLDescription>Specifies the vertical alignment. Default is ‘’. This is stored in <valign>.</td></tr><tr><tdclass=CDLEntry>color</td><tdclass=CDLDescription>String that specifies the text color. Default is ‘black’. This is stored in <color>.</td></tr><tr><tdclass=CDLEntry>family</td><tdclass=CDLDescription>String that specifies the font family. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_FONTFAMILY"class=LVariableid=link37onMouseOver="ShowTip(event, 'tt35', 'link37')"onMouseOut="HideTip('tt35')">mxConstants.DEFAULT_FONTFAMILY</a>. This is stored in <family>.</td></tr><tr><tdclass=CDLEntry>size</td><tdclass=CDLDescription>Integer that specifies the font size. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_FONTSIZE"class=LVariableid=link38onMouseOver="ShowTip(event, 'tt36', 'link38')"onMouseOut="HideTip('tt36')">mxConstants.DEFAULT_FONTSIZE</a>. This is stored in <size>.</td></tr><tr><tdclass=CDLEntry>fontStyle</td><tdclass=CDLDescription>Specifies the font style. Default is 0. This is stored in <fontStyle>.</td></tr><tr><tdclass=CDLEntry>spacing</td><tdclass=CDLDescription>Integer that specifies the global spacing. Default is 2. This is stored in <spacing>.</td></tr><tr><tdclass=CDLEntry>spacingTop</td><tdclass=CDLDescription>Integer that specifies the top spacing. Default is 0. The sum of the spacing and this is stored in <spacingTop
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxText.replaceLinefeeds"></a>replaceLinefeeds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.replaceLinefeeds</td></tr></table></blockquote><p>Specifies if linefeeds in HTML labels should be replaced with BR tags. Default is true. This is also used in <ahref="../util/mxImageExport-js.html#mxImageExport"class=LClassid=link39onMouseOver="ShowTip(event, 'tt37', 'link39')"onMouseOut="HideTip('tt37')">mxImageExport</a> to export the label.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxText.ieVerticalFilter"></a>ieVerticalFilter</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.ieVerticalFilter</td></tr></table></blockquote><p>Holds the filter definition for vertical text in IE. Default is progid:DXImageTransform.Microsoft.BasicImage(rotation=3).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxText.verticalTextDegree"></a>verticalTextDegree</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.verticalTextDegree</td></tr></table></blockquote><p>Specifies the degree to be used for vertical text. Default is -90.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxText.forceIgnoreStringSize"></a>forceIgnoreStringSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.forceIgnoreStringSize</td></tr></table></blockquote><p>Specifies if the string size should always be ignored. Default is false. This can be used to improve rendering speed in slow browsers. This can be used if all labels are smaller than the vertex width. String sizes are ignored by default for labels which are left aligned with no background and border or if the overflow is set to fill.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.isStyleSet"></a>isStyleSet</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.isStyleSet = function(</td><tdclass=PParameternowrap>style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given font style (bold, italic etc) is true in this shape’s fontStyle.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>Fontstyle constant from <ahref="../util/mxConstants-js.html#mxConstants"class=LClassid=link40onMouseOver="ShowTip(event, 'tt38', 'link40')"onMouseOut="HideTip('tt38')">mxConstants</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.create"></a>create</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.create = function(</td><tdclass=PParameternowrap>container</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Override to create HTML regardless of gradient and rounded property.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.updateBoundingBox"></a>updateBoundingBox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.updateBoundingBox = function()</td></tr></table></blockquote><p>Overrides method to do nothing.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createForeignObject"></a>createForeignObject</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.createForeignObject = function()</td></tr></table></blockquote><p>Creates and returns the foreignObject node to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createHtml"></a>createHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.createHtml = function()</td></tr></table></blockquote><p>Creates and returns the HTML node to represent this shape.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createVml"></a>createVml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.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="mxText.redrawHtml"></a>redrawHtml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.redrawHtml = function()</td></tr></table></blockquote><p>Updates the HTML node(s) to reflect the latest bounds and scale.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.getOffset"></a>getOffset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.getOffset = function(</td><tdclass=PParameternowrap>outerWidth,</td></tr><tr><td></td><tdclass=PParameternowrap>outerHeight,</td></tr><tr><td></td><tdclass=PParameternowrap>actualWidth,</td></tr><tr><td></td><tdclass=PParameternowrap>actualHeight,</td></tr><tr><td></td><tdclass=PParameternowrap>horizontal</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the description of the space between the <bounds> size and the label size as an <ahref="../util/mxPoint-js.html#mxPoint"class=LClassid=link41onMouseOver="ShowTip(event, 'tt15', 'link41')"onMouseOut="HideTip('tt15')">mxPoint</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.getSpacing"></a>getSpacing</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.getSpacing = function(</td><tdclass=PParameternowrap>horizontal</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the spacing as an <ahref="../util/mxPoint-js.html#mxPoint"class=LClassid=link42onMouseOver="ShowTip(event, 'tt15', 'link42')"onMouseOut="HideTip('tt15')">mxPoint</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createHtmlTable"></a>createHtmlTable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.createHtmlTable = function()</td></tr></table></blockquote><p>Creates and returns a HTML table with a table body and a single row with a single cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.updateTableStyle"></a>updateTableStyle</h3><divclass=CBody><p>Updates the style of the given HTML table and the value within the table.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.getTableSize"></a>getTableSize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.getTableSize = function(</td><tdclass=PParameternowrap>table</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the actual size of the table.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.updateTableWidth"></a>updateTableWidth</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.updateTableWidth = function(</td><tdclass=PParameternowrap>table</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the width of the given HTML table.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.redrawVml"></a>redrawVml</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.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="mxText.redrawTextbox"></a>redrawTextbox</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.redrawTextbox = function()</td></tr></table></blockquote><p>Redraws the textbox for this text. This is only used in IE in exact rendering mode.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.redrawHtmlTable"></a>redrawHtmlTable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.redrawHtmlTable = function()</td></tr></table></blockquote><p>Redraws the HTML table. This is used for HTML labels in all modes except exact in IE and if NO_FO is false for the browser.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.getVerticalOffset"></a>getVerticalOffset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.getVerticalOffset = function(</td><tdclass=PParameternowrap>offset</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the factors for the offset to be added to the text vertical text rotation. This implementation returns (offset.y, -offset.x).</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.redrawForeignObject"></a>redrawForeignObject</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.redrawForeignObject = function()</td></tr></table></blockquote><p>Redraws the foreign object for this text.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createSvg"></a>createSvg</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.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="mxText.redrawSvg"></a>redrawSvg</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.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="mxText.redrawSvgTextNodes"></a>redrawSvgTextNodes</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.redrawSvgTextNodes = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>dy</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook to update the position of the SVG text nodes.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.releaseSvgClip"></a>releaseSvgClip</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.releaseSvgClip = function()</td></tr></table></blockquote><p>Releases the given SVG clip removing it from the DOM if required.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.getSvgClip"></a>getSvgClip</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.getSvgClip = function(</td><tdclass=PParameternowrap>svg,</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>Returns a new or existing SVG clip path which is a descendant of the given SVG node with a unique ID.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.isEmptyString"></a>isEmptyString</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.isEmptyString = function(</td><tdclass=PParameternowrap>text</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given string is empty or contains only whitespace.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.createSvgSpan"></a>createSvgSpan</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.createSvgSpan = function(</td><tdclass=PParameternowrap>text</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Creats an SVG tspan node for the given text.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxText.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.destroy = function()</td></tr></table></blockquote><p>Extends destroy to remove any allocated SVG clips.</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>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 mxText(</td><tdclass=PParameternowrap>value,</td></tr><tr><td></td><tdclass=PParameternowrap>bounds,</td></tr><tr><td></td><tdclass=PParameternowrap>align,</td></tr><tr><td></td><tdclass=PParameternowrap>valign,</td></tr><tr><td></td><tdclass=PParameternowrap>color,</td></tr><tr><td></td><tdclass=PParameternowrap>family,</td></tr><tr><td></td><tdclass=PParameternowrap>size,</td></tr><tr><td></td><tdclass=PParameternowrap>fontStyle,</td></tr><tr><td></td><tdclass=PParameternowrap>spacing,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingTop,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingRight,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingBottom,</td></tr><tr><td></td><tdclass=PParameternowrap>spacingLeft,</td></tr><tr><td></td><tdclass=PParameternowrap>horizontal,</td></tr><tr><td></td><tdclass=PParameternowrap>background,</td></tr><tr><td></td><tdclass=PParameternowrap>border,</td></tr><tr><td></td><tdclass=PParameternowrap>wrap,</td></tr><tr><td></td><tdclass=PParameternowrap>clipped,</td></tr><tr><td></td><tdclass=PParameternowrap>overflow,</td></tr><tr><td></td><tdclass=PParameternowrap>labelPadding</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new text shape.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.replaceLinefeeds</td></tr></table></blockquote>Specifies if linefeeds in HTML labels should be replaced with BR tags. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.ieVerticalFilter</td></tr></table></blockquote>Holds the filter definition for vertical text in IE. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.verticalTextDegree</td></tr></table></blockquote>Specifies the degree to be used for vertical text. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.forceIgnoreStringSize</td></tr></table></blockquote>Specifies if the string size should always be ignored. </div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.isStyleSet = function(</td><tdclass=PParameternowrap>style</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns true if the given font style (bold, italic etc) is true in this shape’s fontStyle.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxText.prototype.create = function(</td><tdclass=PParameternowrap>container</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Override to create HTML regardless of gradient and rounded property.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxText.prototype.updateBoundingBox = function()</td></tr></table></blockquote>Overrides method to do nothing.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding