338 lines
17 KiB
HTML
338 lines
17 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"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<title>mxGraph: com.mxgraph.mxStylesheet Class Reference</title>
|
|
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<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 Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</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 id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<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_1mxStylesheet.html">mxStylesheet</a> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="#pro-attribs">Protected Attributes</a> |
|
|
<a href="#properties">Properties</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">com.mxgraph.mxStylesheet Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<!-- doxytag: class="com::mxgraph::mxStylesheet" -->
|
|
<p>Defines the appearance of the cells in a graph.
|
|
<a href="classcom_1_1mxgraph_1_1mxStylesheet.html#details">More...</a></p>
|
|
|
|
<p><a href="classcom_1_1mxgraph_1_1mxStylesheet-members.html">List of all members.</a></p>
|
|
<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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a1bc12672c01cb1100c851f285a4e90c5">mxStylesheet</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new stylesheet and assigns default styles. <a href="#a1bc12672c01cb1100c851f285a4e90c5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a49b6f444c064b14ba705fbab51ced3f3">PutCellStyle</a> (string name, Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Stores the specified style under the given name. <a href="#a49b6f444c064b14ba705fbab51ced3f3"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ae1e45fc8e6f94900d9ff0e1314d5e7e2">GetCellStyle</a> (string name, Dictionary< string, Object > defaultStyle)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename. <a href="#ae1e45fc8e6f94900d9ff0e1314d5e7e2"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
|
|
Static Public Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a6d3fc5eb5ec70834205b1fa971118728">EMPTY_STYLE</a> = new Dictionary<string, Object>()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shared immutable empty dictionary (for undefined cell styles). <a href="#a6d3fc5eb5ec70834205b1fa971118728"></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">Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ad1a60ea66ffbfa7df3fbc5f9d877590b">CreateDefaultVertexStyle</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates and returns the default vertex style. <a href="#ad1a60ea66ffbfa7df3fbc5f9d877590b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a465011a55fc26fb80b0275bf9de9daff">CreateDefaultEdgeStyle</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates and returns the default edge style. <a href="#a465011a55fc26fb80b0275bf9de9daff"></a><br/></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">Dictionary< string, Dictionary<br class="typebreak"/>
|
|
< string, Object > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ad360729d67c23d6e5fa70927119de123">styles</a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Maps from names to styles. <a href="#ad360729d67c23d6e5fa70927119de123"></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">Dictionary< string, Dictionary<br class="typebreak"/>
|
|
< string, Object > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#aba69adc377677ea342f003ddbbd7062d">Styles</a><code> [get, set]</code></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or returns the map that contains the styles. <a href="#aba69adc377677ea342f003ddbbd7062d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#aa25261df1095324fd97876ffb05baff2">DefaultVertexStyle</a><code> [get, set]</code></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or returns the default style for vertices. <a href="#aa25261df1095324fd97876ffb05baff2"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">Dictionary< string, Object > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a54d4f6c8ae0da22a55772214c81160eb">DefaultEdgeStyle</a><code> [get, set]</code></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets or returns the default style for edges. <a href="#a54d4f6c8ae0da22a55772214c81160eb"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p>Defines the appearance of the cells in a graph. </p>
|
|
</div><hr/><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a1bc12672c01cb1100c851f285a4e90c5"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::mxStylesheet" ref="a1bc12672c01cb1100c851f285a4e90c5" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a1bc12672c01cb1100c851f285a4e90c5">com.mxgraph.mxStylesheet.mxStylesheet</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Constructs a new stylesheet and assigns default styles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a465011a55fc26fb80b0275bf9de9daff"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::CreateDefaultEdgeStyle" ref="a465011a55fc26fb80b0275bf9de9daff" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a465011a55fc26fb80b0275bf9de9daff">com.mxgraph.mxStylesheet.CreateDefaultEdgeStyle</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Creates and returns the default edge style. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the default edge style.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad1a60ea66ffbfa7df3fbc5f9d877590b"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::CreateDefaultVertexStyle" ref="ad1a60ea66ffbfa7df3fbc5f9d877590b" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ad1a60ea66ffbfa7df3fbc5f9d877590b">com.mxgraph.mxStylesheet.CreateDefaultVertexStyle</a> </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td><code> [inline, protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Creates and returns the default vertex style. </p>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the default vertex style.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae1e45fc8e6f94900d9ff0e1314d5e7e2"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::GetCellStyle" ref="ae1e45fc8e6f94900d9ff0e1314d5e7e2" args="(string name, Dictionary< string, Object > defaultStyle)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ae1e45fc8e6f94900d9ff0e1314d5e7e2">com.mxgraph.mxStylesheet.GetCellStyle</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>defaultStyle</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the cell style for the specified cell or the given defaultStyle if no style can be found for the given stylename. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>String of the form [(stylename|key=value);] that represents the style.</td></tr>
|
|
<tr><td class="paramname">defaultStyle</td><td>Default style to be returned if no style can be found.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the style for the given formatted cell style.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a49b6f444c064b14ba705fbab51ced3f3"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::PutCellStyle" ref="a49b6f444c064b14ba705fbab51ced3f3" args="(string name, Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a49b6f444c064b14ba705fbab51ced3f3">com.mxgraph.mxStylesheet.PutCellStyle</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"><em>style</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Stores the specified style under the given name. </p>
|
|
<dl class="params"><dt><b>Parameters:</b></dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">name</td><td>Name for the style to be stored.</td></tr>
|
|
<tr><td class="paramname">style</td><td>Key, value pairs that define the style.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Member Data Documentation</h2>
|
|
<a class="anchor" id="a6d3fc5eb5ec70834205b1fa971118728"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::EMPTY_STYLE" ref="a6d3fc5eb5ec70834205b1fa971118728" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a6d3fc5eb5ec70834205b1fa971118728">com.mxgraph.mxStylesheet.EMPTY_STYLE</a> = new Dictionary<string, Object>()<code> [static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Shared immutable empty dictionary (for undefined cell styles). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad360729d67c23d6e5fa70927119de123"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::styles" ref="ad360729d67c23d6e5fa70927119de123" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Dictionary<string, Object> > <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#ad360729d67c23d6e5fa70927119de123">com.mxgraph.mxStylesheet.styles</a><code> [protected]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><pre class="fragment">
|
|
<span class="keyword">new</span> Dictionary<string, Dictionary<string, Object>>()
|
|
</pre></div>
|
|
<p>Maps from names to styles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Property Documentation</h2>
|
|
<a class="anchor" id="a54d4f6c8ae0da22a55772214c81160eb"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::DefaultEdgeStyle" ref="a54d4f6c8ae0da22a55772214c81160eb" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#a54d4f6c8ae0da22a55772214c81160eb">com.mxgraph.mxStylesheet.DefaultEdgeStyle</a><code> [get, set]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets or returns the default style for edges. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa25261df1095324fd97876ffb05baff2"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::DefaultVertexStyle" ref="aa25261df1095324fd97876ffb05baff2" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Object> <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#aa25261df1095324fd97876ffb05baff2">com.mxgraph.mxStylesheet.DefaultVertexStyle</a><code> [get, set]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets or returns the default style for vertices. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aba69adc377677ea342f003ddbbd7062d"></a><!-- doxytag: member="com::mxgraph::mxStylesheet::Styles" ref="aba69adc377677ea342f003ddbbd7062d" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Dictionary<string, Dictionary<string, Object> > <a class="el" href="classcom_1_1mxgraph_1_1mxStylesheet.html#aba69adc377677ea342f003ddbbd7062d">com.mxgraph.mxStylesheet.Styles</a><code> [get, set]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Sets or returns the map that contains the styles. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>src/view/mxStylesheet.cs</li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
|
|
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Fri Jul 19 2013 12:59:35 for mxGraph by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.7.6.1
|
|
</small></address>
|
|
|
|
</body>
|
|
</html>
|