maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxSt...

768 lines
39 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>mxGraph: com::mxgraph::mxStencil Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><b>com</b>::<b>mxgraph</b>::<a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html">mxStencil</a>
</div>
</div>
<div class="contents">
<h1>com::mxgraph::mxStencil Class Reference</h1><!-- doxytag: class="com::mxgraph::mxStencil" -->
<p>Implements a stencil for the given XML definition. This class implements the <a class="el" href="classcom_1_1mxgraph_1_1mxGraph.html" title="Implements a graph object that allows to create diagrams from a graph model and stylesheet...">mxGraph</a> stencil schema.
<a href="#_details">More...</a></p>
<p><a href="classcom_1_1mxgraph_1_1mxStencil-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#aca520171898bbe4c3086c87f84793a7a">mxStencil</a> (XmlElement description)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a new stencil for the given <a class="el" href="classcom_1_1mxgraph_1_1mxGraph.html" title="Implements a graph object that allows to create diagrams from a graph model and stylesheet...">mxGraph</a> shape description. <a href="#aca520171898bbe4c3086c87f84793a7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ac90b17ce50b78ee5966c399a9ec374db">PaintShape</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html">mxGdiCanvas</a> gc, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Paints the stencil for the given state. <a href="#ac90b17ce50b78ee5966c399a9ec374db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ae038ad2567e18841f53e1c526dc8d732">DrawShape</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a> canvas, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> bounds, bool background)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a58bc6c170859115aaa5dee655934da71">EvaluateAttribute</a> (XmlElement elt, string attribute, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gets the attribute for the given name from the given node. If the attribute. <a href="#a58bc6c170859115aaa5dee655934da71"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a8522152762d9f475a48a3169d01b4229">CreateCanvas</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html">mxGdiCanvas</a> gc)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates the canvas for rendering the stencil. <a href="#a8522152762d9f475a48a3169d01b4229"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a43b08f91f8143d818d982a91ff075fe9">DrawShadow</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a> canvas, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state, double rotation, bool flipH, bool flipV, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> bounds, double alpha, bool filled)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws the shadow. <a href="#a43b08f91f8143d818d982a91ff075fe9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a7dc9504d6a515d7f348c95464deb95e0">ComputeAspect</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> bounds, string direction)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a rectangle that contains the offset in x and y and the horizontal. <a href="#a7dc9504d6a515d7f348c95464deb95e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a27e9d15a0078eb7864efa8b394f350b9">DrawElement</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a> canvas, <a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a> state, XmlElement node, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a99acd943034d5503bf048c2574a431d0">aspect</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#aee36f48dc2d2bba4c6e2a053dfba80a7">GetInt</a> (XmlElement elt, string attribute, int defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ad642b6a5d0fce4c0ca2c4b40e5f87a3b">GetDouble</a> (XmlElement elt, String attribute)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a800889e108a399ee0cdfa16489718296">GetDouble</a> (XmlElement elt, String attribute, double defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a26ab5c8df26dfd12e3535a4a0533d63a">GetString</a> (XmlElement elt, string attribute, string defaultValue)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the given attribute or the default value. <a href="#a26ab5c8df26dfd12e3535a4a0533d63a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#addff93bc760640f2c47b5c06c13f7dc4">ParseDescription</a> ()</td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XmlElement&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af121843569f520d2a1d165d4e9da41f7">desc</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the top-level node of the stencil definition. <a href="#af121843569f520d2a1d165d4e9da41f7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a99acd943034d5503bf048c2574a431d0">aspect</a> = null</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the aspect of the shape. Default is "auto". <a href="#a99acd943034d5503bf048c2574a431d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af575fda1428e1ed270cf88e2cb009a91">w0</a> = 100</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the width of the shape. Default is 100. <a href="#af575fda1428e1ed270cf88e2cb009a91"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ab119e79baf1f2fd94de73f2e53cfde62">h0</a> = 100</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the height of the shape. Default is 100. <a href="#ab119e79baf1f2fd94de73f2e53cfde62"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XmlElement&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ad5bc3a0e9ac020f3def014201dcafe9c">bgNode</a> = null</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the XML node with the stencil description. <a href="#ad5bc3a0e9ac020f3def014201dcafe9c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XmlElement&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ae4a6453b92f7c388e21662116bdc4965">fgNode</a> = null</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the XML node with the stencil description. <a href="#ae4a6453b92f7c388e21662116bdc4965"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a5353f336150a306f765c11d19d3a576a">strokewidth</a> = null</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the strokewidth direction from the description. <a href="#a5353f336150a306f765c11d19d3a576a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af9ada374b25ca21d16765642e32515b1">lastMoveX</a> = 0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the last x-position of the cursor. <a href="#af9ada374b25ca21d16765642e32515b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a37b57288c72c862106e9f4ed7fbc46b0">lastMoveY</a> = 0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Holds the last y-position of the cursor. <a href="#a37b57288c72c862106e9f4ed7fbc46b0"></a><br/></td></tr>
<tr><td colspan="2"><h2>Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XmlElement&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a31e0ce00ec08d00aef2059e5fc5504fa">Description</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets or returns the description. <a href="#a31e0ce00ec08d00aef2059e5fc5504fa"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Implements a stencil for the given XML definition. This class implements the <a class="el" href="classcom_1_1mxgraph_1_1mxGraph.html" title="Implements a graph object that allows to create diagrams from a graph model and stylesheet...">mxGraph</a> stencil schema. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aca520171898bbe4c3086c87f84793a7a"></a><!-- doxytag: member="com::mxgraph::mxStencil::mxStencil" ref="aca520171898bbe4c3086c87f84793a7a" args="(XmlElement description)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">com::mxgraph::mxStencil::mxStencil </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>description</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new stencil for the given <a class="el" href="classcom_1_1mxgraph_1_1mxGraph.html" title="Implements a graph object that allows to create diagrams from a graph model and stylesheet...">mxGraph</a> shape description. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>description</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7dc9504d6a515d7f348c95464deb95e0"></a><!-- doxytag: member="com::mxgraph::mxStencil::ComputeAspect" ref="a7dc9504d6a515d7f348c95464deb95e0" args="(mxCellState state, mxRectangle bounds, string direction)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxStencil::ComputeAspect </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td>
<td class="paramname"> <em>bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>direction</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a rectangle that contains the offset in x and y and the horizontal. </p>
<p>and vertical scale in width and height used to draw this shape inside the given rectangle. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>bounds</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>direction</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a8522152762d9f475a48a3169d01b4229"></a><!-- doxytag: member="com::mxgraph::mxStencil::CreateCanvas" ref="a8522152762d9f475a48a3169d01b4229" args="(mxGdiCanvas gc)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a> com::mxgraph::mxStencil::CreateCanvas </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html">mxGdiCanvas</a>&nbsp;</td>
<td class="paramname"> <em>gc</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates the canvas for rendering the stencil. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>gc</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a27e9d15a0078eb7864efa8b394f350b9"></a><!-- doxytag: member="com::mxgraph::mxStencil::DrawElement" ref="a27e9d15a0078eb7864efa8b394f350b9" args="(mxGdiCanvas2D canvas, mxCellState state, XmlElement node, mxRectangle aspect)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxStencil::DrawElement </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a>&nbsp;</td>
<td class="paramname"> <em>canvas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>node</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td>
<td class="paramname"> <em>aspect</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws the given element. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>node</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>aspect</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a43b08f91f8143d818d982a91ff075fe9"></a><!-- doxytag: member="com::mxgraph::mxStencil::DrawShadow" ref="a43b08f91f8143d818d982a91ff075fe9" args="(mxGdiCanvas2D canvas, mxCellState state, double rotation, bool flipH, bool flipV, mxRectangle bounds, double alpha, bool filled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxStencil::DrawShadow </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a>&nbsp;</td>
<td class="paramname"> <em>canvas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>rotation</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipH</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>flipV</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td>
<td class="paramname"> <em>bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>alpha</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>filled</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws the shadow. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>canvas</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>rotation</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>flipH</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>flipV</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>bounds</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>alpha</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae038ad2567e18841f53e1c526dc8d732"></a><!-- doxytag: member="com::mxgraph::mxStencil::DrawShape" ref="ae038ad2567e18841f53e1c526dc8d732" args="(mxGdiCanvas2D canvas, mxCellState state, mxRectangle bounds, bool background)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool com::mxgraph::mxStencil::DrawShape </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas2D.html">mxGdiCanvas2D</a>&nbsp;</td>
<td class="paramname"> <em>canvas</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&nbsp;</td>
<td class="paramname"> <em>bounds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>background</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws this stencil inside the given bounds. </p>
</div>
</div>
<a class="anchor" id="a58bc6c170859115aaa5dee655934da71"></a><!-- doxytag: member="com::mxgraph::mxStencil::EvaluateAttribute" ref="a58bc6c170859115aaa5dee655934da71" args="(XmlElement elt, string attribute, mxCellState state)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxStencil::EvaluateAttribute </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>elt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Gets the attribute for the given name from the given node. If the attribute. </p>
<p>does not exist then the text content of the node is evaluated and if it is a function it is invoked with &lt;state&gt; as the only argument and the return value is used as the attribute value to be returned. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elt</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a800889e108a399ee0cdfa16489718296"></a><!-- doxytag: member="com::mxgraph::mxStencil::GetDouble" ref="a800889e108a399ee0cdfa16489718296" args="(XmlElement elt, String attribute, double defaultValue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxStencil::GetDouble </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>elt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>defaultValue</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the given attribute or the default value. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elt</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="ad642b6a5d0fce4c0ca2c4b40e5f87a3b"></a><!-- doxytag: member="com::mxgraph::mxStencil::GetDouble" ref="ad642b6a5d0fce4c0ca2c4b40e5f87a3b" args="(XmlElement elt, String attribute)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double com::mxgraph::mxStencil::GetDouble </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>elt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&nbsp;</td>
<td class="paramname"> <em>attribute</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the given attribute or 0. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elt</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="aee36f48dc2d2bba4c6e2a053dfba80a7"></a><!-- doxytag: member="com::mxgraph::mxStencil::GetInt" ref="aee36f48dc2d2bba4c6e2a053dfba80a7" args="(XmlElement elt, string attribute, int defaultValue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int com::mxgraph::mxStencil::GetInt </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>elt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>defaultValue</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the given attribute or the default value. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elt</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="a26ab5c8df26dfd12e3535a4a0533d63a"></a><!-- doxytag: member="com::mxgraph::mxStencil::GetString" ref="a26ab5c8df26dfd12e3535a4a0533d63a" args="(XmlElement elt, string attribute, string defaultValue)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string com::mxgraph::mxStencil::GetString </td>
<td>(</td>
<td class="paramtype">XmlElement&nbsp;</td>
<td class="paramname"> <em>elt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&nbsp;</td>
<td class="paramname"> <em>defaultValue</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the given attribute or the default value. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>elt</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>attribute</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em>&nbsp;</td><td></td></tr>
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<a class="anchor" id="ac90b17ce50b78ee5966c399a9ec374db"></a><!-- doxytag: member="com::mxgraph::mxStencil::PaintShape" ref="ac90b17ce50b78ee5966c399a9ec374db" args="(mxGdiCanvas gc, mxCellState state)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxStencil::PaintShape </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxGdiCanvas.html">mxGdiCanvas</a>&nbsp;</td>
<td class="paramname"> <em>gc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxCellState.html">mxCellState</a>&nbsp;</td>
<td class="paramname"> <em>state</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Paints the stencil for the given state. </p>
</div>
</div>
<a class="anchor" id="addff93bc760640f2c47b5c06c13f7dc4"></a><!-- doxytag: member="com::mxgraph::mxStencil::ParseDescription" ref="addff93bc760640f2c47b5c06c13f7dc4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void com::mxgraph::mxStencil::ParseDescription </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Parses the description of this shape. </p>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a99acd943034d5503bf048c2574a431d0"></a><!-- doxytag: member="com::mxgraph::mxStencil::aspect" ref="a99acd943034d5503bf048c2574a431d0" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a99acd943034d5503bf048c2574a431d0">com::mxgraph::mxStencil::aspect</a> = null<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the aspect of the shape. Default is "auto". </p>
</div>
</div>
<a class="anchor" id="ad5bc3a0e9ac020f3def014201dcafe9c"></a><!-- doxytag: member="com::mxgraph::mxStencil::bgNode" ref="ad5bc3a0e9ac020f3def014201dcafe9c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XmlElement <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ad5bc3a0e9ac020f3def014201dcafe9c">com::mxgraph::mxStencil::bgNode</a> = null<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the XML node with the stencil description. </p>
</div>
</div>
<a class="anchor" id="af121843569f520d2a1d165d4e9da41f7"></a><!-- doxytag: member="com::mxgraph::mxStencil::desc" ref="af121843569f520d2a1d165d4e9da41f7" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XmlElement <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af121843569f520d2a1d165d4e9da41f7">com::mxgraph::mxStencil::desc</a><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the top-level node of the stencil definition. </p>
</div>
</div>
<a class="anchor" id="ae4a6453b92f7c388e21662116bdc4965"></a><!-- doxytag: member="com::mxgraph::mxStencil::fgNode" ref="ae4a6453b92f7c388e21662116bdc4965" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XmlElement <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ae4a6453b92f7c388e21662116bdc4965">com::mxgraph::mxStencil::fgNode</a> = null<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the XML node with the stencil description. </p>
</div>
</div>
<a class="anchor" id="ab119e79baf1f2fd94de73f2e53cfde62"></a><!-- doxytag: member="com::mxgraph::mxStencil::h0" ref="ab119e79baf1f2fd94de73f2e53cfde62" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#ab119e79baf1f2fd94de73f2e53cfde62">com::mxgraph::mxStencil::h0</a> = 100<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the height of the shape. Default is 100. </p>
</div>
</div>
<a class="anchor" id="af9ada374b25ca21d16765642e32515b1"></a><!-- doxytag: member="com::mxgraph::mxStencil::lastMoveX" ref="af9ada374b25ca21d16765642e32515b1" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af9ada374b25ca21d16765642e32515b1">com::mxgraph::mxStencil::lastMoveX</a> = 0<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the last x-position of the cursor. </p>
</div>
</div>
<a class="anchor" id="a37b57288c72c862106e9f4ed7fbc46b0"></a><!-- doxytag: member="com::mxgraph::mxStencil::lastMoveY" ref="a37b57288c72c862106e9f4ed7fbc46b0" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a37b57288c72c862106e9f4ed7fbc46b0">com::mxgraph::mxStencil::lastMoveY</a> = 0<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the last y-position of the cursor. </p>
</div>
</div>
<a class="anchor" id="a5353f336150a306f765c11d19d3a576a"></a><!-- doxytag: member="com::mxgraph::mxStencil::strokewidth" ref="a5353f336150a306f765c11d19d3a576a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">string <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#a5353f336150a306f765c11d19d3a576a">com::mxgraph::mxStencil::strokewidth</a> = null<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the strokewidth direction from the description. </p>
</div>
</div>
<a class="anchor" id="af575fda1428e1ed270cf88e2cb009a91"></a><!-- doxytag: member="com::mxgraph::mxStencil::w0" ref="af575fda1428e1ed270cf88e2cb009a91" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double <a class="el" href="classcom_1_1mxgraph_1_1mxStencil.html#af575fda1428e1ed270cf88e2cb009a91">com::mxgraph::mxStencil::w0</a> = 100<code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the width of the shape. Default is 100. </p>
</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="a31e0ce00ec08d00aef2059e5fc5504fa"></a><!-- doxytag: member="com::mxgraph::mxStencil::Description" ref="a31e0ce00ec08d00aef2059e5fc5504fa" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">XmlElement com::mxgraph::mxStencil::Description<code> [get, set]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the description. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/canvas/mxStencil.cs</li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Sep 28 07:43:43 2012 for mxGraph by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>