maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxSa...

294 lines
17 KiB
HTML
Raw Normal View History

2012-05-21 20:32:26 +00:00
<!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"/>
2013-04-04 11:51:15 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>mxGraph: com.mxgraph.mxSaxOutputHandler Class Reference</title>
2012-05-21 20:32:26 +00:00
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2013-04-04 11:51:15 +00:00
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2012-05-21 20:32:26 +00:00
</head>
<body>
2013-04-04 11:51:15 +00:00
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">mxGraph
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
2012-05-21 20:32:26 +00:00
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="dirs.html"><span>Directories</span></a></li>
</ul>
</div>
2013-04-04 11:51:15 +00:00
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
2012-05-21 20:32:26 +00:00
</ul>
</div>
2013-04-04 11:51:15 +00:00
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>com</b> </li>
<li class="navelem"><a class="el" href="namespacecom_1_1mxgraph.html">mxgraph</a> </li>
<li class="navelem"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html">mxSaxOutputHandler</a> </li>
</ul>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> </div>
<div class="headertitle">
<div class="title">com.mxgraph.mxSaxOutputHandler Class Reference</div> </div>
</div><!--header-->
2012-05-21 20:32:26 +00:00
<div class="contents">
2013-04-04 11:51:15 +00:00
<!-- doxytag: class="com::mxgraph::mxSaxOutputHandler" -->
2012-05-21 20:32:26 +00:00
<p><a href="classcom_1_1mxgraph_1_1mxSaxOutputHandler-members.html">List of all members.</a></p>
2013-04-04 11:51:15 +00:00
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">delegate void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">ElementHandler</a> (Dictionary&lt; string, string &gt; atts)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines the requirements for an object that parses a node. <a href="#a32b7804b0f34f1812e8e6798a76d12b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a16950e454cb330e9cb56d1d6b61110ce">mxSaxOutputHandler</a> (<a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a> <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a090c7343b32565cc420c6ad650d4a4e6">canvas</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new sax output handler for the given canvas. <a href="#a16950e454cb330e9cb56d1d6b61110ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#ace401fb8336a4fb794ee3e6812dd826d">Read</a> (XmlReader reader)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the given display XML data and parses all elements. <a href="#ace401fb8336a4fb794ee3e6812dd826d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#af472795d88e38941b6633d3662cafda3">ParseElement</a> (string tagName, Dictionary&lt; string, string &gt; atts)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Parses the given element and paints it onto the canvas. <a href="#af472795d88e38941b6633d3662cafda3"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada669aef921e221255c2ec47dbe7deb3"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetString" ref="ada669aef921e221255c2ec47dbe7deb3" args="(Dictionary&lt; string, string &gt; atts, string key)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>GetString</b> (Dictionary&lt; string, string &gt; atts, string key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f35eacb0815cbeb2321c8e10aa7654a"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetString" ref="a0f35eacb0815cbeb2321c8e10aa7654a" args="(Dictionary&lt; string, string &gt; atts, string key, string defaultValue)" -->
string&#160;</td><td class="memItemRight" valign="bottom"><b>GetString</b> (Dictionary&lt; string, string &gt; atts, string key, string defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ee34b5e6842542d8a3c1c2dc879bc87"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetDouble" ref="a2ee34b5e6842542d8a3c1c2dc879bc87" args="(Dictionary&lt; string, string &gt; atts, string key)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>GetDouble</b> (Dictionary&lt; string, string &gt; atts, string key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a266d93ad2e536dd800195249d7b8bc15"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetDouble" ref="a266d93ad2e536dd800195249d7b8bc15" args="(Dictionary&lt; string, string &gt; atts, string key, double defaultValue)" -->
double&#160;</td><td class="memItemRight" valign="bottom"><b>GetDouble</b> (Dictionary&lt; string, string &gt; atts, string key, double defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8146bfdacf80e993196004e1c19ef360"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetInt" ref="a8146bfdacf80e993196004e1c19ef360" args="(Dictionary&lt; string, string &gt; atts, string key)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>GetInt</b> (Dictionary&lt; string, string &gt; atts, string key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb486fd312f088b9ae11ccc89b87744b"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::GetInt" ref="aeb486fd312f088b9ae11ccc89b87744b" args="(Dictionary&lt; string, string &gt; atts, string key, int defaultValue)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>GetInt</b> (Dictionary&lt; string, string &gt; atts, string key, int defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78c6cdeec2e07f344b8c47d40d9a1b88"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::IsTrue" ref="a78c6cdeec2e07f344b8c47d40d9a1b88" args="(Dictionary&lt; string, string &gt; atts, string key)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsTrue</b> (Dictionary&lt; string, string &gt; atts, string key)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8d347cb86d96558dbad60edbcd63603"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::IsTrue" ref="aa8d347cb86d96558dbad60edbcd63603" args="(Dictionary&lt; string, string &gt; atts, string key, bool defaultValue)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsTrue</b> (Dictionary&lt; string, string &gt; atts, string key, bool defaultValue)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a1c0745a8acb4caa8c2055da89424b26f">InitHandlers</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a090c7343b32565cc420c6ad650d4a4e6">canvas</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the current canvas. <a href="#a090c7343b32565cc420c6ad650d4a4e6"></a><br/></td></tr>
2012-05-21 20:32:26 +00:00
<tr><td class="memItemLeft" align="right" valign="top">Dictionary&lt; string, <br class="typebreak"/>
2013-04-04 11:51:15 +00:00
<a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">ElementHandler</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#aeeed7cca44f0ed84f35540984120ac5d">handlers</a> = new Dictionary&lt;string, <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">ElementHandler</a>&gt;()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Holds the handlers for specific XML nodes. <a href="#aeeed7cca44f0ed84f35540984120ac5d"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a0ce2fda006ffd1c9acf2034483300f24">Canvas</a><code> [get, set]</code></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or returns the current canvas. <a href="#a0ce2fda006ffd1c9acf2034483300f24"></a><br/></td></tr>
2012-05-21 20:32:26 +00:00
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a16950e454cb330e9cb56d1d6b61110ce"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::mxSaxOutputHandler" ref="a16950e454cb330e9cb56d1d6b61110ce" args="(mxICanvas2D canvas)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a16950e454cb330e9cb56d1d6b61110ce">com.mxgraph.mxSaxOutputHandler.mxSaxOutputHandler</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype"><a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a>&#160;</td>
<td class="paramname"><em>canvas</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructs a new sax output handler for the given canvas. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a32b7804b0f34f1812e8e6798a76d12b5"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::ElementHandler" ref="a32b7804b0f34f1812e8e6798a76d12b5" args="(Dictionary&lt; string, string &gt; atts)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">delegate void <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">com.mxgraph.mxSaxOutputHandler.ElementHandler</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">Dictionary&lt; string, string &gt;&#160;</td>
<td class="paramname"><em>atts</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Defines the requirements for an object that parses a node. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a1c0745a8acb4caa8c2055da89424b26f"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::InitHandlers" ref="a1c0745a8acb4caa8c2055da89424b26f" args="()" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a1c0745a8acb4caa8c2055da89424b26f">com.mxgraph.mxSaxOutputHandler.InitHandlers</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramname"></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="af472795d88e38941b6633d3662cafda3"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::ParseElement" ref="af472795d88e38941b6633d3662cafda3" args="(string tagName, Dictionary&lt; string, string &gt; atts)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#af472795d88e38941b6633d3662cafda3">com.mxgraph.mxSaxOutputHandler.ParseElement</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>tagName</em>, </td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">Dictionary&lt; string, string &gt;&#160;</td>
<td class="paramname"><em>atts</em>&#160;</td>
2012-05-21 20:32:26 +00:00
</tr>
<tr>
<td></td>
<td>)</td>
2013-04-04 11:51:15 +00:00
<td></td><td><code> [inline]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Parses the given element and paints it onto the canvas. </p>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">tagName</td><td>Name of the node to be parsed.</td></tr>
<tr><td class="paramname">attrs</td><td>Attributes of the node to be parsed.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ace401fb8336a4fb794ee3e6812dd826d"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::Read" ref="ace401fb8336a4fb794ee3e6812dd826d" args="(XmlReader reader)" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#ace401fb8336a4fb794ee3e6812dd826d">com.mxgraph.mxSaxOutputHandler.Read</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlReader&#160;</td>
<td class="paramname"><em>reader</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the given display XML data and parses all elements. </p>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">reader</td><td>Reader that represents the display XML data.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a090c7343b32565cc420c6ad650d4a4e6"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::canvas" ref="a090c7343b32565cc420c6ad650d4a4e6" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a> <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a090c7343b32565cc420c6ad650d4a4e6">com.mxgraph.mxSaxOutputHandler.canvas</a><code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the current canvas. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aeeed7cca44f0ed84f35540984120ac5d"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::handlers" ref="aeeed7cca44f0ed84f35540984120ac5d" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname">Dictionary&lt;string, <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">ElementHandler</a>&gt; <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#aeeed7cca44f0ed84f35540984120ac5d">com.mxgraph.mxSaxOutputHandler.handlers</a> = new Dictionary&lt;string, <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a32b7804b0f34f1812e8e6798a76d12b5">ElementHandler</a>&gt;()<code> [protected]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Holds the handlers for specific XML nodes. </p>
</div>
</div>
<hr/><h2>Property Documentation</h2>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0ce2fda006ffd1c9acf2034483300f24"></a><!-- doxytag: member="com::mxgraph::mxSaxOutputHandler::Canvas" ref="a0ce2fda006ffd1c9acf2034483300f24" args="" -->
2012-05-21 20:32:26 +00:00
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
2013-04-04 11:51:15 +00:00
<td class="memname"><a class="el" href="interfacecom_1_1mxgraph_1_1mxICanvas2D.html">mxICanvas2D</a> <a class="el" href="classcom_1_1mxgraph_1_1mxSaxOutputHandler.html#a0ce2fda006ffd1c9acf2034483300f24">com.mxgraph.mxSaxOutputHandler.Canvas</a><code> [get, set]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or returns the current canvas. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/reader/mxSaxOutputHandler.cs</li>
</ul>
2013-04-04 11:51:15 +00:00
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
2013-07-26 16:59:11 +00:00
Generated on Fri Jul 26 2013 17:48:17 for mxGraph by &#160;<a href="http://www.doxygen.org/index.html">
2013-04-04 11:51:15 +00:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
2012-05-21 20:32:26 +00:00
</body>
</html>