maxGraph/dotnet/docs/html/classcom_1_1mxgraph_1_1mxUt...

2276 lines
113 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.mxUtils 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_1mxUtils.html">mxUtils</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="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">com.mxgraph.mxUtils 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::mxUtils" -->
<p>Contains various helper methods for use with <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>.
<a href="classcom_1_1mxgraph_1_1mxUtils.html#details">More...</a></p>
2012-05-21 20:32:26 +00:00
<p><a href="classcom_1_1mxgraph_1_1mxUtils-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">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad40387c905ea9767781032147e57ad69">AddStylename</a> (String style, String stylename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the specified stylename to the given style if it does not already contain the stylename. <a href="#ad40387c905ea9767781032147e57ad69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#acc98dfe47e191e2c23a0b073cac1394e">RemoveStylename</a> (String style, String stylename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all occurrences of the specified stylename in the given style and returns the updated style. <a href="#acc98dfe47e191e2c23a0b073cac1394e"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a5e5e748665278e4c13eae738b0aa9c0e">GetLabelSize</a> (string label, Dictionary&lt; string, Object &gt; style, int width)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the given label. <a href="#a5e5e748665278e4c13eae738b0aa9c0e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a277844b1fa9826b5f887e98e1f8bf422">GetLabelPaintBounds</a> (String label, Dictionary&lt; string, Object &gt; style, bool isHtml, <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> offset, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> vertexBounds, double scale)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the paint bounds for the given label. <a href="#a277844b1fa9826b5f887e98e1f8bf422"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a960eda3dcd865882b043415e064c5029">GetScaledLabelBounds</a> (double x, double y, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> size, double outerWidth, double outerHeight, Dictionary&lt; string, Object &gt; style, double scale)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. (For edge labels this width and height is 0.) The scale is used to scale the given size and the spacings in the specified style. <a href="#a960eda3dcd865882b043415e064c5029"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa98bc7391ba8428fe17a71209710402f">GetSizeForString</a> (String text, Font font)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the given text. <a href="#aa98bc7391ba8428fe17a71209710402f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a66577804bf75e091aad8cd1cff0b4043">GetSizeForString</a> (String text, Font font, int width)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html" title="Implements a 2-dimensional rectangle with double precision coordinates.">mxRectangle</a> with the size (width and height in pixels) of the given text. <a href="#a66577804bf75e091aad8cd1cff0b4043"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a9d86101980ecb4666c39b6bc7233ca29">ToRadians</a> (double deg)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the given degree to radians. <a href="#a9d86101980ecb4666c39b6bc7233ca29"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae0610ed6653f45e9e016c63750331eb8">ArcToCurves</a> (double x0, double y0, double r1, double r2, double angle, double largeArcFlag, double sweepFlag, double x, double y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the given arc to a series of curves. <a href="#ae0610ed6653f45e9e016c63750331eb8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a94b18c7f1e06c9f3c3525aff826b4681">GetBoundingBox</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> rect, double rotation)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the bounding box of the rotated rectangle. <a href="#a94b18c7f1e06c9f3c3525aff826b4681"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab6276e7376b566d314952d662dcb3a9a">GetRotatedPoint</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> pt, double cos, double sin)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotates the given point by the given cos and sin. <a href="#ab6276e7376b566d314952d662dcb3a9a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a245090df37f29a475ff248f35ffb0d8f">GetRotatedPoint</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> pt, double cos, double sin, <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> c)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotates the given point by the given cos and sin. <a href="#a245090df37f29a475ff248f35ffb0d8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#acff76b7f260484a1417051f79853ea91">FillClippedRect</a> (Graphics g, Brush brush, int x, int y, int width, int height)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Image&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a952ae0e8b6ac3c7de6aeace06f9d5026">CreateImage</a> (int width, int height, Color?background)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an image for the given parameters. <a href="#a952ae0e8b6ac3c7de6aeace06f9d5026"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static List&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#afc6d9bb4033738843d8be1544403d251">TranslatePoints</a> (List&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> &gt; pts, double dx, double dy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new list of new points obtained by translating the points in the given list by the given vector. Elements that are not mxPoints are added to the result as-is. <a href="#afc6d9bb4033738843d8be1544403d251"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa8db3f55e1d16b996c3bb5a0339741b5">Intersection</a> (double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the intersection of two lines as an <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html" title="Implements a 2-dimensional point with double precision coordinates.">mxPoint</a>. <a href="#aa8db3f55e1d16b996c3bb5a0339741b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa082d5f52d1a571a749c31e2e760fc9d">GetStylename</a> (String style)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename. <a href="#aa082d5f52d1a571a749c31e2e760fc9d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23c378cdfd200eaba68db6749fa6035e">GetStylenames</a> (String style)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">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. <a href="#a23c378cdfd200eaba68db6749fa6035e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a91cebce14f6448b21b7e21f884575495">IndexOfStylename</a> (String style, String stylename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character. <a href="#a91cebce14f6448b21b7e21f884575495"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac9d4da3391dd4c558df836fcc54c5497">RemoveAllStylenames</a> (String style)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all stylenames from the given style and returns the updated style. <a href="#ac9d4da3391dd4c558df836fcc54c5497"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a697f7eb719ecb713dd4557e46303b890">SetCellStyles</a> (<a class="el" href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">mxIGraphModel</a> model, Object[] cells, String key, String value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null. <a href="#a697f7eb719ecb713dd4557e46303b890"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac7495bafa9af65c13e18bfdde30fb80b">SetStyle</a> (String style, String key, String value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style. <a href="#ac7495bafa9af65c13e18bfdde30fb80b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a0a4ff54a4c4d30bcfef674b6912211d1">SetCellStyleFlags</a> (<a class="el" href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">mxIGraphModel</a> model, Object[] cells, String key, int flag, Boolean value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or toggles the flag bit for the given key in the cell's styles. If value is null then the flag is toggled. <a href="#a0a4ff54a4c4d30bcfef674b6912211d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#abdf3a052d06fd1ffe9735abdf4bcd9a7">SetStyleFlag</a> (String style, String key, int flag, bool?value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled. <a href="#abdf3a052d06fd1ffe9735abdf4bcd9a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab1faf80201d6e2755ed97f947f3fb0e8">IsTrue</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the dictionary contains true for the given key or false if no value is defined for the key. <a href="#ab1faf80201d6e2755ed97f947f3fb0e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae971b5ad5387de87e7406755bfa9e314">IsTrue</a> (Dictionary&lt; string, Object &gt; dict, string key, bool defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key. <a href="#ae971b5ad5387de87e7406755bfa9e314"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aae3b0a48e48c6f2f92f90b4b38d068a1">GetInt</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as an int or 0 if no value is defined for the key. <a href="#aae3b0a48e48c6f2f92f90b4b38d068a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8bd652a690887862871ecaf494ff7bc6">GetInt</a> (Dictionary&lt; string, Object &gt; dict, string key, int defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as an int or the given default value if no value is defined for the key. <a href="#a8bd652a690887862871ecaf494ff7bc6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a3a77064a2057c43a1c90d01a5cd92022">GetFloat</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a float or 0 if no value is defined for the key. <a href="#a3a77064a2057c43a1c90d01a5cd92022"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a05ef064891fc4e94273c4eab51d2b731">GetFloat</a> (Dictionary&lt; string, Object &gt; dict, string key, float defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a float or the given default value if no value is defined for the key. <a href="#a05ef064891fc4e94273c4eab51d2b731"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8023d2240d233b8f754fb5c0ecdd644f">GetDouble</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a double or 0 if no value is defined for the key. <a href="#a8023d2240d233b8f754fb5c0ecdd644f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae98789e9f14d55af37e58334ed381b63">GetDouble</a> (Dictionary&lt; string, Object &gt; dict, string key, double defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a double or the given default value if no value is defined for the key. <a href="#ae98789e9f14d55af37e58334ed381b63"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aab5a20a39aea1062f4ea855f7649bcdb">GetString</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a string or null if no value is defined for the key. <a href="#aab5a20a39aea1062f4ea855f7649bcdb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac7d101ed508a27a77202df92c3b18fdb">GetString</a> (Dictionary&lt; string, Object &gt; dict, string key, string defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a string or the given default value if no value is defined for the key. <a href="#ac7d101ed508a27a77202df92c3b18fdb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a075a7189dfd9c5ae696ddb5d5a43d97b">GetColor</a> (Dictionary&lt; string, Object &gt; dict, string key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a color or null if no value is defined for the key. <a href="#a075a7189dfd9c5ae696ddb5d5a43d97b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a5d1d8f4527205664bc6defb6dad85ec5">GetColor</a> (Dictionary&lt; string, Object &gt; dict, string key, Color?defaultValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value for key in dictionary as a color or the given default value if no value is defined for the key. <a href="#a5d1d8f4527205664bc6defb6dad85ec5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Font&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7034a53715cf11b9facfeaee4093a7c9">GetFont</a> (Dictionary&lt; string, Object &gt; style)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Font&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a0962899d471a4dace5d818ec8b3f109c">GetFont</a> (Dictionary&lt; string, Object &gt; style, double scale)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static StringFormat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a72ab31c3916d9e4b89fd3f3c9bd86d09">GetStringFormat</a> (Dictionary&lt; string, Object &gt; style)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new StringFormat object for the given style. <a href="#a72ab31c3916d9e4b89fd3f3c9bd86d09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad113f6d6a90c4d4b50976fd621abfc04">ReadFile</a> (string filename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the given filename into a string. <a href="#ad113f6d6a90c4d4b50976fd621abfc04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac2851e9f630cc88da412879809887f48">GetMd5Hash</a> (string text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Md5 hash for the given text. <a href="#ac2851e9f630cc88da412879809887f48"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a89cced4585b7060a17338abeafce9708">IsNode</a> (Object value, String nodeName)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the given value is an XML node with the specified nodename. specified. <a href="#a89cced4585b7060a17338abeafce9708"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#adcd861c713d54fac945444efeb2e372f">IsNode</a> (Object value, String nodeName, String attributeName, String attributeValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified. <a href="#adcd861c713d54fac945444efeb2e372f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Image&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2a71827c05120b140caa51409a363282">LoadImage</a> (String url)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads an image from the local filesystem, a data URI or any other URL. <a href="#a2a71827c05120b140caa51409a363282"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#af18b643b1cfb52bf5c77b5df5e7c18f9">CreateDocument</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new, empty DOM document. <a href="#af18b643b1cfb52bf5c77b5df5e7c18f9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a1f677c92a3d20dcfc5001ab4e18a9b2c">LoadDocument</a> (string uri)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a new DOM document for the given URI. <a href="#a1f677c92a3d20dcfc5001ab4e18a9b2c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a83a1e09bac32c566db46f4e3855fb79c">ParseXml</a> (string xml)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a document that represents the given XML string. <a href="#a83a1e09bac32c566db46f4e3855fb79c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static XmlNode&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2e6d993221ee919212a3581e0da25ac0">FindNode</a> (XmlNode node, String attr, String value)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the first node where attr equals value. This implementation does not use XPath. <a href="#a2e6d993221ee919212a3581e0da25ac0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static XmlNode&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae08e0c0d41778a13363982e5d001c5ca">SelectSingleNode</a> (XmlDocument doc, string expression)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a single node that matches the given XPath expression. <a href="#ae08e0c0d41778a13363982e5d001c5ca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static Object&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa561dea2c3fbed775659f67f04742a94">Eval</a> (string expression)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Evaluates a Java expression to a class member using <a class="el" href="classcom_1_1mxgraph_1_1mxCodecRegistry.html" title="Static class that acts as a global registry for codecs. See mxCodec for an example of using this clas...">mxCodecRegistry</a>. The range of supported expressions is limited to static class members such as <a class="el" href="classcom_1_1mxgraph_1_1mxEdgeStyle.html#a7c4baa6df25719619d8d413c0bfad310" title="Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style...">mxEdgeStyle.ElbowConnector</a>. <a href="#aa561dea2c3fbed775659f67f04742a94"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a32e5d24d1f3a04a9deea12d561593437">HtmlEntities</a> (String text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string. <a href="#a32e5d24d1f3a04a9deea12d561593437"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23d23b0548bc6e2f089d007c1b87319a">GetXml</a> (XmlNode node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a string that represents the given node. <a href="#a23d23b0548bc6e2f089d007c1b87319a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2cd2313ca4a9141baf98352e055cfa3e">GetPrettyXml</a> (XmlNode node)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pretty-printed XML string for the given node. <a href="#a2cd2313ca4a9141baf98352e055cfa3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a65b37fce7823b8c21e49e9234c9c2689">GetXml</a> (XmlNode node, Formatting formatting)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pretty-printed XML string for the given node. <a href="#a65b37fce7823b8c21e49e9234c9c2689"></a><br/></td></tr>
2012-05-21 20:32:26 +00:00
</table>
2013-04-04 11:51:15 +00:00
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Contains various helper methods for use with <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>. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad40387c905ea9767781032147e57ad69"></a><!-- doxytag: member="com::mxgraph::mxUtils::AddStylename" ref="ad40387c905ea9767781032147e57ad69" args="(String style, String stylename)" -->
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">String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad40387c905ea9767781032147e57ad69">com.mxgraph.mxUtils.AddStylename</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>style</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">String&#160;</td>
<td class="paramname"><em>stylename</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>Adds the specified stylename to the given style if it does not already contain the stylename. </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">style</td><td></td></tr>
<tr><td class="paramname">stylename</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ae0610ed6653f45e9e016c63750331eb8"></a><!-- doxytag: member="com::mxgraph::mxUtils::ArcToCurves" ref="ae0610ed6653f45e9e016c63750331eb8" args="(double x0, double y0, double r1, double r2, double angle, double largeArcFlag, double sweepFlag, double x, double y)" -->
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">static double [] <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae0610ed6653f45e9e016c63750331eb8">com.mxgraph.mxUtils.ArcToCurves</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x0</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">double&#160;</td>
<td class="paramname"><em>y0</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">double&#160;</td>
<td class="paramname"><em>r1</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">double&#160;</td>
<td class="paramname"><em>r2</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">double&#160;</td>
<td class="paramname"><em>angle</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">double&#160;</td>
<td class="paramname"><em>largeArcFlag</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">double&#160;</td>
<td class="paramname"><em>sweepFlag</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">double&#160;</td>
<td class="paramname"><em>x</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">double&#160;</td>
<td class="paramname"><em>y</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Converts the given arc to a series of curves. </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">x0</td><td></td></tr>
<tr><td class="paramname">y0</td><td></td></tr>
<tr><td class="paramname">r1</td><td></td></tr>
<tr><td class="paramname">r2</td><td></td></tr>
<tr><td class="paramname">angle</td><td></td></tr>
<tr><td class="paramname">largeArcFlag</td><td></td></tr>
<tr><td class="paramname">sweepFlag</td><td></td></tr>
<tr><td class="paramname">x</td><td></td></tr>
<tr><td class="paramname">y</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="af18b643b1cfb52bf5c77b5df5e7c18f9"></a><!-- doxytag: member="com::mxgraph::mxUtils::CreateDocument" ref="af18b643b1cfb52bf5c77b5df5e7c18f9" 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">static XmlDocument <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#af18b643b1cfb52bf5c77b5df5e7c18f9">com.mxgraph.mxUtils.CreateDocument</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, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a new, empty DOM document. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a new DOM document.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a952ae0e8b6ac3c7de6aeace06f9d5026"></a><!-- doxytag: member="com::mxgraph::mxUtils::CreateImage" ref="a952ae0e8b6ac3c7de6aeace06f9d5026" args="(int width, int height, Color?background)" -->
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">static Image <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a952ae0e8b6ac3c7de6aeace06f9d5026">com.mxgraph.mxUtils.CreateImage</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>width</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">int&#160;</td>
<td class="paramname"><em>height</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">Color?&#160;</td>
<td class="paramname"><em>background</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates an image for the given parameters. </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">width</td><td></td></tr>
<tr><td class="paramname">height</td><td></td></tr>
<tr><td class="paramname">background</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aa561dea2c3fbed775659f67f04742a94"></a><!-- doxytag: member="com::mxgraph::mxUtils::Eval" ref="aa561dea2c3fbed775659f67f04742a94" args="(string expression)" -->
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">static Object <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa561dea2c3fbed775659f67f04742a94">com.mxgraph.mxUtils.Eval</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>expression</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Evaluates a Java expression to a class member using <a class="el" href="classcom_1_1mxgraph_1_1mxCodecRegistry.html" title="Static class that acts as a global registry for codecs. See mxCodec for an example of using this clas...">mxCodecRegistry</a>. The range of supported expressions is limited to static class members such as <a class="el" href="classcom_1_1mxgraph_1_1mxEdgeStyle.html#a7c4baa6df25719619d8d413c0bfad310" title="Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell style...">mxEdgeStyle.ElbowConnector</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">expression</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="acff76b7f260484a1417051f79853ea91"></a><!-- doxytag: member="com::mxgraph::mxUtils::FillClippedRect" ref="acff76b7f260484a1417051f79853ea91" args="(Graphics g, Brush brush, int x, int y, int width, int height)" -->
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">static void <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#acff76b7f260484a1417051f79853ea91">com.mxgraph.mxUtils.FillClippedRect</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">Graphics&#160;</td>
<td class="paramname"><em>g</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">Brush&#160;</td>
<td class="paramname"><em>brush</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">int&#160;</td>
<td class="paramname"><em>x</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">int&#160;</td>
<td class="paramname"><em>y</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">int&#160;</td>
<td class="paramname"><em>width</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">int&#160;</td>
<td class="paramname"><em>height</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">g</td><td></td></tr>
<tr><td class="paramname">brush</td><td></td></tr>
<tr><td class="paramname">x</td><td></td></tr>
<tr><td class="paramname">y</td><td></td></tr>
<tr><td class="paramname">width</td><td></td></tr>
<tr><td class="paramname">height</td><td></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="a2e6d993221ee919212a3581e0da25ac0"></a><!-- doxytag: member="com::mxgraph::mxUtils::FindNode" ref="a2e6d993221ee919212a3581e0da25ac0" args="(XmlNode node, String attr, String value)" -->
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">static XmlNode <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2e6d993221ee919212a3581e0da25ac0">com.mxgraph.mxUtils.FindNode</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlNode&#160;</td>
<td class="paramname"><em>node</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">String&#160;</td>
<td class="paramname"><em>attr</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">String&#160;</td>
<td class="paramname"><em>value</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the first node where attr equals value. This implementation does not use XPath. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a94b18c7f1e06c9f3c3525aff826b4681"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetBoundingBox" ref="a94b18c7f1e06c9f3c3525aff826b4681" args="(mxRectangle rect, double rotation)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a94b18c7f1e06c9f3c3525aff826b4681">com.mxgraph.mxUtils.GetBoundingBox</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="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td>
<td class="paramname"><em>rect</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">double&#160;</td>
<td class="paramname"><em>rotation</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the bounding box of the rotated rectangle. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a075a7189dfd9c5ae696ddb5d5a43d97b"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetColor" ref="a075a7189dfd9c5ae696ddb5d5a43d97b" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static Color <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a075a7189dfd9c5ae696ddb5d5a43d97b">com.mxgraph.mxUtils.GetColor</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a color or null if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the color value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a5d1d8f4527205664bc6defb6dad85ec5"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetColor" ref="a5d1d8f4527205664bc6defb6dad85ec5" args="(Dictionary&lt; string, Object &gt; dict, string key, Color?defaultValue)" -->
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">static Color <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a075a7189dfd9c5ae696ddb5d5a43d97b">com.mxgraph.mxUtils.GetColor</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Color?&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a color or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the color value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a8023d2240d233b8f754fb5c0ecdd644f"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetDouble" ref="a8023d2240d233b8f754fb5c0ecdd644f" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static double <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8023d2240d233b8f754fb5c0ecdd644f">com.mxgraph.mxUtils.GetDouble</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a double or 0 if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the double value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ae98789e9f14d55af37e58334ed381b63"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetDouble" ref="ae98789e9f14d55af37e58334ed381b63" args="(Dictionary&lt; string, Object &gt; dict, string key, double defaultValue)" -->
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">static double <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8023d2240d233b8f754fb5c0ecdd644f">com.mxgraph.mxUtils.GetDouble</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>key</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">double&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a double or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the double value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a3a77064a2057c43a1c90d01a5cd92022"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFloat" ref="a3a77064a2057c43a1c90d01a5cd92022" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static float <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a3a77064a2057c43a1c90d01a5cd92022">com.mxgraph.mxUtils.GetFloat</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a float or 0 if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the float value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a05ef064891fc4e94273c4eab51d2b731"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFloat" ref="a05ef064891fc4e94273c4eab51d2b731" args="(Dictionary&lt; string, Object &gt; dict, string key, float defaultValue)" -->
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">static float <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a3a77064a2057c43a1c90d01a5cd92022">com.mxgraph.mxUtils.GetFloat</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>key</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">float&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a float or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the float value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a7034a53715cf11b9facfeaee4093a7c9"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFont" ref="a7034a53715cf11b9facfeaee4093a7c9" args="(Dictionary&lt; string, Object &gt; style)" -->
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">static Font <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7034a53715cf11b9facfeaee4093a7c9">com.mxgraph.mxUtils.GetFont</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</em></td><td>)</td>
<td><code> [inline, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">style</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0962899d471a4dace5d818ec8b3f109c"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFont" ref="a0962899d471a4dace5d818ec8b3f109c" args="(Dictionary&lt; string, Object &gt; style, double scale)" -->
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">static Font <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7034a53715cf11b9facfeaee4093a7c9">com.mxgraph.mxUtils.GetFont</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>scale</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [inline, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">style</td><td></td></tr>
<tr><td class="paramname">scale</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aae3b0a48e48c6f2f92f90b4b38d068a1"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetInt" ref="aae3b0a48e48c6f2f92f90b4b38d068a1" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static int <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aae3b0a48e48c6f2f92f90b4b38d068a1">com.mxgraph.mxUtils.GetInt</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as an int or 0 if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the integer value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a8bd652a690887862871ecaf494ff7bc6"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetInt" ref="a8bd652a690887862871ecaf494ff7bc6" args="(Dictionary&lt; string, Object &gt; dict, string key, int defaultValue)" -->
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">static int <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aae3b0a48e48c6f2f92f90b4b38d068a1">com.mxgraph.mxUtils.GetInt</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as an int or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the integer value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a277844b1fa9826b5f887e98e1f8bf422"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetLabelPaintBounds" ref="a277844b1fa9826b5f887e98e1f8bf422" args="(String label, Dictionary&lt; string, Object &gt; style, bool isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a277844b1fa9826b5f887e98e1f8bf422">com.mxgraph.mxUtils.GetLabelPaintBounds</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>label</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</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">bool&#160;</td>
<td class="paramname"><em>isHtml</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"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>offset</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"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td>
<td class="paramname"><em>vertexBounds</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">double&#160;</td>
<td class="paramname"><em>scale</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the paint bounds for the given label. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a5e5e748665278e4c13eae738b0aa9c0e"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetLabelSize" ref="a5e5e748665278e4c13eae738b0aa9c0e" args="(string label, Dictionary&lt; string, Object &gt; style, int width)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a5e5e748665278e4c13eae738b0aa9c0e">com.mxgraph.mxUtils.GetLabelSize</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>label</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</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">int&#160;</td>
<td class="paramname"><em>width</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the size of the given label. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ac2851e9f630cc88da412879809887f48"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetMd5Hash" ref="ac2851e9f630cc88da412879809887f48" args="(string text)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac2851e9f630cc88da412879809887f48">com.mxgraph.mxUtils.GetMd5Hash</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>text</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the Md5 hash for the given text. </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">text</td><td>String whose Md5 hash should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the Md5 hash for the given text.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a2cd2313ca4a9141baf98352e055cfa3e"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetPrettyXml" ref="a2cd2313ca4a9141baf98352e055cfa3e" args="(XmlNode node)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2cd2313ca4a9141baf98352e055cfa3e">com.mxgraph.mxUtils.GetPrettyXml</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlNode&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a pretty-printed XML string for the given node. </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">node</td><td>Node to return the XML for.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a formatted XML string.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ab6276e7376b566d314952d662dcb3a9a"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetRotatedPoint" ref="ab6276e7376b566d314952d662dcb3a9a" args="(mxPoint pt, double cos, double sin)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab6276e7376b566d314952d662dcb3a9a">com.mxgraph.mxUtils.GetRotatedPoint</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="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>pt</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">double&#160;</td>
<td class="paramname"><em>cos</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">double&#160;</td>
<td class="paramname"><em>sin</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Rotates the given point by the given cos and sin. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a245090df37f29a475ff248f35ffb0d8f"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetRotatedPoint" ref="a245090df37f29a475ff248f35ffb0d8f" args="(mxPoint pt, double cos, double sin, mxPoint c)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab6276e7376b566d314952d662dcb3a9a">com.mxgraph.mxUtils.GetRotatedPoint</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="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>pt</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">double&#160;</td>
<td class="paramname"><em>cos</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">double&#160;</td>
<td class="paramname"><em>sin</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&#160;</td>
<td class="paramname"><em>c</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Rotates the given point by the given cos and sin. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a960eda3dcd865882b043415e064c5029"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetScaledLabelBounds" ref="a960eda3dcd865882b043415e064c5029" args="(double x, double y, mxRectangle size, double outerWidth, double outerHeight, Dictionary&lt; string, Object &gt; style, double scale)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a960eda3dcd865882b043415e064c5029">com.mxgraph.mxUtils.GetScaledLabelBounds</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x</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">double&#160;</td>
<td class="paramname"><em>y</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"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a>&#160;</td>
<td class="paramname"><em>size</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">double&#160;</td>
<td class="paramname"><em>outerWidth</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">double&#160;</td>
<td class="paramname"><em>outerHeight</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</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">double&#160;</td>
<td class="paramname"><em>scale</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. (For edge labels this width and height is 0.) The scale is used to scale the given size and the spacings in the specified style. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aa98bc7391ba8428fe17a71209710402f"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetSizeForString" ref="aa98bc7391ba8428fe17a71209710402f" args="(String text, Font font)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa98bc7391ba8428fe17a71209710402f">com.mxgraph.mxUtils.GetSizeForString</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>text</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">Font&#160;</td>
<td class="paramname"><em>font</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the size of the given text. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">text</td><td>String whose size should be returned.</td></tr>
<tr><td class="paramname">font</td><td>Specifies the font that should be used.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the size of the given text.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a66577804bf75e091aad8cd1cff0b4043"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetSizeForString" ref="a66577804bf75e091aad8cd1cff0b4043" args="(String text, Font font, int width)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa98bc7391ba8428fe17a71209710402f">com.mxgraph.mxUtils.GetSizeForString</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>text</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">Font&#160;</td>
<td class="paramname"><em>font</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>width</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns an <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html" title="Implements a 2-dimensional rectangle with double precision coordinates.">mxRectangle</a> with the size (width and height in pixels) of the given text. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">text</td><td>String whose size should be returned.</td></tr>
<tr><td class="paramname">font</td><td>Specifies the font that should be used.</td></tr>
<tr><td class="paramname">width</td><td>Specifies the width of the text block for word wrapping.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the size of the given text.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aab5a20a39aea1062f4ea855f7649bcdb"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetString" ref="aab5a20a39aea1062f4ea855f7649bcdb" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aab5a20a39aea1062f4ea855f7649bcdb">com.mxgraph.mxUtils.GetString</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a string or null if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the string value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ac7d101ed508a27a77202df92c3b18fdb"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetString" ref="ac7d101ed508a27a77202df92c3b18fdb" args="(Dictionary&lt; string, Object &gt; dict, string key, string defaultValue)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aab5a20a39aea1062f4ea855f7649bcdb">com.mxgraph.mxUtils.GetString</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">string&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns the value for key in dictionary as a string or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the string value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a72ab31c3916d9e4b89fd3f3c9bd86d09"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStringFormat" ref="a72ab31c3916d9e4b89fd3f3c9bd86d09" args="(Dictionary&lt; string, Object &gt; style)" -->
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">static StringFormat <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a72ab31c3916d9e4b89fd3f3c9bd86d09">com.mxgraph.mxUtils.GetStringFormat</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, Object &gt;&#160;</td>
<td class="paramname"><em>style</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new StringFormat object for the given style. </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">style</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aa082d5f52d1a571a749c31e2e760fc9d"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStylename" ref="aa082d5f52d1a571a749c31e2e760fc9d" args="(String style)" -->
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">static String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa082d5f52d1a571a749c31e2e760fc9d">com.mxgraph.mxUtils.GetStylename</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>style</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename. </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">style</td><td>String of the form stylename[;key=value].</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the stylename from the given formatted string.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a23c378cdfd200eaba68db6749fa6035e"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStylenames" ref="a23c378cdfd200eaba68db6749fa6035e" args="(String style)" -->
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">static String [] <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23c378cdfd200eaba68db6749fa6035e">com.mxgraph.mxUtils.GetStylenames</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>style</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>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>
2013-04-04 11:51:15 +00:00
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">style</td><td>String of the form stylename[;stylename][;key=value].</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the stylename from the given formatted string.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a23d23b0548bc6e2f089d007c1b87319a"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetXml" ref="a23d23b0548bc6e2f089d007c1b87319a" args="(XmlNode node)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23d23b0548bc6e2f089d007c1b87319a">com.mxgraph.mxUtils.GetXml</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlNode&#160;</td>
<td class="paramname"><em>node</em></td><td>)</td>
<td><code> [inline, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns a string that represents the given node. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>Node to return the XML for.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
2013-04-04 11:51:15 +00:00
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns an XML string.</dd></dl>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a65b37fce7823b8c21e49e9234c9c2689"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetXml" ref="a65b37fce7823b8c21e49e9234c9c2689" args="(XmlNode node, Formatting formatting)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23d23b0548bc6e2f089d007c1b87319a">com.mxgraph.mxUtils.GetXml</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlNode&#160;</td>
<td class="paramname"><em>node</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Formatting&#160;</td>
<td class="paramname"><em>formatting</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [inline, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns a pretty-printed XML string for the given node. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>Node to return the XML for.</td></tr>
<tr><td class="paramname">formatting</td><td>Formatting of the string to be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
2013-04-04 11:51:15 +00:00
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a formatted XML string.</dd></dl>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a32e5d24d1f3a04a9deea12d561593437"></a><!-- doxytag: member="com::mxgraph::mxUtils::HtmlEntities" ref="a32e5d24d1f3a04a9deea12d561593437" args="(String text)" -->
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">static String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a32e5d24d1f3a04a9deea12d561593437">com.mxgraph.mxUtils.HtmlEntities</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>text</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string. </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">text</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a91cebce14f6448b21b7e21f884575495"></a><!-- doxytag: member="com::mxgraph::mxUtils::IndexOfStylename" ref="a91cebce14f6448b21b7e21f884575495" args="(String style, String stylename)" -->
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">static int <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a91cebce14f6448b21b7e21f884575495">com.mxgraph.mxUtils.IndexOfStylename</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>style</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">String&#160;</td>
<td class="paramname"><em>stylename</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character. </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">style</td><td></td></tr>
<tr><td class="paramname">stylename</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="aa8db3f55e1d16b996c3bb5a0339741b5"></a><!-- doxytag: member="com::mxgraph::mxUtils::Intersection" ref="aa8db3f55e1d16b996c3bb5a0339741b5" args="(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)" -->
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">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa8db3f55e1d16b996c3bb5a0339741b5">com.mxgraph.mxUtils.Intersection</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>x0</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">double&#160;</td>
<td class="paramname"><em>y0</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">double&#160;</td>
<td class="paramname"><em>x1</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">double&#160;</td>
<td class="paramname"><em>y1</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">double&#160;</td>
<td class="paramname"><em>x2</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">double&#160;</td>
<td class="paramname"><em>y2</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">double&#160;</td>
<td class="paramname"><em>x3</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">double&#160;</td>
<td class="paramname"><em>y3</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the intersection of two lines as an <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html" title="Implements a 2-dimensional point with double precision coordinates.">mxPoint</a>. </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">x0</td><td>X-coordinate of the first line's startpoint.</td></tr>
<tr><td class="paramname">y0</td><td>Y-coordinate of the first line's startpoint.</td></tr>
<tr><td class="paramname">x1</td><td>X-coordinate of the first line's endpoint.</td></tr>
<tr><td class="paramname">y1</td><td>Y-coordinate of the first line's endpoint.</td></tr>
<tr><td class="paramname">x2</td><td>X-coordinate of the second line's startpoint.</td></tr>
<tr><td class="paramname">y2</td><td>Y-coordinate of the second line's startpoint.</td></tr>
<tr><td class="paramname">x3</td><td>X-coordinate of the second line's endpoint.</td></tr>
<tr><td class="paramname">y3</td><td>Y-coordinate of the second line's endpoint.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a89cced4585b7060a17338abeafce9708"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsNode" ref="a89cced4585b7060a17338abeafce9708" args="(Object value, String nodeName)" -->
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">static bool <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a89cced4585b7060a17338abeafce9708">com.mxgraph.mxUtils.IsNode</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">Object&#160;</td>
<td class="paramname"><em>value</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">String&#160;</td>
<td class="paramname"><em>nodeName</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns true if the given value is an XML node with the specified nodename. specified. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>Object that represents the value to be tested.</td></tr>
<tr><td class="paramname">nodeName</td><td>String that specifies the node name.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
2013-04-04 11:51:15 +00:00
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the node name of the user object is equal to the given type.</dd></dl>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="adcd861c713d54fac945444efeb2e372f"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsNode" ref="adcd861c713d54fac945444efeb2e372f" args="(Object value, String nodeName, String attributeName, String attributeValue)" -->
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">static bool <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a89cced4585b7060a17338abeafce9708">com.mxgraph.mxUtils.IsNode</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">Object&#160;</td>
<td class="paramname"><em>value</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">String&#160;</td>
<td class="paramname"><em>nodeName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&#160;</td>
<td class="paramname"><em>attributeName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">String&#160;</td>
<td class="paramname"><em>attributeValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">value</td><td>Object that represents the value to be tested.</td></tr>
<tr><td class="paramname">nodeName</td><td>String that specifies the node name.</td></tr>
<tr><td class="paramname">attributeName</td><td>Optional attribute name to check.</td></tr>
<tr><td class="paramname">attributeValue</td><td>Optional attribute value to check.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
2013-04-04 11:51:15 +00:00
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the cell matches the given conditions.</dd></dl>
2012-05-21 20:32:26 +00:00
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ab1faf80201d6e2755ed97f947f3fb0e8"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsTrue" ref="ab1faf80201d6e2755ed97f947f3fb0e8" args="(Dictionary&lt; string, Object &gt; dict, string key)" -->
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">static bool <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab1faf80201d6e2755ed97f947f3fb0e8">com.mxgraph.mxUtils.IsTrue</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns true if the dictionary contains true for the given key or false if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the boolean value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ae971b5ad5387de87e7406755bfa9e314"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsTrue" ref="ae971b5ad5387de87e7406755bfa9e314" args="(Dictionary&lt; string, Object &gt; dict, string key, bool defaultValue)" -->
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">static bool <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab1faf80201d6e2755ed97f947f3fb0e8">com.mxgraph.mxUtils.IsTrue</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, Object &gt;&#160;</td>
<td class="paramname"><em>dict</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">string&#160;</td>
<td class="paramname"><em>key</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>defaultValue</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
2013-04-04 11:51:15 +00:00
<p>Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">dict</td><td>Dictionary that contains the key, value pairs.</td></tr>
<tr><td class="paramname">key</td><td>Key whose value should be returned.</td></tr>
<tr><td class="paramname">defaultValue</td><td>Default value to return if the key is undefined.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the boolean value for key in dict.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a1f677c92a3d20dcfc5001ab4e18a9b2c"></a><!-- doxytag: member="com::mxgraph::mxUtils::LoadDocument" ref="a1f677c92a3d20dcfc5001ab4e18a9b2c" args="(string uri)" -->
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">static XmlDocument <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a1f677c92a3d20dcfc5001ab4e18a9b2c">com.mxgraph.mxUtils.LoadDocument</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>uri</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a new DOM document for the given URI. </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">uri</td><td>URI to parse into the document.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a new DOM document for the given URI.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a2a71827c05120b140caa51409a363282"></a><!-- doxytag: member="com::mxgraph::mxUtils::LoadImage" ref="a2a71827c05120b140caa51409a363282" args="(String url)" -->
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">static Image <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2a71827c05120b140caa51409a363282">com.mxgraph.mxUtils.LoadImage</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>url</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Loads an image from the local filesystem, a data URI or any other URL. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a83a1e09bac32c566db46f4e3855fb79c"></a><!-- doxytag: member="com::mxgraph::mxUtils::ParseXml" ref="a83a1e09bac32c566db46f4e3855fb79c" args="(string xml)" -->
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">static XmlDocument <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a83a1e09bac32c566db46f4e3855fb79c">com.mxgraph.mxUtils.ParseXml</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>xml</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a document that represents the given XML string. </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">xml</td><td>String that contains the XML markup.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns an XML document.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ad113f6d6a90c4d4b50976fd621abfc04"></a><!-- doxytag: member="com::mxgraph::mxUtils::ReadFile" ref="ad113f6d6a90c4d4b50976fd621abfc04" args="(string filename)" -->
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">static string <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad113f6d6a90c4d4b50976fd621abfc04">com.mxgraph.mxUtils.ReadFile</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>filename</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Reads the given filename into a string. </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">filename</td><td>Name of the file to be read.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a string representing the file contents.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ac9d4da3391dd4c558df836fcc54c5497"></a><!-- doxytag: member="com::mxgraph::mxUtils::RemoveAllStylenames" ref="ac9d4da3391dd4c558df836fcc54c5497" args="(String style)" -->
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">static String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac9d4da3391dd4c558df836fcc54c5497">com.mxgraph.mxUtils.RemoveAllStylenames</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>style</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Removes all stylenames from the given style and returns the updated style. </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">style</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="acc98dfe47e191e2c23a0b073cac1394e"></a><!-- doxytag: member="com::mxgraph::mxUtils::RemoveStylename" ref="acc98dfe47e191e2c23a0b073cac1394e" args="(String style, String stylename)" -->
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">String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#acc98dfe47e191e2c23a0b073cac1394e">com.mxgraph.mxUtils.RemoveStylename</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>style</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">String&#160;</td>
<td class="paramname"><em>stylename</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>Removes all occurrences of the specified stylename in the given style and returns the updated style. </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">style</td><td></td></tr>
<tr><td class="paramname">stylename</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="ae08e0c0d41778a13363982e5d001c5ca"></a><!-- doxytag: member="com::mxgraph::mxUtils::SelectSingleNode" ref="ae08e0c0d41778a13363982e5d001c5ca" args="(XmlDocument doc, string expression)" -->
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">static XmlNode <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae08e0c0d41778a13363982e5d001c5ca">com.mxgraph.mxUtils.SelectSingleNode</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">XmlDocument&#160;</td>
<td class="paramname"><em>doc</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">string&#160;</td>
<td class="paramname"><em>expression</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns a single node that matches the given XPath expression. </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">doc</td><td>Document that contains the nodes.</td></tr>
<tr><td class="paramname">expression</td><td>XPath expression to be matched.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a single node matching the given expression.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a0a4ff54a4c4d30bcfef674b6912211d1"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetCellStyleFlags" ref="a0a4ff54a4c4d30bcfef674b6912211d1" args="(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)" -->
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">static void <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a0a4ff54a4c4d30bcfef674b6912211d1">com.mxgraph.mxUtils.SetCellStyleFlags</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_1mxIGraphModel.html">mxIGraphModel</a>&#160;</td>
<td class="paramname"><em>model</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">Object[]&#160;</td>
<td class="paramname"><em>cells</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">String&#160;</td>
<td class="paramname"><em>key</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">int&#160;</td>
<td class="paramname"><em>flag</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">Boolean&#160;</td>
<td class="paramname"><em>value</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or toggles the flag bit for the given key in the cell's styles. If value is null then the flag is toggled. </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">model</td><td>Model that contains the cells.</td></tr>
<tr><td class="paramname">cells</td><td>Array of cells to change the style for.</td></tr>
<tr><td class="paramname">key</td><td>Key of the style to be changed.</td></tr>
<tr><td class="paramname">flag</td><td>Integer for the bit to be changed.</td></tr>
<tr><td class="paramname">value</td><td>Optional boolean value for the flag.</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="a697f7eb719ecb713dd4557e46303b890"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetCellStyles" ref="a697f7eb719ecb713dd4557e46303b890" args="(mxIGraphModel model, Object[] cells, String key, String value)" -->
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">static void <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a697f7eb719ecb713dd4557e46303b890">com.mxgraph.mxUtils.SetCellStyles</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_1mxIGraphModel.html">mxIGraphModel</a>&#160;</td>
<td class="paramname"><em>model</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">Object[]&#160;</td>
<td class="paramname"><em>cells</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">String&#160;</td>
<td class="paramname"><em>key</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">String&#160;</td>
<td class="paramname"><em>value</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null. </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">model</td><td>Model to execute the transaction in.</td></tr>
<tr><td class="paramname">cells</td><td>Array of cells to be updated.</td></tr>
<tr><td class="paramname">key</td><td>Key of the style to be changed.</td></tr>
<tr><td class="paramname">value</td><td>New value for the given key.</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="ac7495bafa9af65c13e18bfdde30fb80b"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetStyle" ref="ac7495bafa9af65c13e18bfdde30fb80b" args="(String style, String key, String value)" -->
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">static String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac7495bafa9af65c13e18bfdde30fb80b">com.mxgraph.mxUtils.SetStyle</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>style</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">String&#160;</td>
<td class="paramname"><em>key</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">String&#160;</td>
<td class="paramname"><em>value</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style. </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">style</td><td>String of the form stylename[;key=value].</td></tr>
<tr><td class="paramname">key</td><td>Key of the style to be changed.</td></tr>
<tr><td class="paramname">value</td><td>New value for the given key.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new style.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="abdf3a052d06fd1ffe9735abdf4bcd9a7"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetStyleFlag" ref="abdf3a052d06fd1ffe9735abdf4bcd9a7" args="(String style, String key, int flag, bool?value)" -->
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">static String <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#abdf3a052d06fd1ffe9735abdf4bcd9a7">com.mxgraph.mxUtils.SetStyleFlag</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>style</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">String&#160;</td>
<td class="paramname"><em>key</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">int&#160;</td>
<td class="paramname"><em>flag</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">bool?&#160;</td>
<td class="paramname"><em>value</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled. </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">style</td><td>String of the form stylename[;key=value].</td></tr>
<tr><td class="paramname">key</td><td>Key of the style to be changed.</td></tr>
<tr><td class="paramname">flag</td><td>Integer for the bit to be changed.</td></tr>
<tr><td class="paramname">value</td><td>Optional boolean value for the given flag.</td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new style.</dd></dl>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="a9d86101980ecb4666c39b6bc7233ca29"></a><!-- doxytag: member="com::mxgraph::mxUtils::ToRadians" ref="a9d86101980ecb4666c39b6bc7233ca29" args="(double deg)" -->
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">static double <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a9d86101980ecb4666c39b6bc7233ca29">com.mxgraph.mxUtils.ToRadians</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">double&#160;</td>
<td class="paramname"><em>deg</em></td><td>)</td>
2012-05-21 20:32:26 +00:00
<td><code> [inline, static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Converts the given degree to radians. </p>
</div>
</div>
2013-04-04 11:51:15 +00:00
<a class="anchor" id="afc6d9bb4033738843d8be1544403d251"></a><!-- doxytag: member="com::mxgraph::mxUtils::TranslatePoints" ref="afc6d9bb4033738843d8be1544403d251" args="(List&lt; mxPoint &gt; pts, double dx, double dy)" -->
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">static List&lt;<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>&gt; <a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#afc6d9bb4033738843d8be1544403d251">com.mxgraph.mxUtils.TranslatePoints</a> </td>
2012-05-21 20:32:26 +00:00
<td>(</td>
2013-04-04 11:51:15 +00:00
<td class="paramtype">List&lt; <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> &gt;&#160;</td>
<td class="paramname"><em>pts</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">double&#160;</td>
<td class="paramname"><em>dx</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">double&#160;</td>
<td class="paramname"><em>dy</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, static]</code></td>
2012-05-21 20:32:26 +00:00
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a new list of new points obtained by translating the points in the given list by the given vector. Elements that are not mxPoints are added to the result as-is. </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">pts</td><td></td></tr>
<tr><td class="paramname">dx</td><td></td></tr>
<tr><td class="paramname">dy</td><td></td></tr>
2012-05-21 20:32:26 +00:00
</table>
</dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/utils/mxUtils.cs</li>
</ul>
2013-04-04 11:51:15 +00:00
</div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
2013-07-26 17:03:22 +00:00
Generated on Fri Jul 26 2013 18:01:40 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>