<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">com.mxgraph.shape.mxBasicShape</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.shape.mxStencilShape</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="../../../com/mxgraph/shape/mxIShape.html"title="interface in com.mxgraph.shape">mxIShape</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxStencilShape</B><DT>extends <AHREF="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">mxBasicShape</A></DL>
</PRE>
<P>
Stencil shape drawing that takes an XML definition of the shape and renders
it.
See http://projects.gnome.org/dia/custom-shapes for specs. See
http://dia-installer.de/shapes_de.html for shapes.
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<CODE>protected <AHREF="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</A></CODE></FONT></TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#mxStencilShape(org.w3c.dom.Document)">mxStencilShape</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#mxStencilShape(java.lang.String)">mxStencilShape</A></B>(<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>
<BR>
Constructs a new stencil for the given Dia shape description.</TD>
<CODE> <AHREF="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#createElement(org.w3c.dom.Node)">createElement</A></B>(<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>
<BR>
Forms an internal representation of the specified SVG element and returns
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#createShape(org.w3c.dom.Node, com.mxgraph.shape.mxStencilShape.svgShape)">createShape</A></B>(<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>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#getStylenames(java.lang.String)">getStylenames</A></B>(<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>
<BR>
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.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, com.mxgraph.view.mxCellState)">paintShape</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#setBoundingBox(java.awt.geom.Rectangle2D)">setBoundingBox</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#setIconPath(java.lang.String)">setIconPath</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#setName(java.lang.String)">setName</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/shape/mxStencilShape.html#transformShape(java.awt.Shape, double, double, double, double)">transformShape</A></B>(<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>
<BR>
Scales the points composing this shape by the x and y ratios specified</TD>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.shape.<AHREF="../../../com/mxgraph/shape/mxBasicShape.html"title="class in com.mxgraph.shape">mxBasicShape</A></B></TH>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
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><B>shapePath</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="root"><!----></A><H3>
root</H3>
<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><B>root</B></PRE>
<DL>
<DD>Reference to the root node of the Dia shape description.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="rootShape"><!----></A><H3>
rootShape</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</A><B>rootShape</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="boundingBox"><!----></A><H3>
boundingBox</H3>
<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><B>boundingBox</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="name"><!----></A><H3>
name</H3>
<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><B>name</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="iconPath"><!----></A><H3>
iconPath</H3>
<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><B>iconPath</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="cachedTransform"><!----></A><H3>
cachedTransform</H3>
<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><B>cachedTransform</B></PRE>
<DL>
<DD>Transform cached to save instance created. Used to scale the internal
public <B>mxStencilShape</B>(<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>
<DL>
<DD>Constructs a new stencil for the given Dia shape description.
public <B>mxStencilShape</B>(<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>
public void <B>paintShape</B>(<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>
<DD><DL>
<DT><B>Specified by:</B><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><DT><B>Overrides:</B><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></DL>
public void <B>paintNode</B>(<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,
protected void <B>transformShape</B>(<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>
<DL>
<DD>Scales the points composing this shape by the x and y ratios specified
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>shape</CODE> - the shape to scale<DD><CODE>transX</CODE> - the x translation<DD><CODE>transY</CODE> - the y translation<DD><CODE>widthRatio</CODE> - the x co-ordinate scale<DD><CODE>heightRatio</CODE> - the y co-ordinate scale</DL>
public void <B>createShape</B>(<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>
public <AHREF="../../../com/mxgraph/shape/mxStencilShape.svgShape.html"title="class in com.mxgraph.shape">mxStencilShape.svgShape</A><B>createElement</B>(<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>
<DL>
<DD>Forms an internal representation of the specified SVG element and returns
that representation
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the SVG element to represent
<DT><B>Returns:</B><DD>the internal representation of the element, or null if an error
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>><B>getStylenames</B>(<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>
<DL>
<DD>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.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>style</CODE> - String of the form stylename[;stylename][;key=value].
<DT><B>Returns:</B><DD>Returns the stylename from the given formatted string.</DL>
</DD>
</DL>
<HR>
<ANAME="getName()"><!----></A><H3>
getName</H3>
<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><B>getName</B>()</PRE>
public void <B>setName</B>(<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>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getIconPath()"><!----></A><H3>
getIconPath</H3>
<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><B>getIconPath</B>()</PRE>
public void <B>setIconPath</B>(<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>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getBoundingBox()"><!----></A><H3>
getBoundingBox</H3>
<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><B>getBoundingBox</B>()</PRE>
public void <B>setBoundingBox</B>(<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>