<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">com.mxgraph.shape.mxBasicShape</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.shape.mxStencilShape</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><ahref="../../../com/mxgraph/shape/mxIShape.html"title="interface in com.mxgraph.shape">mxIShape</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxStencilShape</span>
extends <ahref="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">mxBasicShape</a></pre>
<divclass="block">Stencil shape drawing that takes an XML definition of the shape and renders
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="field_summary">
<!---->
</a>
<h3>Field Summary</h3>
<tableclass="overviewSummary"border="0"cellpadding="3"cellspacing="0"summary="Field Summary table, listing fields, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a></code></td>
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/AffineTransform.html?is-external=true"title="class or interface in java.awt.geom">AffineTransform</a></code></td>
<divclass="block">Transform cached to save instance created.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a></code></td>
<divclass="block">Reference to the root node of the Dia shape description.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a></code></td>
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true"title="class or interface in java.awt.geom">GeneralPath</a></code></td>
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#mxStencilShape(org.w3c.dom.Document)">mxStencilShape</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</a> document)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#mxStencilShape(java.lang.String)">mxStencilShape</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> shapeXml)</code>
<divclass="block">Constructs a new stencil for the given Dia shape description.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#createElement(org.w3c.dom.Node)">createElement</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> root)</code>
<divclass="block">Forms an internal representation of the specified SVG element and returns
that representation</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#createShape(org.w3c.dom.Node, com.mxgraph.shape.mxStencilShape.svgShape)">createShape</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> root,
<ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> shape)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a></code></td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colFirst"><code>protected static <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#getStylenames(java.lang.String)">getStylenames</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> style)</code>
<divclass="block">Returns the stylenames in a style of the form stylename[;key=value] or an
empty array if the given style does not contain any stylenames.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#paintNode(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState, com.mxgraph.shape.mxStencilShape.svgShape, double, double)">paintNode</a></strong>(<ahref="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a> canvas,
<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state,
<ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> shape,
double widthRatio,
double heightRatio)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">paintShape</a></strong>(<ahref="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a> canvas,
<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#setBoundingBox(java.awt.geom.Rectangle2D)">setBoundingBox</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> boundingBox)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#setIconPath(java.lang.String)">setIconPath</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> iconPath)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#setName(java.lang.String)">setName</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> name)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/shape/mxStencilShape.html#transformShape(java.awt.Shape, double, double, double, double)">transformShape</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Shape.html?is-external=true"title="class or interface in java.awt">Shape</a> shape,
double transX,
double transY,
double widthRatio,
double heightRatio)</code>
<divclass="block">Scales the points composing this shape by the x and y ratios specified</div>
<h3>Methods inherited from class com.mxgraph.shape.<ahref="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">mxBasicShape</a></h3>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/GeneralPath.html?is-external=true"title="class or interface in java.awt.geom">GeneralPath</a> shapePath</pre>
</li>
</ul>
<aname="root">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>root</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> root</pre>
<divclass="block">Reference to the root node of the Dia shape description.</div>
</li>
</ul>
<aname="rootShape">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>rootShape</h4>
<pre>protected <ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> rootShape</pre>
</li>
</ul>
<aname="boundingBox">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>boundingBox</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> boundingBox</pre>
</li>
</ul>
<aname="name">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>name</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> name</pre>
</li>
</ul>
<aname="iconPath">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>iconPath</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> iconPath</pre>
</li>
</ul>
<aname="cachedTransform">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>cachedTransform</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/AffineTransform.html?is-external=true"title="class or interface in java.awt.geom">AffineTransform</a> cachedTransform</pre>
<divclass="block">Transform cached to save instance created. Used to scale the internal
<pre>public mxStencilShape(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> shapeXml)</pre>
<divclass="block">Constructs a new stencil for the given Dia shape description.</div>
</li>
</ul>
<aname="mxStencilShape(org.w3c.dom.Document)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>mxStencilShape</h4>
<pre>public mxStencilShape(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</a> document)</pre>
<pre>public void paintShape(<ahref="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a> canvas,
<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/shape/mxIShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">paintShape</a></code> in interface <code><ahref="../../../com/mxgraph/shape/mxIShape.html"title="interface in com.mxgraph.shape">mxIShape</a></code></dd>
<dt><strong>Overrides:</strong></dt>
<dd><code><ahref="../../../com/mxgraph/shape/mxBasicShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">paintShape</a></code> in class <code><ahref="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">mxBasicShape</a></code></dd>
<pre>public void paintNode(<ahref="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</a> canvas,
<ahref="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</a> state,
<ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> shape,
<pre>protected void transformShape(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Shape.html?is-external=true"title="class or interface in java.awt">Shape</a> shape,
double transX,
double transY,
double widthRatio,
double heightRatio)</pre>
<divclass="block">Scales the points composing this shape by the x and y ratios specified</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>shape</code> - the shape to scale</dd><dd><code>transX</code> - the x translation</dd><dd><code>transY</code> - the y translation</dd><dd><code>widthRatio</code> - the x co-ordinate scale</dd><dd><code>heightRatio</code> - the y co-ordinate scale</dd></dl>
<pre>public void createShape(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> root,
<ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> shape)</pre>
</li>
</ul>
<aname="createElement(org.w3c.dom.Node)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>createElement</h4>
<pre>public <ahref="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</a> createElement(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> root)</pre>
<divclass="block">Forms an internal representation of the specified SVG element and returns
that representation</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>root</code> - the SVG element to represent</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>the internal representation of the element, or null if an error
occurs</dd></dl>
</li>
</ul>
<aname="getStylenames(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getStylenames</h4>
<pre>protected static <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a>,<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> getStylenames(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> style)</pre>
<divclass="block">Returns the stylenames in a style of the form stylename[;key=value] or an
empty array if the given style does not contain any stylenames.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>style</code> - String of the form stylename[;stylename][;key=value].</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the stylename from the given formatted string.</dd></dl>
</li>
</ul>
<aname="getName()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getName</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> getName()</pre>
</li>
</ul>
<aname="setName(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setName</h4>
<pre>public void setName(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> name)</pre>
</li>
</ul>
<aname="getIconPath()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getIconPath</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> getIconPath()</pre>
</li>
</ul>
<aname="setIconPath(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setIconPath</h4>
<pre>public void setIconPath(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> iconPath)</pre>
</li>
</ul>
<aname="getBoundingBox()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getBoundingBox</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> getBoundingBox()</pre>
<pre>public void setBoundingBox(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/geom/Rectangle2D.html?is-external=true"title="class or interface in java.awt.geom">Rectangle2D</a> boundingBox)</pre>