2245 lines
113 KiB
HTML
2245 lines
113 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>mxGraph: com::mxgraph::mxUtils Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.3 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="dirs.html"><span>Directories</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><b>com</b>::<b>mxgraph</b>::<a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html">mxUtils</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>com::mxgraph::mxUtils Class Reference</h1><!-- 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="#_details">More...</a></p>
|
|
|
|
<p><a href="classcom_1_1mxgraph_1_1mxUtils-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a4fb003dac4ebb72fc3e59dbce67fd330">AddStylename</a> (String style, String stylename)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adds the specified stylename to the given style if it does not already contain the stylename. <a href="#a4fb003dac4ebb72fc3e59dbce67fd330"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2fa96b662336bd34cb73951607bc9e2b">RemoveStylename</a> (String style, String stylename)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes all occurrences of the specified stylename in the given style and returns the updated style. <a href="#a2fa96b662336bd34cb73951607bc9e2b"></a><br/></td></tr>
|
|
<tr><td colspan="2"><h2>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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a661de39da15520dccd375cdebf2bf402">GetLabelSize</a> (string label, Dictionary< string, Object > style, int width)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of the given label. <a href="#a661de39da15520dccd375cdebf2bf402"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a44a44358539513830ac55c64e7ffd67d">GetLabelPaintBounds</a> (String label, Dictionary< string, Object > 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"> </td><td class="mdescRight">Returns the paint bounds for the given label. <a href="#a44a44358539513830ac55c64e7ffd67d"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a3ed4a7861d42064c2be9f26b07a814cc">GetScaledLabelBounds</a> (double x, double y, <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> size, double outerWidth, double outerHeight, Dictionary< string, Object > style, double scale)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a3ed4a7861d42064c2be9f26b07a814cc"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8318d3c09f55d0317bd87b088b1822dd">GetSizeForString</a> (String text, Font font)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the size of the given text. <a href="#a8318d3c09f55d0317bd87b088b1822dd"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a08d855b0f40c6c60b395db790a6c74b4">GetSizeForString</a> (String text, Font font, int width)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a08d855b0f40c6c60b395db790a6c74b4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a1a0c2f4fe1c1c17c445c396a1b158ccb">ToRadians</a> (double deg)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Converts the given degree to radians. <a href="#a1a0c2f4fe1c1c17c445c396a1b158ccb"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static double[] </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a91f005028c32d0d614b4c5fe1f955b82">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"> </td><td class="mdescRight">Converts the given arc to a series of curves. <a href="#a91f005028c32d0d614b4c5fe1f955b82"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7678eac208e920d7c59081dd40df4c91">GetBoundingBox</a> (<a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> rect, double rotation)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the bounding box of the rotated rectangle. <a href="#a7678eac208e920d7c59081dd40df4c91"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a8585d2006c43042e999d8cbc7eb40c90">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"> </td><td class="mdescRight">Rotates the given point by the given cos and sin. <a href="#a8585d2006c43042e999d8cbc7eb40c90"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a514a598b4574635ab264a90cfe00a64f">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"> </td><td class="mdescRight">Rotates the given point by the given cos and sin. <a href="#a514a598b4574635ab264a90cfe00a64f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7f4b312d1ea700cf0618096c725cd884">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 </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a346009f6c841efa8c5d3da4cc4ed651c">CreateImage</a> (int width, int height, Color?background)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an image for the given parameters. <a href="#a346009f6c841efa8c5d3da4cc4ed651c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static List< <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a23b4c460761c0715762964202ebe2e26">TranslatePoints</a> (List< <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> > pts, double dx, double dy)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a23b4c460761c0715762964202ebe2e26"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aca4150c2dba3683cde96ce2016cc18a5">Intersection</a> (double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#aca4150c2dba3683cde96ce2016cc18a5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a81ed5a92ad1cec4300cc4c63d882ec9d">GetStylename</a> (String style)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a81ed5a92ad1cec4300cc4c63d882ec9d"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String[] </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a857d2f7e3ecd002353e3ad256308b188">GetStylenames</a> (String style)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a857d2f7e3ecd002353e3ad256308b188"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac3ddde679f9ad7f78edb3f9e842e2d7f">IndexOfStylename</a> (String style, String stylename)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#ac3ddde679f9ad7f78edb3f9e842e2d7f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#abe003f6e64b3ae245257d0447bc890d6">RemoveAllStylenames</a> (String style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Removes all stylenames from the given style and returns the updated style. <a href="#abe003f6e64b3ae245257d0447bc890d6"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab7b5cd3313e3e1feaa5f366b18d2c435">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"> </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="#ab7b5cd3313e3e1feaa5f366b18d2c435"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a0f13701bf4dc70c43f0f1ab408e97bea">SetStyle</a> (String style, String key, String value)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a0f13701bf4dc70c43f0f1ab408e97bea"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2eeb7bc9dd011e47b035cf4f4b6de579">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"> </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="#a2eeb7bc9dd011e47b035cf4f4b6de579"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a9789a2adaf33eabe8aa8856df3aca807">SetStyleFlag</a> (String style, String key, int flag, bool?value)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a9789a2adaf33eabe8aa8856df3aca807"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a0e1981e448a4bf8f245f6472ddb3f131">IsTrue</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a0e1981e448a4bf8f245f6472ddb3f131"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ab40d46f2ffb86a859c209d13e44bf4cd">IsTrue</a> (Dictionary< string, Object > dict, string key, bool defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#ab40d46f2ffb86a859c209d13e44bf4cd"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a265f08aea1ab863f5c0c242d0d1e3247">GetInt</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a265f08aea1ab863f5c0c242d0d1e3247"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad1d1460c3e03182e6351c285ec9a33b4">GetInt</a> (Dictionary< string, Object > dict, string key, int defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#ad1d1460c3e03182e6351c285ec9a33b4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a871ab56f1ba48411c148841bd49e5da9">GetFloat</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a871ab56f1ba48411c148841bd49e5da9"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a26baf14d68bc1c72536549374295f661">GetFloat</a> (Dictionary< string, Object > dict, string key, float defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a26baf14d68bc1c72536549374295f661"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a9fa84bb70acb657b281e18474c4eadfa">GetDouble</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a9fa84bb70acb657b281e18474c4eadfa"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a82673d3eaa385f504068f3251802c2e3">GetDouble</a> (Dictionary< string, Object > dict, string key, double defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a82673d3eaa385f504068f3251802c2e3"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a6b6e56618094460153fdfa34670c4766">GetString</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a6b6e56618094460153fdfa34670c4766"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aeef9a4e1c8524de7f4b0c6093ef4be3b">GetString</a> (Dictionary< string, Object > dict, string key, string defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#aeef9a4e1c8524de7f4b0c6093ef4be3b"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Color </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a2b2248a0d09775e466c6e4c3e399fc53">GetColor</a> (Dictionary< string, Object > dict, string key)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a2b2248a0d09775e466c6e4c3e399fc53"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Color </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ac3eee1430397445f391e7b04b0d225e1">GetColor</a> (Dictionary< string, Object > dict, string key, Color?defaultValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#ac3eee1430397445f391e7b04b0d225e1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Font </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#af1262698755703ccd84bc183cccac6a3">GetFont</a> (Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Font </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a502b2393c697ec47272e2d4cb668c18e">GetFont</a> (Dictionary< string, Object > style, double scale)</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static StringFormat </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a79b1654dd953191778bbcd6ceae9f79c">GetStringFormat</a> (Dictionary< string, Object > style)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new StringFormat object for the given style. <a href="#a79b1654dd953191778bbcd6ceae9f79c"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a90cc8f0f221f2add5a31cfa47bea9b3f">ReadFile</a> (string filename)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reads the given filename into a string. <a href="#a90cc8f0f221f2add5a31cfa47bea9b3f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aa23c24c33302d884dacd7ddbd1b16543">GetMd5Hash</a> (string text)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the Md5 hash for the given text. <a href="#aa23c24c33302d884dacd7ddbd1b16543"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a5208100e48892f64e627a85ec30f7f32">IsNode</a> (Object value, String nodeName)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given value is an XML node with the specified nodename. specified. <a href="#a5208100e48892f64e627a85ec30f7f32"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#abcedc5601014b98a220faaf9ce3c1798">IsNode</a> (Object value, String nodeName, String attributeName, String attributeValue)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#abcedc5601014b98a220faaf9ce3c1798"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Image </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a30ccc3180a67c12649dbba8212918215">LoadImage</a> (String url)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Loads an image from the local filesystem, a data URI or any other URL. <a href="#a30ccc3180a67c12649dbba8212918215"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aca3ccaa055624b04567bc4f5c29eefc4">CreateDocument</a> ()</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a new, empty DOM document. <a href="#aca3ccaa055624b04567bc4f5c29eefc4"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ae722c7c569219d667a4c970f3dcfb6bf">LoadDocument</a> (string uri)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a new DOM document for the given URI. <a href="#ae722c7c569219d667a4c970f3dcfb6bf"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static XmlDocument </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a18122413c99206306bc0cca8ee7bbd0a">ParseXml</a> (string xml)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a document that represents the given XML string. <a href="#a18122413c99206306bc0cca8ee7bbd0a"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static XmlNode </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#ad1ec4d7bd832972f29957a769180836e">FindNode</a> (XmlNode node, String attr, String value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the first node where attr equals value. This implementation does not use XPath. <a href="#ad1ec4d7bd832972f29957a769180836e"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static XmlNode </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#aae4b27f9a279780ebbd795bbd851cb46">SelectSingleNode</a> (XmlDocument doc, string expression)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a single node that matches the given XPath expression. <a href="#aae4b27f9a279780ebbd795bbd851cb46"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static Object </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a19dd3e8cbbaef8f0163b5538fecd3ba5">Eval</a> (string expression)</td></tr>
|
|
<tr><td class="mdescLeft"> </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...">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#a92f5012b34ca2e03ce23139b36d59d2a" title="Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell...">mxEdgeStyle.ElbowConnector</a>. <a href="#a19dd3e8cbbaef8f0163b5538fecd3ba5"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static String </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a1c88dfc8675db06225f91b3afa0f030f">HtmlEntities</a> (String text)</td></tr>
|
|
<tr><td class="mdescLeft"> </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="#a1c88dfc8675db06225f91b3afa0f030f"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a28735717582ed6a547f32e8effd11e29">GetXml</a> (XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a string that represents the given node. <a href="#a28735717582ed6a547f32e8effd11e29"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a6ba7fb8e71bc6a5ba2476c9bf43842c1">GetPrettyXml</a> (XmlNode node)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pretty-printed XML string for the given node. <a href="#a6ba7fb8e71bc6a5ba2476c9bf43842c1"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">static string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1mxgraph_1_1mxUtils.html#a7eb91229c8f8d962843711abe2756200">GetXml</a> (XmlNode node, Formatting formatting)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a pretty-printed XML string for the given node. <a href="#a7eb91229c8f8d962843711abe2756200"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<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>
|
|
<hr/><h2>Member Function Documentation</h2>
|
|
<a class="anchor" id="a4fb003dac4ebb72fc3e59dbce67fd330"></a><!-- doxytag: member="com::mxgraph::mxUtils::AddStylename" ref="a4fb003dac4ebb72fc3e59dbce67fd330" args="(String style, String stylename)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">String com::mxgraph::mxUtils::AddStylename </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>stylename</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Adds the specified stylename to the given style if it does not already contain the stylename. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>stylename</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a91f005028c32d0d614b4c5fe1f955b82"></a><!-- doxytag: member="com::mxgraph::mxUtils::ArcToCurves" ref="a91f005028c32d0d614b4c5fe1f955b82" args="(double x0, double y0, double r1, double r2, double angle, double largeArcFlag, double sweepFlag, double x, double y)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static double [] com::mxgraph::mxUtils::ArcToCurves </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x0</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y0</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>r1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>r2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>angle</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>largeArcFlag</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>sweepFlag</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Converts the given arc to a series of curves. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y0</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>r1</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>r2</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>largeArcFlag</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>sweepFlag</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>x</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aca3ccaa055624b04567bc4f5c29eefc4"></a><!-- doxytag: member="com::mxgraph::mxUtils::CreateDocument" ref="aca3ccaa055624b04567bc4f5c29eefc4" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static XmlDocument com::mxgraph::mxUtils::CreateDocument </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<a class="anchor" id="a346009f6c841efa8c5d3da4cc4ed651c"></a><!-- doxytag: member="com::mxgraph::mxUtils::CreateImage" ref="a346009f6c841efa8c5d3da4cc4ed651c" args="(int width, int height, Color?background)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Image com::mxgraph::mxUtils::CreateImage </td>
|
|
<td>(</td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>height</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Color? </td>
|
|
<td class="paramname"> <em>background</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Creates an image for the given parameters. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>height</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>background</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a19dd3e8cbbaef8f0163b5538fecd3ba5"></a><!-- doxytag: member="com::mxgraph::mxUtils::Eval" ref="a19dd3e8cbbaef8f0163b5538fecd3ba5" args="(string expression)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Object com::mxgraph::mxUtils::Eval </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>expression</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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...">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#a92f5012b34ca2e03ce23139b36d59d2a" title="Uses either SideToSide or TopToBottom depending on the horizontal flag in the cell...">mxEdgeStyle.ElbowConnector</a>. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>expression</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7f4b312d1ea700cf0618096c725cd884"></a><!-- doxytag: member="com::mxgraph::mxUtils::FillClippedRect" ref="a7f4b312d1ea700cf0618096c725cd884" args="(Graphics g, Brush brush, int x, int y, int width, int height)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void com::mxgraph::mxUtils::FillClippedRect </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Graphics </td>
|
|
<td class="paramname"> <em>g</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Brush </td>
|
|
<td class="paramname"> <em>brush</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>width</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>height</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>g</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>brush</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>x</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>height</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad1ec4d7bd832972f29957a769180836e"></a><!-- doxytag: member="com::mxgraph::mxUtils::FindNode" ref="ad1ec4d7bd832972f29957a769180836e" args="(XmlNode node, String attr, String value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static XmlNode com::mxgraph::mxUtils::FindNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>attr</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the first node where attr equals value. This implementation does not use XPath. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7678eac208e920d7c59081dd40df4c91"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetBoundingBox" ref="a7678eac208e920d7c59081dd40df4c91" args="(mxRectangle rect, double rotation)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetBoundingBox </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> </td>
|
|
<td class="paramname"> <em>rect</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>rotation</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the bounding box of the rotated rectangle. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac3eee1430397445f391e7b04b0d225e1"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetColor" ref="ac3eee1430397445f391e7b04b0d225e1" args="(Dictionary< string, Object > dict, string key, Color?defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Color com::mxgraph::mxUtils::GetColor </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Color? </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the color value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2b2248a0d09775e466c6e4c3e399fc53"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetColor" ref="a2b2248a0d09775e466c6e4c3e399fc53" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Color com::mxgraph::mxUtils::GetColor </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value for key in dictionary as a color or null if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the color value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a82673d3eaa385f504068f3251802c2e3"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetDouble" ref="a82673d3eaa385f504068f3251802c2e3" args="(Dictionary< string, Object > dict, string key, double defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static double com::mxgraph::mxUtils::GetDouble </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the double value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9fa84bb70acb657b281e18474c4eadfa"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetDouble" ref="a9fa84bb70acb657b281e18474c4eadfa" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static double com::mxgraph::mxUtils::GetDouble </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value for key in dictionary as a double or 0 if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the double value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a26baf14d68bc1c72536549374295f661"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFloat" ref="a26baf14d68bc1c72536549374295f661" args="(Dictionary< string, Object > dict, string key, float defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static float com::mxgraph::mxUtils::GetFloat </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the float value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a871ab56f1ba48411c148841bd49e5da9"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFloat" ref="a871ab56f1ba48411c148841bd49e5da9" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static float com::mxgraph::mxUtils::GetFloat </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value for key in dictionary as a float or 0 if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the float value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a502b2393c697ec47272e2d4cb668c18e"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFont" ref="a502b2393c697ec47272e2d4cb668c18e" args="(Dictionary< string, Object > style, double scale)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Font com::mxgraph::mxUtils::GetFont </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>scale</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>scale</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="af1262698755703ccd84bc183cccac6a3"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetFont" ref="af1262698755703ccd84bc183cccac6a3" args="(Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Font com::mxgraph::mxUtils::GetFont </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad1d1460c3e03182e6351c285ec9a33b4"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetInt" ref="ad1d1460c3e03182e6351c285ec9a33b4" args="(Dictionary< string, Object > dict, string key, int defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static int com::mxgraph::mxUtils::GetInt </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the integer value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a265f08aea1ab863f5c0c242d0d1e3247"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetInt" ref="a265f08aea1ab863f5c0c242d0d1e3247" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static int com::mxgraph::mxUtils::GetInt </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value for key in dictionary as an int or 0 if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the integer value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a44a44358539513830ac55c64e7ffd67d"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetLabelPaintBounds" ref="a44a44358539513830ac55c64e7ffd67d" args="(String label, Dictionary< string, Object > style, bool isHtml, mxPoint offset, mxRectangle vertexBounds, double scale)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetLabelPaintBounds </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>label</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>isHtml</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> </td>
|
|
<td class="paramname"> <em>offset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> </td>
|
|
<td class="paramname"> <em>vertexBounds</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>scale</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<a class="anchor" id="a661de39da15520dccd375cdebf2bf402"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetLabelSize" ref="a661de39da15520dccd375cdebf2bf402" args="(string label, Dictionary< string, Object > style, int width)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetLabelSize </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>label</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>width</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the size of the given label. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa23c24c33302d884dacd7ddbd1b16543"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetMd5Hash" ref="aa23c24c33302d884dacd7ddbd1b16543" args="(string text)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetMd5Hash </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>text</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the Md5 hash for the given text. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>String whose Md5 hash should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the Md5 hash for the given text.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6ba7fb8e71bc6a5ba2476c9bf43842c1"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetPrettyXml" ref="a6ba7fb8e71bc6a5ba2476c9bf43842c1" args="(XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetPrettyXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a pretty-printed XML string for the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>Node to return the XML for.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a formatted XML string.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a514a598b4574635ab264a90cfe00a64f"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetRotatedPoint" ref="a514a598b4574635ab264a90cfe00a64f" args="(mxPoint pt, double cos, double sin, mxPoint c)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxUtils::GetRotatedPoint </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td>
|
|
<td class="paramname"> <em>pt</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>cos</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </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> </td>
|
|
<td class="paramname"> <em>c</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Rotates the given point by the given cos and sin. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8585d2006c43042e999d8cbc7eb40c90"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetRotatedPoint" ref="a8585d2006c43042e999d8cbc7eb40c90" args="(mxPoint pt, double cos, double sin)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxUtils::GetRotatedPoint </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> </td>
|
|
<td class="paramname"> <em>pt</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>cos</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>sin</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Rotates the given point by the given cos and sin. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3ed4a7861d42064c2be9f26b07a814cc"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetScaledLabelBounds" ref="a3ed4a7861d42064c2be9f26b07a814cc" args="(double x, double y, mxRectangle size, double outerWidth, double outerHeight, Dictionary< string, Object > style, double scale)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetScaledLabelBounds </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> </td>
|
|
<td class="paramname"> <em>size</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>outerWidth</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>outerHeight</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>scale</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<a class="anchor" id="a08d855b0f40c6c60b395db790a6c74b4"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetSizeForString" ref="a08d855b0f40c6c60b395db790a6c74b4" args="(String text, Font font, int width)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetSizeForString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Font </td>
|
|
<td class="paramname"> <em>font</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>width</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>String whose size should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Specifies the font that should be used.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Specifies the width of the text block for word wrapping.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the size of the given text.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a8318d3c09f55d0317bd87b088b1822dd"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetSizeForString" ref="a8318d3c09f55d0317bd87b088b1822dd" args="(String text, Font font)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxRectangle.html">mxRectangle</a> com::mxgraph::mxUtils::GetSizeForString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Font </td>
|
|
<td class="paramname"> <em>font</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the size of the given text. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>String whose size should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>font</em> </td><td>Specifies the font that should be used.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the size of the given text.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aeef9a4e1c8524de7f4b0c6093ef4be3b"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetString" ref="aeef9a4e1c8524de7f4b0c6093ef4be3b" args="(Dictionary< string, Object > dict, string key, string defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the string value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6b6e56618094460153fdfa34670c4766"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetString" ref="a6b6e56618094460153fdfa34670c4766" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value for key in dictionary as a string or null if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the string value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a79b1654dd953191778bbcd6ceae9f79c"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStringFormat" ref="a79b1654dd953191778bbcd6ceae9f79c" args="(Dictionary< string, Object > style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static StringFormat com::mxgraph::mxUtils::GetStringFormat </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>style</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Creates a new StringFormat object for the given style. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a81ed5a92ad1cec4300cc4c63d882ec9d"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStylename" ref="a81ed5a92ad1cec4300cc4c63d882ec9d" args="(String style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String com::mxgraph::mxUtils::GetStylename </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>String of the form stylename[;key=value].</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the stylename from the given formatted string.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a857d2f7e3ecd002353e3ad256308b188"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetStylenames" ref="a857d2f7e3ecd002353e3ad256308b188" args="(String style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String [] com::mxgraph::mxUtils::GetStylenames </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>String of the form stylename[;stylename][;key=value].</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the stylename from the given formatted string.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7eb91229c8f8d962843711abe2756200"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetXml" ref="a7eb91229c8f8d962843711abe2756200" args="(XmlNode node, Formatting formatting)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Formatting </td>
|
|
<td class="paramname"> <em>formatting</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a pretty-printed XML string for the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>Node to return the XML for.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>formatting</em> </td><td>Formatting of the string to be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a formatted XML string.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a28735717582ed6a547f32e8effd11e29"></a><!-- doxytag: member="com::mxgraph::mxUtils::GetXml" ref="a28735717582ed6a547f32e8effd11e29" args="(XmlNode node)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::GetXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlNode </td>
|
|
<td class="paramname"> <em>node</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a string that represents the given node. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>node</em> </td><td>Node to return the XML for.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns an XML string.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1c88dfc8675db06225f91b3afa0f030f"></a><!-- doxytag: member="com::mxgraph::mxUtils::HtmlEntities" ref="a1c88dfc8675db06225f91b3afa0f030f" args="(String text)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String com::mxgraph::mxUtils::HtmlEntities </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>text</em></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>text</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac3ddde679f9ad7f78edb3f9e842e2d7f"></a><!-- doxytag: member="com::mxgraph::mxUtils::IndexOfStylename" ref="ac3ddde679f9ad7f78edb3f9e842e2d7f" args="(String style, String stylename)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static int com::mxgraph::mxUtils::IndexOfStylename </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>stylename</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>stylename</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aca4150c2dba3683cde96ce2016cc18a5"></a><!-- doxytag: member="com::mxgraph::mxUtils::Intersection" ref="aca4150c2dba3683cde96ce2016cc18a5" args="(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> com::mxgraph::mxUtils::Intersection </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x0</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y0</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y1</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y2</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>x3</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>y3</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>x0</em> </td><td>X-coordinate of the first line's startpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y0</em> </td><td>Y-coordinate of the first line's startpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>x1</em> </td><td>X-coordinate of the first line's endpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y1</em> </td><td>Y-coordinate of the first line's endpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>x2</em> </td><td>X-coordinate of the second line's startpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y2</em> </td><td>Y-coordinate of the second line's startpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>x3</em> </td><td>X-coordinate of the second line's endpoint.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>y3</em> </td><td>Y-coordinate of the second line's endpoint.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abcedc5601014b98a220faaf9ce3c1798"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsNode" ref="abcedc5601014b98a220faaf9ce3c1798" args="(Object value, String nodeName, String attributeName, String attributeValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool com::mxgraph::mxUtils::IsNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>nodeName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>attributeName</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>attributeValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Object that represents the value to be tested.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>nodeName</em> </td><td>String that specifies the node name.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>attributeName</em> </td><td>Optional attribute name to check.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>attributeValue</em> </td><td>Optional attribute value to check.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns true if the cell matches the given conditions.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5208100e48892f64e627a85ec30f7f32"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsNode" ref="a5208100e48892f64e627a85ec30f7f32" args="(Object value, String nodeName)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool com::mxgraph::mxUtils::IsNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Object </td>
|
|
<td class="paramname"> <em>value</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>nodeName</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns true if the given value is an XML node with the specified nodename. specified. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Object that represents the value to be tested.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>nodeName</em> </td><td>String that specifies the node name.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<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>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab40d46f2ffb86a859c209d13e44bf4cd"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsTrue" ref="ab40d46f2ffb86a859c209d13e44bf4cd" args="(Dictionary< string, Object > dict, string key, bool defaultValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool com::mxgraph::mxUtils::IsTrue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"> <em>defaultValue</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<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><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>defaultValue</em> </td><td>Default value to return if the key is undefined.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the boolean value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0e1981e448a4bf8f245f6472ddb3f131"></a><!-- doxytag: member="com::mxgraph::mxUtils::IsTrue" ref="a0e1981e448a4bf8f245f6472ddb3f131" args="(Dictionary< string, Object > dict, string key)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool com::mxgraph::mxUtils::IsTrue </td>
|
|
<td>(</td>
|
|
<td class="paramtype">Dictionary< string, Object > </td>
|
|
<td class="paramname"> <em>dict</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>key</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns true if the dictionary contains true for the given key or false if no value is defined for the key. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>dict</em> </td><td>Dictionary that contains the key, value pairs.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key whose value should be returned.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the boolean value for key in dict.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae722c7c569219d667a4c970f3dcfb6bf"></a><!-- doxytag: member="com::mxgraph::mxUtils::LoadDocument" ref="ae722c7c569219d667a4c970f3dcfb6bf" args="(string uri)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static XmlDocument com::mxgraph::mxUtils::LoadDocument </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>uri</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a new DOM document for the given URI. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>uri</em> </td><td>URI to parse into the document.</td></tr>
|
|
</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>
|
|
<a class="anchor" id="a30ccc3180a67c12649dbba8212918215"></a><!-- doxytag: member="com::mxgraph::mxUtils::LoadImage" ref="a30ccc3180a67c12649dbba8212918215" args="(String url)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static Image com::mxgraph::mxUtils::LoadImage </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>url</em></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<a class="anchor" id="a18122413c99206306bc0cca8ee7bbd0a"></a><!-- doxytag: member="com::mxgraph::mxUtils::ParseXml" ref="a18122413c99206306bc0cca8ee7bbd0a" args="(string xml)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static XmlDocument com::mxgraph::mxUtils::ParseXml </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>xml</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a document that represents the given XML string. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>xml</em> </td><td>String that contains the XML markup.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns an XML document.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a90cc8f0f221f2add5a31cfa47bea9b3f"></a><!-- doxytag: member="com::mxgraph::mxUtils::ReadFile" ref="a90cc8f0f221f2add5a31cfa47bea9b3f" args="(string filename)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static string com::mxgraph::mxUtils::ReadFile </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>filename</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Reads the given filename into a string. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>filename</em> </td><td>Name of the file to be read.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a string representing the file contents.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="abe003f6e64b3ae245257d0447bc890d6"></a><!-- doxytag: member="com::mxgraph::mxUtils::RemoveAllStylenames" ref="abe003f6e64b3ae245257d0447bc890d6" args="(String style)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String com::mxgraph::mxUtils::RemoveAllStylenames </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em></td>
|
|
<td> ) </td>
|
|
<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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2fa96b662336bd34cb73951607bc9e2b"></a><!-- doxytag: member="com::mxgraph::mxUtils::RemoveStylename" ref="a2fa96b662336bd34cb73951607bc9e2b" args="(String style, String stylename)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">String com::mxgraph::mxUtils::RemoveStylename </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>stylename</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Removes all occurrences of the specified stylename in the given style and returns the updated style. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>stylename</em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aae4b27f9a279780ebbd795bbd851cb46"></a><!-- doxytag: member="com::mxgraph::mxUtils::SelectSingleNode" ref="aae4b27f9a279780ebbd795bbd851cb46" args="(XmlDocument doc, string expression)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static XmlNode com::mxgraph::mxUtils::SelectSingleNode </td>
|
|
<td>(</td>
|
|
<td class="paramtype">XmlDocument </td>
|
|
<td class="paramname"> <em>doc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"> <em>expression</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns a single node that matches the given XPath expression. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>doc</em> </td><td>Document that contains the nodes.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>expression</em> </td><td>XPath expression to be matched.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a single node matching the given expression.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2eeb7bc9dd011e47b035cf4f4b6de579"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetCellStyleFlags" ref="a2eeb7bc9dd011e47b035cf4f4b6de579" args="(mxIGraphModel model, Object[] cells, String key, int flag, Boolean value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void com::mxgraph::mxUtils::SetCellStyleFlags </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">mxIGraphModel</a> </td>
|
|
<td class="paramname"> <em>model</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object[] </td>
|
|
<td class="paramname"> <em>cells</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>flag</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Boolean </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>model</em> </td><td>Model that contains the cells.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>cells</em> </td><td>Array of cells to change the style for.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key of the style to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>Integer for the bit to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Optional boolean value for the flag.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab7b5cd3313e3e1feaa5f366b18d2c435"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetCellStyles" ref="ab7b5cd3313e3e1feaa5f366b18d2c435" args="(mxIGraphModel model, Object[] cells, String key, String value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void com::mxgraph::mxUtils::SetCellStyles </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">mxIGraphModel</a> </td>
|
|
<td class="paramname"> <em>model</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">Object[] </td>
|
|
<td class="paramname"> <em>cells</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>model</em> </td><td>Model to execute the transaction in.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>cells</em> </td><td>Array of cells to be updated.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key of the style to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>New value for the given key.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0f13701bf4dc70c43f0f1ab408e97bea"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetStyle" ref="a0f13701bf4dc70c43f0f1ab408e97bea" args="(String style, String key, String value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String com::mxgraph::mxUtils::SetStyle </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>String of the form stylename[;key=value].</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key of the style to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>New value for the given key.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new style.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9789a2adaf33eabe8aa8856df3aca807"></a><!-- doxytag: member="com::mxgraph::mxUtils::SetStyleFlag" ref="a9789a2adaf33eabe8aa8856df3aca807" args="(String style, String key, int flag, bool?value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static String com::mxgraph::mxUtils::SetStyleFlag </td>
|
|
<td>(</td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>style</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">String </td>
|
|
<td class="paramname"> <em>key</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">int </td>
|
|
<td class="paramname"> <em>flag</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool? </td>
|
|
<td class="paramname"> <em>value</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>String of the form stylename[;key=value].</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>Key of the style to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>flag</em> </td><td>Integer for the bit to be changed.</td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>Optional boolean value for the given flag.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns the new style.</dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1a0c2f4fe1c1c17c445c396a1b158ccb"></a><!-- doxytag: member="com::mxgraph::mxUtils::ToRadians" ref="a1a0c2f4fe1c1c17c445c396a1b158ccb" args="(double deg)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static double com::mxgraph::mxUtils::ToRadians </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>deg</em></td>
|
|
<td> ) </td>
|
|
<td><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Converts the given degree to radians. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a23b4c460761c0715762964202ebe2e26"></a><!-- doxytag: member="com::mxgraph::mxUtils::TranslatePoints" ref="a23b4c460761c0715762964202ebe2e26" args="(List< mxPoint > pts, double dx, double dy)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static List<<a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a>> com::mxgraph::mxUtils::TranslatePoints </td>
|
|
<td>(</td>
|
|
<td class="paramtype">List< <a class="el" href="classcom_1_1mxgraph_1_1mxPoint.html">mxPoint</a> > </td>
|
|
<td class="paramname"> <em>pts</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>dx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>dy</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td><code> [inline, static]</code></td>
|
|
</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>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>pts</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>dx</em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>dy</em> </td><td></td></tr>
|
|
</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>
|
|
</div>
|
|
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri May 25 10:15:54 2012 for mxGraph by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
|
|
</body>
|
|
</html>
|