maxGraph/java/docs/com/mxgraph/util/mxUtils.html

2720 lines
124 KiB
HTML
Raw Normal View History

2019-07-02 06:45:58 +00:00
<!DOCTYPE HTML>
2014-04-01 11:30:48 +00:00
<!-- NewPage -->
<html lang="en">
<head>
2019-07-26 16:09:51 +00:00
<!-- Generated by javadoc (11.0.3) on Fri Jul 26 16:05:09 UTC 2019 -->
<title>mxUtils (mxGraph 4.0.3 API Specification)</title>
2018-11-06 11:46:01 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2019-07-26 16:09:51 +00:00
<meta name="dc.created" content="2019-07-26">
2014-04-01 11:30:48 +00:00
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
2018-11-06 11:46:01 +00:00
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
2016-06-02 09:57:18 +00:00
<script type="text/javascript" src="../../../script.js"></script>
2018-11-06 11:46:01 +00:00
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
2019-07-02 06:45:58 +00:00
<script type="text/javascript" src="../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-migrate-3.0.1.js"></script>
2018-11-06 11:46:01 +00:00
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
2014-04-01 11:30:48 +00:00
</head>
<body>
<script type="text/javascript"><!--
2016-06-02 09:57:18 +00:00
try {
if (location.href.indexOf('is-external=true') == -1) {
2019-07-26 16:09:51 +00:00
parent.document.title="mxUtils (mxGraph 4.0.3 API Specification)";
2016-06-02 09:57:18 +00:00
}
}
catch(err) {
2012-05-21 20:32:26 +00:00
}
2014-04-01 11:30:48 +00:00
//-->
2019-07-02 06:45:58 +00:00
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":41,"i6":41,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":41,"i14":9,"i15":41,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":41,"i55":41,"i56":41,"i57":9,"i58":9,"i59":9,"i60":41,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":41,"i74":9,"i75":9,"i76":41,"i77":9,"i78":9,"i79":41,"i80":41,"i81":41,"i82":41,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9};
2016-06-02 09:57:18 +00:00
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
2019-07-02 06:45:58 +00:00
var pathtoroot = "../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
2014-04-01 11:30:48 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2019-07-02 06:45:58 +00:00
<header role="banner">
<nav role="navigation">
2018-11-06 11:46:01 +00:00
<div class="fixedNav">
2012-05-21 20:32:26 +00:00
<!-- ========= START OF TOP NAVBAR ======= -->
2019-07-02 06:45:58 +00:00
<div class="topNav"><a id="navbar.top">
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
2019-07-02 06:45:58 +00:00
<a id="navbar.top.firstrow">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
2019-07-02 06:45:58 +00:00
<li><a href="../../../index.html">Overview</a></li>
2014-04-01 11:30:48 +00:00
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2019-07-26 16:09:51 +00:00
<div class="aboutLanguage"><p><b>mxGraph 4.0.3</b></p></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
2019-07-02 06:45:58 +00:00
<li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
2014-04-01 11:30:48 +00:00
</ul>
2018-11-06 11:46:01 +00:00
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
2014-04-01 11:30:48 +00:00
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
2018-11-06 11:46:01 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2014-04-01 11:30:48 +00:00
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
</div>
2019-07-02 06:45:58 +00:00
<a id="skip.navbar.top">
2014-04-01 11:30:48 +00:00
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF TOP NAVBAR ========= -->
2018-11-06 11:46:01 +00:00
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
2019-07-02 06:45:58 +00:00
</nav>
</header>
2012-05-21 20:32:26 +00:00
<!-- ======== START OF CLASS DATA ======== -->
2019-07-02 06:45:58 +00:00
<main role="main">
2014-04-01 11:30:48 +00:00
<div class="header">
2019-07-02 06:45:58 +00:00
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.mxgraph.util</a></div>
2014-04-01 11:30:48 +00:00
<h2 title="Class mxUtils" class="title">Class mxUtils</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
2017-11-24 16:16:54 +00:00
<li>java.lang.Object</li>
2014-04-01 11:30:48 +00:00
<li>
<ul class="inheritance">
<li>com.mxgraph.util.mxUtils</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
2016-06-02 09:57:18 +00:00
<pre>public class <span class="typeNameLabel">mxUtils</span>
2017-11-24 16:16:54 +00:00
extends java.lang.Object</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Contains various helper methods for use with mxGraph.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- =========== FIELD SUMMARY =========== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="field.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Field Summary</h3>
2019-07-02 06:45:58 +00:00
<table class="memberSummary">
2014-04-01 11:30:48 +00:00
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>protected static java.awt.Graphics</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fontGraphics">fontGraphics</a></span></code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Static Graphics used for Font Metrics.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#IS_LINUX">IS_LINUX</a></span></code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">True if the machine is running a linux kernel.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#IS_MAC">IS_MAC</a></span></code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">True if the machine is a Mac.</div>
</td>
</tr>
</table>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2012-05-21 20:32:26 +00:00
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="constructor.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Constructor Summary</h3>
2019-07-02 06:45:58 +00:00
<table class="memberSummary">
2014-04-01 11:30:48 +00:00
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
2018-11-06 11:46:01 +00:00
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
<tr class="altColor">
2019-07-02 06:45:58 +00:00
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">mxUtils</a></span>()</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
</table>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2012-05-21 20:32:26 +00:00
<!-- ========== METHOD SUMMARY =========== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="method.summary">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Method Summary</h3>
2019-07-02 06:45:58 +00:00
<table class="memberSummary">
2016-06-02 09:57:18 +00:00
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
2014-04-01 11:30:48 +00:00
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
2018-11-06 11:46:01 +00:00
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i0" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static double[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arcToCurves(double,double,double,double,double,double,double,double,double)">arcToCurves</a></span>&#8203;(double&nbsp;x0,
2014-04-01 11:30:48 +00:00
double&nbsp;y0,
double&nbsp;r1,
double&nbsp;r2,
double&nbsp;angle,
double&nbsp;largeArcFlag,
double&nbsp;sweepFlag,
double&nbsp;x,
2018-11-06 11:46:01 +00:00
double&nbsp;y)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Function: arcToCurves
2012-05-21 20:32:26 +00:00
2014-04-01 11:30:48 +00:00
Converts the given arc to a series of curves.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i1" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearRect(java.awt.Graphics2D,java.awt.Rectangle,java.awt.Color)">clearRect</a></span>&#8203;(java.awt.Graphics2D&nbsp;g,
2017-11-24 16:16:54 +00:00
java.awt.Rectangle&nbsp;rect,
2018-11-06 11:46:01 +00:00
java.awt.Color&nbsp;background)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Clears the given area of the specified graphics object with the given
color or makes the region transparent.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i2" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#contains(java.lang.Object%5B%5D,java.lang.Object)">contains</a></span>&#8203;(java.lang.Object[]&nbsp;array,
2018-11-06 11:46:01 +00:00
java.lang.Object&nbsp;obj)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given array contains the given object.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i3" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.image.BufferedImage</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createBufferedImage(int,int,java.awt.Color)">createBufferedImage</a></span>&#8203;(int&nbsp;w,
2014-04-01 11:30:48 +00:00
int&nbsp;h,
2018-11-06 11:46:01 +00:00
java.awt.Color&nbsp;background)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Creates a buffered image for the given parameters.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i4" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.image.BufferedImage</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createBufferedImage(int,int,java.awt.Color,int)">createBufferedImage</a></span>&#8203;(int&nbsp;w,
2015-10-01 10:34:51 +00:00
int&nbsp;h,
2017-11-24 16:16:54 +00:00
java.awt.Color&nbsp;background,
2018-11-06 11:46:01 +00:00
int&nbsp;type)</code></th>
<td class="colLast">
2015-10-01 10:34:51 +00:00
<div class="block">Creates a buffered image for the given parameters.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i5" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createDocument()">createDocument</a></span>()</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createDocument</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i6" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument()">createHtmlDocument</a></span>()</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createHtmlDocument</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i7" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.util.Map,java.lang.String)">createHtmlDocument</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;text)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i8" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.util.Map,java.lang.String,double)">createHtmlDocument</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i9" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.util.Map,java.lang.String,double,int)">createHtmlDocument</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
2014-04-01 11:30:48 +00:00
double&nbsp;scale,
2018-11-06 11:46:01 +00:00
int&nbsp;width)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i10" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.util.Map,java.lang.String,double,int,java.lang.String)">createHtmlDocument</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
2014-04-01 11:30:48 +00:00
double&nbsp;scale,
int&nbsp;width,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;head)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i11" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocument(java.util.Map,java.lang.String,double,int,java.lang.String,java.lang.String)">createHtmlDocument</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
2014-04-01 11:30:48 +00:00
double&nbsp;scale,
int&nbsp;width,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;head,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;bodyCss)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i12" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static javax.swing.text.html.HTMLDocument</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHtmlDocumentObject(java.util.Map,double)">createHtmlDocumentObject</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i13" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSvgDocument(int,int)">createSvgDocument</a></span>&#8203;(int&nbsp;width,
2018-11-06 11:46:01 +00:00
int&nbsp;height)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createSvgDocument(int, int)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i14" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Element</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTable(org.w3c.dom.Document,java.lang.String,int,int,int,int,double,java.util.Map)">createTable</a></span>&#8203;(org.w3c.dom.Document&nbsp;document,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
2014-04-01 11:30:48 +00:00
int&nbsp;x,
int&nbsp;y,
int&nbsp;w,
int&nbsp;h,
double&nbsp;scale,
2019-07-02 06:45:58 +00:00
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Creates a table for the given text using the given document to create the
DOM nodes.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i15" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createVmlDocument()">createVmlDocument</a></span>()</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createVmlDocument</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i16" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drawImageClip(java.awt.Graphics,java.awt.image.BufferedImage,java.awt.image.ImageObserver)">drawImageClip</a></span>&#8203;(java.awt.Graphics&nbsp;g,
2017-11-24 16:16:54 +00:00
java.awt.image.BufferedImage&nbsp;image,
2018-11-06 11:46:01 +00:00
java.awt.image.ImageObserver&nbsp;observer)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Draws the image inside the clip bounds to the given graphics object.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i17" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.Object</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#eval(java.lang.String)">eval</a></span>&#8203;(java.lang.String&nbsp;expression)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Evaluates a Java expression as a class member using mxCodecRegistry.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i18" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fillClippedRect(java.awt.Graphics,int,int,int,int)">fillClippedRect</a></span>&#8203;(java.awt.Graphics&nbsp;g,
2014-04-01 11:30:48 +00:00
int&nbsp;x,
int&nbsp;y,
int&nbsp;width,
2018-11-06 11:46:01 +00:00
int&nbsp;height)</code></th>
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i19" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findNearestSegment(com.mxgraph.view.mxCellState,double,double)">findNearestSegment</a></span>&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2014-04-01 11:30:48 +00:00
double&nbsp;x,
2018-11-06 11:46:01 +00:00
double&nbsp;y)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Finds the index of the nearest segment on the given cell state for the
specified coordinate pair.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i20" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Node</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findNode(org.w3c.dom.Node,java.lang.String,java.lang.String)">findNode</a></span>&#8203;(org.w3c.dom.Node&nbsp;node,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;attr,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;value)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the first node where attr equals value.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i21" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#firstCharAt(java.lang.String,int,int)">firstCharAt</a></span>&#8203;(java.lang.String&nbsp;text,
2014-04-01 11:30:48 +00:00
int&nbsp;inputChar,
2018-11-06 11:46:01 +00:00
int&nbsp;fromIndex)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Find the first character matching the input character in the given
string where the character has no letter preceding it.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i22" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBodyMarkup(java.lang.String,boolean)">getBodyMarkup</a></span>&#8203;(java.lang.String&nbsp;markup,
2018-11-06 11:46:01 +00:00
boolean&nbsp;replaceLinefeeds)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the body part of the given HTML markup.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i23" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBoundingBox(com.mxgraph.util.mxRectangle,double)">getBoundingBox</a></span>&#8203;(<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;rect,
2018-11-06 11:46:01 +00:00
double&nbsp;rotation)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the bounding box for the rotated rectangle.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i24" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Color</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getColor(java.util.Map,java.lang.String)">getColor</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a color or null if no value is
defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i25" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Color</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getColor(java.util.Map,java.lang.String,java.awt.Color)">getColor</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
java.awt.Color&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a color or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i26" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static double</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDouble(java.util.Map,java.lang.String)">getDouble</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a double or 0 if no value is
defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i27" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static double</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDouble(java.util.Map,java.lang.String,double)">getDouble</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
double&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a double or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i28" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static float</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFloat(java.util.Map,java.lang.String)">getFloat</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float or 0 if no value is
defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i29" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static float</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFloat(java.util.Map,java.lang.String,float)">getFloat</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
float&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i30" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static float[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFloatArray(java.util.Map,java.lang.String,float%5B%5D)">getFloatArray</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
float[]&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float array or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i31" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static float[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFloatArray(java.util.Map,java.lang.String,float%5B%5D,java.lang.String)">getFloatArray</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2014-04-01 11:30:48 +00:00
float[]&nbsp;defaultValue,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;separator)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float array or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i32" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Font</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFont(java.util.Map)">getFont</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i33" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Font</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFont(java.util.Map,double)">getFont</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i34" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.FontMetrics</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFontMetrics(java.awt.Font)">getFontMetrics</a></span>&#8203;(java.awt.Font&nbsp;font)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the font metrics of the static font graphics instance</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i35" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHexColorString(java.awt.Color)">getHexColorString</a></span>&#8203;(java.awt.Color&nbsp;color)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a hex representation for the given color.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i36" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInt(java.util.Map,java.lang.String)">getInt</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as an int or 0 if no value is
defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i37" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInt(java.util.Map,java.lang.String,int)">getInt</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
int&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as an int or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i38" class="altColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLabelPaintBounds(java.lang.String,java.util.Map,boolean,com.mxgraph.util.mxPoint,com.mxgraph.util.mxRectangle,double)">getLabelPaintBounds</a></span>&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2014-04-01 11:30:48 +00:00
boolean&nbsp;isHtml,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset,
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;vertexBounds,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the paint bounds for the given label.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i39" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLabelPaintBounds(java.lang.String,java.util.Map,boolean,com.mxgraph.util.mxPoint,com.mxgraph.util.mxRectangle,double,boolean)">getLabelPaintBounds</a></span>&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2014-04-01 11:30:48 +00:00
boolean&nbsp;isHtml,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset,
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;vertexBounds,
2013-12-09 08:35:20 +00:00
double&nbsp;scale,
2018-11-06 11:46:01 +00:00
boolean&nbsp;isEdge)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the paint bounds for the given label.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i40" class="altColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLabelSize(java.lang.String,java.util.Map,boolean,double)">getLabelSize</a></span>&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2014-04-01 11:30:48 +00:00
boolean&nbsp;isHtml,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the size for the given label.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i41" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLabelSize(java.lang.String,java.util.Map,boolean,double,double)">getLabelSize</a></span>&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2014-04-01 11:30:48 +00:00
boolean&nbsp;isHtml,
2012-05-21 20:32:26 +00:00
double&nbsp;scale,
2018-11-06 11:46:01 +00:00
double&nbsp;htmlWrapWidth)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the size for the given label.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i42" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMd5Hash(java.lang.String)">getMd5Hash</a></span>&#8203;(java.lang.String&nbsp;text)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the Md5 hash for the given text.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i43" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPortConstraints(com.mxgraph.view.mxCellState,com.mxgraph.view.mxCellState,boolean)">getPortConstraints</a></span>&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;terminal,
<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;edge,
2018-11-06 11:46:01 +00:00
boolean&nbsp;source)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns an integer mask of the port constraints of the given map</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i44" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPortConstraints(com.mxgraph.view.mxCellState,com.mxgraph.view.mxCellState,boolean,int)">getPortConstraints</a></span>&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;terminal,
<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;edge,
2014-04-01 11:30:48 +00:00
boolean&nbsp;source,
2018-11-06 11:46:01 +00:00
int&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns an integer mask of the port constraints of the given map</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i45" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPrettyXml(org.w3c.dom.Node)">getPrettyXml</a></span>&#8203;(org.w3c.dom.Node&nbsp;node)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a pretty-printed XML string for the given node.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i46" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPrettyXml(org.w3c.dom.Node,java.lang.String,java.lang.String)">getPrettyXml</a></span>&#8203;(org.w3c.dom.Node&nbsp;node,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;tab,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;indent)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a pretty-printed XML string for the given node.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i47" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotatedPoint(com.mxgraph.util.mxPoint,double,double)">getRotatedPoint</a></span>&#8203;(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;pt,
2014-04-01 11:30:48 +00:00
double&nbsp;cos,
2018-11-06 11:46:01 +00:00
double&nbsp;sin)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Rotates the given point by the given cos and sin.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i48" class="altColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotatedPoint(com.mxgraph.util.mxPoint,double,double,com.mxgraph.util.mxPoint)">getRotatedPoint</a></span>&#8203;(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;pt,
2014-04-01 11:30:48 +00:00
double&nbsp;cos,
double&nbsp;sin,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;c)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Rotates the given point by the given cos and sin.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i49" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaledLabelBounds(double,double,com.mxgraph.util.mxRectangle,double,double,java.util.Map,double)">getScaledLabelBounds</a></span>&#8203;(double&nbsp;x,
2014-04-01 11:30:48 +00:00
double&nbsp;y,
2019-07-02 06:45:58 +00:00
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;size,
2014-04-01 11:30:48 +00:00
double&nbsp;outerWidth,
double&nbsp;outerHeight,
2019-07-02 06:45:58 +00:00
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the bounds for a label for the given location and size, taking
2012-05-21 20:32:26 +00:00
into account the alignment and spacing in the specified style, as well as
2014-04-01 11:30:48 +00:00
the width and height of the rectangle that contains the label.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i50" class="altColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSizeForHtml(java.lang.String,java.util.Map,double,double)">getSizeForHtml</a></span>&#8203;(java.lang.String&nbsp;markup,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2014-04-01 11:30:48 +00:00
double&nbsp;scale,
2018-11-06 11:46:01 +00:00
double&nbsp;wrapWidth)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns an mxRectangle with the size (width and height in pixels) of the
given HTML markup.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i51" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSizeForString(java.lang.String,java.awt.Font,double)">getSizeForString</a></span>&#8203;(java.lang.String&nbsp;text,
2017-11-24 16:16:54 +00:00
java.awt.Font&nbsp;font,
2018-11-06 11:46:01 +00:00
double&nbsp;scale)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns an <mxRectangle> with the size (width and height in pixels) of
the given string.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i52" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getString(java.util.Map,java.lang.String)">getString</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a string or null if no value
is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i53" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getString(java.util.Map,java.lang.String,java.lang.String)">getString</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a string or the given default
value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i54" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStylename(java.lang.String)">getStylename</a></span>&#8203;(java.lang.String&nbsp;style)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.getStylename(String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i55" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStylenames(java.lang.String)">getStylenames</a></span>&#8203;(java.lang.String&nbsp;style)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.getStylenames(String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i56" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getXml(org.w3c.dom.Node)">getXml</a></span>&#8203;(org.w3c.dom.Node&nbsp;node)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxXmlUtils.getXml(Node)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i57" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hexString(java.awt.Color)">hexString</a></span>&#8203;(java.awt.Color&nbsp;color)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i58" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#htmlEntities(java.lang.String)">htmlEntities</a></span>&#8203;(java.lang.String&nbsp;text)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Converts the ampersand, quote, prime, less-than and greater-than
characters to their corresponding HTML entities in the given string.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i59" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexOf(java.lang.Object%5B%5D,java.lang.Object)">indexOf</a></span>&#8203;(java.lang.Object[]&nbsp;array,
2018-11-06 11:46:01 +00:00
java.lang.Object&nbsp;obj)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the index of the given object in the given array of -1 if the
object is not contained in the array.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i60" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#indexOfStylename(java.lang.String,java.lang.String)">indexOfStylename</a></span>&#8203;(java.lang.String&nbsp;style,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;stylename)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.indexOfStylename(String, String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i61" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static <a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersection(double,double,double,double,double,double,double,double)">intersection</a></span>&#8203;(double&nbsp;x0,
2014-04-01 11:30:48 +00:00
double&nbsp;y0,
double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2,
double&nbsp;x3,
2018-11-06 11:46:01 +00:00
double&nbsp;y3)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the intersection of two lines as an mxPoint.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i62" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectsHotspot(com.mxgraph.view.mxCellState,int,int,double)">intersectsHotspot</a></span>&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2014-04-01 11:30:48 +00:00
int&nbsp;x,
int&nbsp;y,
2018-11-06 11:46:01 +00:00
double&nbsp;hotspot)</code></th>
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i63" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#intersectsHotspot(com.mxgraph.view.mxCellState,int,int,double,int,int)">intersectsHotspot</a></span>&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2014-04-01 11:30:48 +00:00
int&nbsp;x,
int&nbsp;y,
double&nbsp;hotspot,
int&nbsp;min,
2018-11-06 11:46:01 +00:00
int&nbsp;max)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given coordinate pair intersects the hotspot of the
given state.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i64" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNode(java.lang.Object,java.lang.String)">isNode</a></span>&#8203;(java.lang.Object&nbsp;value,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;nodeName)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the user object is an XML node with the specified type
2012-05-21 20:32:26 +00:00
and and the optional attribute has the specified value or is not
2014-04-01 11:30:48 +00:00
specified.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i65" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNode(java.lang.Object,java.lang.String,java.lang.String,java.lang.String)">isNode</a></span>&#8203;(java.lang.Object&nbsp;value,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;nodeName,
java.lang.String&nbsp;attributeName,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;attributeValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given value is an XML node with the node name and if
the optional attribute has the specified value.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i66" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTrue(java.util.Map,java.lang.String)">isTrue</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;key)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the dictionary contains true for the given key or false
if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i67" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static boolean</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTrue(java.util.Map,java.lang.String,boolean)">isTrue</a></span>&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
boolean&nbsp;defaultValue)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the dictionary contains true for the given key or the
given default value if no value is defined for the key.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i68" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#loadDocument(java.lang.String)">loadDocument</a></span>&#8203;(java.lang.String&nbsp;uri)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new DOM document for the given URI.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i69" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.image.BufferedImage</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#loadImage(java.lang.String)">loadImage</a></span>&#8203;(java.lang.String&nbsp;url)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Loads an image from the local filesystem, a data URI or any other URL.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i70" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Color</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseColor(java.lang.String)">parseColor</a></span>&#8203;(java.lang.String&nbsp;colorString)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2016-04-06 08:10:17 +00:00
<div class="block">Shortcut for parseColor with no transparency.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i71" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.awt.Color</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseColor(java.lang.String,double)">parseColor</a></span>&#8203;(java.lang.String&nbsp;colorString,
2018-11-06 11:46:01 +00:00
double&nbsp;alpha)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Convert a string representing a 24/32bit hex color value into a Color
object.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i72" class="altColor">
2015-06-18 15:23:41 +00:00
<td class="colFirst"><code>static float[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseDashPattern(java.lang.String)">parseDashPattern</a></span>&#8203;(java.lang.String&nbsp;dashPatternString)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2015-06-18 15:23:41 +00:00
<div class="block">Convert a string representing a dash pattern into a float array.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i73" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static org.w3c.dom.Document</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parseXml(java.lang.String)">parseXml</a></span>&#8203;(java.lang.String&nbsp;xml)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxXmlUtils.parseXml</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i74" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readFile(java.lang.String)">readFile</a></span>&#8203;(java.lang.String&nbsp;filename)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Reads the given filename into a string.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i75" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readInputStream(java.io.InputStream)">readInputStream</a></span>&#8203;(java.io.InputStream&nbsp;stream)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Reads the given filename into a string.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i76" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllStylenames(java.lang.String)">removeAllStylenames</a></span>&#8203;(java.lang.String&nbsp;style)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.removeAllStylenames(String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i77" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static int</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#reversePortConstraints(int)">reversePortConstraints</a></span>&#8203;(int&nbsp;constraint)</code></th>
2018-11-06 11:46:01 +00:00
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i78" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAntiAlias(java.awt.Graphics2D,boolean,boolean)">setAntiAlias</a></span>&#8203;(java.awt.Graphics2D&nbsp;g,
2014-04-01 11:30:48 +00:00
boolean&nbsp;antiAlias,
2018-11-06 11:46:01 +00:00
boolean&nbsp;textAntiAlias)</code></th>
<td class="colLast">&nbsp;</td>
2014-04-01 11:30:48 +00:00
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i79" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCellStyleFlags(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D,java.lang.String,int,java.lang.Boolean)">setCellStyleFlags</a></span>&#8203;(<a href="../model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a>&nbsp;model,
2017-11-24 16:16:54 +00:00
java.lang.Object[]&nbsp;cells,
java.lang.String&nbsp;key,
2014-04-01 11:30:48 +00:00
int&nbsp;flag,
2018-11-06 11:46:01 +00:00
java.lang.Boolean&nbsp;value)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i80" class="altColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCellStyles(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D,java.lang.String,java.lang.String)">setCellStyles</a></span>&#8203;(<a href="../model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a>&nbsp;model,
2017-11-24 16:16:54 +00:00
java.lang.Object[]&nbsp;cells,
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i81" class="rowColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStyle(java.lang.String,java.lang.String,java.lang.String)">setStyle</a></span>&#8203;(java.lang.String&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;value)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setStyle(String, String, String)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i82" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStyleFlag(java.lang.String,java.lang.String,int,java.lang.Boolean)">setStyleFlag</a></span>&#8203;(java.lang.String&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2014-04-01 11:30:48 +00:00
int&nbsp;flag,
2018-11-06 11:46:01 +00:00
java.lang.Boolean&nbsp;value)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setStyleFlag(String, String, int, Boolean)</code> (Jan 2012)</div>
2014-04-01 11:30:48 +00:00
</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i83" class="rowColor">
2018-11-06 11:46:01 +00:00
<td class="colFirst"><code>static java.lang.Object[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortCells(java.lang.Object%5B%5D,boolean)">sortCells</a></span>&#8203;(java.lang.Object[]&nbsp;cells,
2018-11-06 11:46:01 +00:00
boolean&nbsp;ascending)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sorts the given cells according to the order in the cell hierarchy.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i84" class="altColor">
2018-11-06 11:46:01 +00:00
<td class="colFirst"><code>static java.util.Collection&lt;java.lang.Object&gt;</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortCells(java.util.Collection,boolean)">sortCells</a></span>&#8203;(java.util.Collection&lt;java.lang.Object&gt;&nbsp;cells,
2018-11-06 11:46:01 +00:00
boolean&nbsp;ascending)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Sorts the given cells according to the order in the cell hierarchy.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i85" class="rowColor">
2019-07-02 06:45:58 +00:00
<td class="colFirst"><code>static java.util.List&lt;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#translatePoints(java.util.List,double,double)">translatePoints</a></span>&#8203;(java.util.List&lt;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;pts,
2014-04-01 11:30:48 +00:00
double&nbsp;dx,
2018-11-06 11:46:01 +00:00
double&nbsp;dy)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Creates a new list of new points obtained by translating the points in
the given list by the given vector.</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i86" class="altColor">
2017-11-24 16:16:54 +00:00
<td class="colFirst"><code>static java.lang.String[]</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#wordWrap(java.lang.String,java.awt.FontMetrics,double)">wordWrap</a></span>&#8203;(java.lang.String&nbsp;text,
2017-11-24 16:16:54 +00:00
java.awt.FontMetrics&nbsp;metrics,
2018-11-06 11:46:01 +00:00
double&nbsp;width)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Returns the specified text in lines that fit within the specified
width when the specified font metrics are applied to the text</div>
</td>
</tr>
2016-06-02 09:57:18 +00:00
<tr id="i87" class="rowColor">
2014-04-01 11:30:48 +00:00
<td class="colFirst"><code>static void</code></td>
2019-07-02 06:45:58 +00:00
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#writeFile(java.lang.String,java.lang.String)">writeFile</a></span>&#8203;(java.lang.String&nbsp;contents,
2018-11-06 11:46:01 +00:00
java.lang.String&nbsp;filename)</code></th>
<td class="colLast">
2014-04-01 11:30:48 +00:00
<div class="block">Writes the given string into the given file.</div>
</td>
</tr>
</table>
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
2017-11-24 16:16:54 +00:00
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
2014-04-01 11:30:48 +00:00
</ul>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2014-04-01 11:30:48 +00:00
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
2012-05-21 20:32:26 +00:00
<!-- ============ FIELD DETAIL =========== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="field.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Field Detail</h3>
2019-07-02 06:45:58 +00:00
<a id="IS_MAC">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IS_MAC</h4>
<pre>public static&nbsp;boolean IS_MAC</pre>
<div class="block">True if the machine is a Mac.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="IS_LINUX">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IS_LINUX</h4>
<pre>public static&nbsp;boolean IS_LINUX</pre>
<div class="block">True if the machine is running a linux kernel.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="fontGraphics">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fontGraphics</h4>
2017-11-24 16:16:54 +00:00
<pre>protected static transient&nbsp;java.awt.Graphics fontGraphics</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Static Graphics used for Font Metrics.</div>
</li>
</ul>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2012-05-21 20:32:26 +00:00
<!-- ========= CONSTRUCTOR DETAIL ======== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="constructor.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Constructor Detail</h3>
2019-07-02 06:45:58 +00:00
<a id="&lt;init&gt;()">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxUtils</h4>
<pre>public&nbsp;mxUtils()</pre>
</li>
</ul>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2012-05-21 20:32:26 +00:00
<!-- ============ METHOD DETAIL ========== -->
2019-07-02 06:45:58 +00:00
<section role="region">
2014-04-01 11:30:48 +00:00
<ul class="blockList">
2019-07-02 06:45:58 +00:00
<li class="blockList"><a id="method.detail">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<h3>Method Detail</h3>
2019-07-02 06:45:58 +00:00
<a id="getLabelSize(java.lang.String,java.util.Map,boolean,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLabelSize</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getLabelSize&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
boolean&nbsp;isHtml,
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the size for the given label. If isHtml is true then any HTML
2012-05-21 20:32:26 +00:00
markup in the label is computed as HTML and all newlines inside the HTML
2014-04-01 11:30:48 +00:00
body are converted into linebreaks.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getLabelSize(java.lang.String,java.util.Map,boolean,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLabelSize</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getLabelSize&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
boolean&nbsp;isHtml,
double&nbsp;scale,
double&nbsp;htmlWrapWidth)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the size for the given label. If isHtml is true then any HTML
2012-05-21 20:32:26 +00:00
markup in the label is computed as HTML and all newlines inside the HTML
2014-04-01 11:30:48 +00:00
body are converted into linebreaks.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getBodyMarkup(java.lang.String,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBodyMarkup</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getBodyMarkup&#8203;(java.lang.String&nbsp;markup,
2017-11-24 16:16:54 +00:00
boolean&nbsp;replaceLinefeeds)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the body part of the given HTML markup.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getLabelPaintBounds(java.lang.String,java.util.Map,boolean,com.mxgraph.util.mxPoint,com.mxgraph.util.mxRectangle,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLabelPaintBounds</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getLabelPaintBounds&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
boolean&nbsp;isHtml,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset,
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;vertexBounds,
2016-06-02 09:57:18 +00:00
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the paint bounds for the given label.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getLabelPaintBounds(java.lang.String,java.util.Map,boolean,com.mxgraph.util.mxPoint,com.mxgraph.util.mxRectangle,double,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLabelPaintBounds</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getLabelPaintBounds&#8203;(java.lang.String&nbsp;label,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
boolean&nbsp;isHtml,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;offset,
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;vertexBounds,
2016-06-02 09:57:18 +00:00
double&nbsp;scale,
boolean&nbsp;isEdge)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the paint bounds for the given label.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getScaledLabelBounds(double,double,com.mxgraph.util.mxRectangle,double,double,java.util.Map,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaledLabelBounds</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getScaledLabelBounds&#8203;(double&nbsp;x,
2016-06-02 09:57:18 +00:00
double&nbsp;y,
2019-07-02 06:45:58 +00:00
<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;size,
2016-06-02 09:57:18 +00:00
double&nbsp;outerWidth,
double&nbsp;outerHeight,
2019-07-02 06:45:58 +00:00
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the bounds for a label for the given location and size, taking
2012-05-21 20:32:26 +00:00
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
2014-04-01 11:30:48 +00:00
size and the spacings in the specified style.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFontMetrics(java.awt.Font)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFontMetrics</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.FontMetrics&nbsp;getFontMetrics&#8203;(java.awt.Font&nbsp;font)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the font metrics of the static font graphics instance</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>font</code> - The font whose metrics are to be returned</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the font metrics of the specified font</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getSizeForString(java.lang.String,java.awt.Font,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSizeForString</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getSizeForString&#8203;(java.lang.String&nbsp;text,
2017-11-24 16:16:54 +00:00
java.awt.Font&nbsp;font,
2016-06-02 09:57:18 +00:00
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns an <mxRectangle> with the size (width and height in pixels) of
the given string.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - String whose size should be returned.</dd>
<dd><code>font</code> - Font to be used for the computation.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="wordWrap(java.lang.String,java.awt.FontMetrics,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wordWrap</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String[]&nbsp;wordWrap&#8203;(java.lang.String&nbsp;text,
2017-11-24 16:16:54 +00:00
java.awt.FontMetrics&nbsp;metrics,
double&nbsp;width)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the specified text in lines that fit within the specified
width when the specified font metrics are applied to the text</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - the text to wrap</dd>
<dd><code>metrics</code> - the font metrics to calculate the text size for</dd>
<dd><code>width</code> - the width that the text must fit within</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the input text split in lines that fit the specified width</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getSizeForHtml(java.lang.String,java.util.Map,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSizeForHtml</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getSizeForHtml&#8203;(java.lang.String&nbsp;markup,
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2016-06-02 09:57:18 +00:00
double&nbsp;scale,
double&nbsp;wrapWidth)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns an mxRectangle with the size (width and height in pixels) of the
given HTML markup.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>markup</code> - HTML markup whose size should be returned.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="arcToCurves(double,double,double,double,double,double,double,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arcToCurves</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;double[]&nbsp;arcToCurves&#8203;(double&nbsp;x0,
2016-06-02 09:57:18 +00:00
double&nbsp;y0,
double&nbsp;r1,
double&nbsp;r2,
double&nbsp;angle,
double&nbsp;largeArcFlag,
double&nbsp;sweepFlag,
double&nbsp;x,
double&nbsp;y)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Function: arcToCurves
2012-05-21 20:32:26 +00:00
2014-04-01 11:30:48 +00:00
Converts the given arc to a series of curves.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getBoundingBox(com.mxgraph.util.mxRectangle,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBoundingBox</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;getBoundingBox&#8203;(<a href="mxRectangle.html" title="class in com.mxgraph.util">mxRectangle</a>&nbsp;rect,
2016-06-02 09:57:18 +00:00
double&nbsp;rotation)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the bounding box for the rotated rectangle.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="firstCharAt(java.lang.String,int,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>firstCharAt</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;firstCharAt&#8203;(java.lang.String&nbsp;text,
2016-06-02 09:57:18 +00:00
int&nbsp;inputChar,
int&nbsp;fromIndex)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Find the first character matching the input character in the given
string where the character has no letter preceding it.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - the string to test for the presence of the input character</dd>
<dd><code>inputChar</code> - the test character</dd>
<dd><code>fromIndex</code> - the index position of the string to start from</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the position of the first character matching the input character
in the given string where the character has no letter preceding it.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getRotatedPoint(com.mxgraph.util.mxPoint,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotatedPoint</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getRotatedPoint&#8203;(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;pt,
2016-06-02 09:57:18 +00:00
double&nbsp;cos,
double&nbsp;sin)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Rotates the given point by the given cos and sin.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="findNearestSegment(com.mxgraph.view.mxCellState,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findNearestSegment</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;findNearestSegment&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2016-06-02 09:57:18 +00:00
double&nbsp;x,
double&nbsp;y)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Finds the index of the nearest segment on the given cell state for the
specified coordinate pair.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getRotatedPoint(com.mxgraph.util.mxPoint,double,double,com.mxgraph.util.mxPoint)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotatedPoint</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;getRotatedPoint&#8203;(<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;pt,
2016-06-02 09:57:18 +00:00
double&nbsp;cos,
double&nbsp;sin,
2019-07-02 06:45:58 +00:00
<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;c)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Rotates the given point by the given cos and sin.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getPortConstraints(com.mxgraph.view.mxCellState,com.mxgraph.view.mxCellState,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPortConstraints</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;getPortConstraints&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;terminal,
<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;edge,
2016-06-02 09:57:18 +00:00
boolean&nbsp;source)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns an integer mask of the port constraints of the given map</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>terminal</code> - the cached cell state of the cell to determine the
port constraints for</dd>
<dd><code>edge</code> - the edge connected to the constrained terminal</dd>
<dd><code>source</code> - whether or not the edge specified is connected to the
2014-04-01 11:30:48 +00:00
terminal specified at its source end</dd>
2016-06-02 09:57:18 +00:00
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the mask of port constraint directions</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getPortConstraints(com.mxgraph.view.mxCellState,com.mxgraph.view.mxCellState,boolean,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPortConstraints</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;getPortConstraints&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;terminal,
<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;edge,
2016-06-02 09:57:18 +00:00
boolean&nbsp;source,
int&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns an integer mask of the port constraints of the given map</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>terminal</code> - the cached cell state of the cell to determine the
port constraints for</dd>
<dd><code>edge</code> - the edge connected to the constrained terminal</dd>
<dd><code>source</code> - whether or not the edge specified is connected to the
terminal specified at its source end</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the mask of port constraint directions</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="reversePortConstraints(int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reversePortConstraints</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;reversePortConstraints&#8203;(int&nbsp;constraint)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="drawImageClip(java.awt.Graphics,java.awt.image.BufferedImage,java.awt.image.ImageObserver)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawImageClip</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;drawImageClip&#8203;(java.awt.Graphics&nbsp;g,
2017-11-24 16:16:54 +00:00
java.awt.image.BufferedImage&nbsp;image,
java.awt.image.ImageObserver&nbsp;observer)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Draws the image inside the clip bounds to the given graphics object.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="fillClippedRect(java.awt.Graphics,int,int,int,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillClippedRect</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;fillClippedRect&#8203;(java.awt.Graphics&nbsp;g,
2016-06-02 09:57:18 +00:00
int&nbsp;x,
int&nbsp;y,
int&nbsp;width,
int&nbsp;height)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="translatePoints(java.util.List,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translatePoints</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.util.List&lt;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;translatePoints&#8203;(java.util.List&lt;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&gt;&nbsp;pts,
2017-11-24 16:16:54 +00:00
double&nbsp;dx,
double&nbsp;dy)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Creates a new list of new points obtained by translating the points in
2012-05-21 20:32:26 +00:00
the given list by the given vector. Elements that are not mxPoints are
2014-04-01 11:30:48 +00:00
added to the result as-is.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="intersection(double,double,double,double,double,double,double,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intersection</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;<a href="mxPoint.html" title="class in com.mxgraph.util">mxPoint</a>&nbsp;intersection&#8203;(double&nbsp;x0,
2016-06-02 09:57:18 +00:00
double&nbsp;y0,
double&nbsp;x1,
double&nbsp;y1,
double&nbsp;x2,
double&nbsp;y2,
double&nbsp;x3,
double&nbsp;y3)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the intersection of two lines as an mxPoint.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x0</code> - X-coordinate of the first line's startpoint.</dd>
<dd><code>y0</code> - Y-coordinate of the first line's startpoint.</dd>
<dd><code>x1</code> - X-coordinate of the first line's endpoint.</dd>
<dd><code>y1</code> - Y-coordinate of the first line's endpoint.</dd>
<dd><code>x2</code> - X-coordinate of the second line's startpoint.</dd>
<dd><code>y2</code> - Y-coordinate of the second line's startpoint.</dd>
<dd><code>x3</code> - X-coordinate of the second line's endpoint.</dd>
<dd><code>y3</code> - Y-coordinate of the second line's endpoint.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the intersection between the two lines.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="sortCells(java.lang.Object[],boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sortCells</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.Object[]&nbsp;sortCells&#8203;(java.lang.Object[]&nbsp;cells,
2017-11-24 16:16:54 +00:00
boolean&nbsp;ascending)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sorts the given cells according to the order in the cell hierarchy.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="sortCells(java.util.Collection,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sortCells</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.util.Collection&lt;java.lang.Object&gt;&nbsp;sortCells&#8203;(java.util.Collection&lt;java.lang.Object&gt;&nbsp;cells,
2017-11-24 16:16:54 +00:00
boolean&nbsp;ascending)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Sorts the given cells according to the order in the cell hierarchy.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="contains(java.lang.Object[],java.lang.Object)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;contains&#8203;(java.lang.Object[]&nbsp;array,
2017-11-24 16:16:54 +00:00
java.lang.Object&nbsp;obj)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given array contains the given object.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="indexOf(java.lang.Object[],java.lang.Object)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOf</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;indexOf&#8203;(java.lang.Object[]&nbsp;array,
2017-11-24 16:16:54 +00:00
java.lang.Object&nbsp;obj)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the index of the given object in the given array of -1 if the
object is not contained in the array.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getStylename(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStylename</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getStylename&#8203;(java.lang.String&nbsp;style)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.getStylename(String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">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.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>style</code> - String of the form stylename[;key=value].</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the stylename from the given formatted string.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getStylenames(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStylenames</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String[]&nbsp;getStylenames&#8203;(java.lang.String&nbsp;style)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.getStylenames(String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">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.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>style</code> - String of the form stylename[;stylename][;key=value].</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the stylename from the given formatted string.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="indexOfStylename(java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfStylename</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;indexOfStylename&#8203;(java.lang.String&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;stylename)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.indexOfStylename(String, String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the index of the given stylename in the given style. This returns
2012-05-21 20:32:26 +00:00
-1 if the given stylename does not occur (as a stylename) in the given
2014-04-01 11:30:48 +00:00
style, otherwise it returns the index of the first character.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="removeAllStylenames(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAllStylenames</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;removeAllStylenames&#8203;(java.lang.String&nbsp;style)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.removeAllStylenames(String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Removes all stylenames from the given style and returns the updated
style.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="setCellStyles(com.mxgraph.model.mxIGraphModel,java.lang.Object[],java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCellStyles</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;setCellStyles&#8203;(<a href="../model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a>&nbsp;model,
2017-11-24 16:16:54 +00:00
java.lang.Object[]&nbsp;cells,
java.lang.String&nbsp;key,
java.lang.String&nbsp;value)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setCellStyles(mxIGraphModel, Object[], String, String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">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.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>model</code> - Model to execute the transaction in.</dd>
<dd><code>cells</code> - Array of cells to be updated.</dd>
<dd><code>key</code> - Key of the style to be changed.</dd>
<dd><code>value</code> - New value for the given key.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="setStyle(java.lang.String,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStyle</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;setStyle&#8203;(java.lang.String&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
java.lang.String&nbsp;value)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setStyle(String, String, String)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Adds or removes the given key, value pair to the style and returns the
2012-05-21 20:32:26 +00:00
new style. If value is null or zero length then the key is removed from
2014-04-01 11:30:48 +00:00
the style.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>style</code> - String of the form <code>stylename[;key=value]</code>.</dd>
<dd><code>key</code> - Key of the style to be changed.</dd>
<dd><code>value</code> - New value for the given key.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the new style.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="setCellStyleFlags(com.mxgraph.model.mxIGraphModel,java.lang.Object[],java.lang.String,int,java.lang.Boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCellStyleFlags</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;setCellStyleFlags&#8203;(<a href="../model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a>&nbsp;model,
2017-11-24 16:16:54 +00:00
java.lang.Object[]&nbsp;cells,
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
int&nbsp;flag,
2017-11-24 16:16:54 +00:00
java.lang.Boolean&nbsp;value)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setCellStyleFlags(mxIGraphModel, Object[],String, int, Boolean)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Sets or toggles the flag bit for the given key in the cell's styles. If
2012-05-21 20:32:26 +00:00
value is null then the flag is toggled.
<code>
mxUtils.setCellStyleFlags(graph.getModel(),
cells,
mxConstants.STYLE_FONTSTYLE,
mxConstants.FONT_BOLD, null);
</code>
2014-04-01 11:30:48 +00:00
Toggles the bold font style.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>model</code> - Model that contains the cells.</dd>
<dd><code>cells</code> - Array of cells to change the style for.</dd>
<dd><code>key</code> - Key of the style to be changed.</dd>
<dd><code>flag</code> - Integer for the bit to be changed.</dd>
<dd><code>value</code> - Optional boolean value for the flag.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="setStyleFlag(java.lang.String,java.lang.String,int,java.lang.Boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStyleFlag</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;setStyleFlag&#8203;(java.lang.String&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
int&nbsp;flag,
java.lang.Boolean&nbsp;value)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxStyleUtils.setStyleFlag(String, String, int, Boolean)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Sets or removes the given key from the specified style and returns the
new style. If value is null then the flag is toggled.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>style</code> - String of the form stylename[;key=value].</dd>
<dd><code>key</code> - Key of the style to be changed.</dd>
<dd><code>flag</code> - Integer for the bit to be changed.</dd>
<dd><code>value</code> - Optional boolean value for the given flag.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="intersectsHotspot(com.mxgraph.view.mxCellState,int,int,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intersectsHotspot</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;intersectsHotspot&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2016-06-02 09:57:18 +00:00
int&nbsp;x,
int&nbsp;y,
double&nbsp;hotspot)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="intersectsHotspot(com.mxgraph.view.mxCellState,int,int,double,int,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intersectsHotspot</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;intersectsHotspot&#8203;(<a href="../view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
2016-06-02 09:57:18 +00:00
int&nbsp;x,
int&nbsp;y,
double&nbsp;hotspot,
int&nbsp;min,
int&nbsp;max)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given coordinate pair intersects the hotspot of the
given state.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="isTrue(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isTrue&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the dictionary contains true for the given key or false
if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the boolean value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="isTrue(java.util.Map,java.lang.String,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTrue</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isTrue&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
boolean&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the dictionary contains true for the given key or the
given default value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the boolean value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getInt(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;getInt&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as an int or 0 if no value is
defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the integer value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getInt(java.util.Map,java.lang.String,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;int&nbsp;getInt&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
int&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as an int or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the integer value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFloat(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;float&nbsp;getFloat&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float or 0 if no value is
defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the float value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFloat(java.util.Map,java.lang.String,float)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloat</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;float&nbsp;getFloat&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
float&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the float value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFloatArray(java.util.Map,java.lang.String,float[])">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloatArray</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;float[]&nbsp;getFloatArray&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
float[]&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float array or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the float array value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFloatArray(java.util.Map,java.lang.String,float[],java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFloatArray</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;float[]&nbsp;getFloatArray&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
float[]&nbsp;defaultValue,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;separator)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a float array or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the float array value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getDouble(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;double&nbsp;getDouble&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a double or 0 if no value is
defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the double value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getDouble(java.util.Map,java.lang.String,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDouble</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;double&nbsp;getDouble&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
2016-06-02 09:57:18 +00:00
double&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a double or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the double value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getString(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getString&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a string or null if no value
is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the string value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getString(java.util.Map,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getString</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getString&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
java.lang.String&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a string or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the string value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getColor(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColor</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Color&nbsp;getColor&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a color or null if no value is
defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the color value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getColor(java.util.Map,java.lang.String,java.awt.Color)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColor</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Color&nbsp;getColor&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;dict,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;key,
java.awt.Color&nbsp;defaultValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the value for key in dictionary as a color or the given default
value if no value is defined for the key.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dict</code> - Dictionary that contains the key, value pairs.</dd>
<dd><code>key</code> - Key whose value should be returned.</dd>
<dd><code>defaultValue</code> - Default value to return if the key is undefined.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the color value for key in dict.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFont(java.util.Map)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFont</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Font&nbsp;getFont&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getFont(java.util.Map,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFont</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Font&nbsp;getFont&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="hexString(java.awt.Color)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hexString</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;hexString&#8203;(java.awt.Color&nbsp;color)</pre>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="parseColor(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseColor</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Color&nbsp;parseColor&#8203;(java.lang.String&nbsp;colorString)
2017-11-24 16:16:54 +00:00
throws java.lang.NumberFormatException</pre>
2016-04-06 08:10:17 +00:00
<div class="block">Shortcut for parseColor with no transparency.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.lang.NumberFormatException</code></dd>
2016-06-02 09:57:18 +00:00
</dl>
2016-04-06 08:10:17 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="parseColor(java.lang.String,double)">
2016-04-06 08:10:17 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseColor</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.Color&nbsp;parseColor&#8203;(java.lang.String&nbsp;colorString,
2017-11-24 16:16:54 +00:00
double&nbsp;alpha)
throws java.lang.NumberFormatException</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Convert a string representing a 24/32bit hex color value into a Color
2012-05-21 20:32:26 +00:00
object. The following color names are also supported: white, black, red,
green, blue, orange, yellow, pink, turquoise, gray and none (null).
Examples of possible hex color values are: #C3D9FF, #6482B9 and #774400,
2014-04-01 11:30:48 +00:00
but note that you do not include the "#" in the string passed in</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>colorString</code> - the 24/32bit hex string value (ARGB)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>java.awt.Color (24bit RGB on JDK 1.1, 24/32bit ARGB on JDK1.2)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.lang.NumberFormatException</code> - if the specified string cannot be interpreted as a
2016-06-02 09:57:18 +00:00
hexidecimal integer</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getHexColorString(java.awt.Color)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHexColorString</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getHexColorString&#8203;(java.awt.Color&nbsp;color)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a hex representation for the given color.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>color</code> - Color to return the hex string for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a hex string for the given color.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="parseDashPattern(java.lang.String)">
2015-06-18 15:23:41 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseDashPattern</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;float[]&nbsp;parseDashPattern&#8203;(java.lang.String&nbsp;dashPatternString)
2017-11-24 16:16:54 +00:00
throws java.lang.NumberFormatException</pre>
2015-06-18 15:23:41 +00:00
<div class="block">Convert a string representing a dash pattern into a float array.
A valid dash pattern is a string of dash widths (floating point values)
separated by space characters.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dashPatternString</code> - the string representing the dash pattern</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>float[]</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.lang.NumberFormatException</code> - if any of the dash widths cannot be interpreted as a
2016-06-02 09:57:18 +00:00
floating point number</dd>
</dl>
2015-06-18 15:23:41 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="readFile(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFile</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;readFile&#8203;(java.lang.String&nbsp;filename)
2017-11-24 16:16:54 +00:00
throws java.io.IOException</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Reads the given filename into a string.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>filename</code> - Name of the file to be read.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a string representing the file contents.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.io.IOException</code></dd>
2016-06-02 09:57:18 +00:00
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="readInputStream(java.io.InputStream)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readInputStream</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;readInputStream&#8203;(java.io.InputStream&nbsp;stream)
2017-11-24 16:16:54 +00:00
throws java.io.IOException</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Reads the given filename into a string.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>filename</code> - Name of the file to be read.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a string representing the file contents.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.io.IOException</code></dd>
2016-06-02 09:57:18 +00:00
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="writeFile(java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeFile</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;writeFile&#8203;(java.lang.String&nbsp;contents,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;filename)
throws java.io.IOException</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Writes the given string into the given file.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>contents</code> - String representing the file contents.</dd>
<dd><code>filename</code> - Name of the file to be written.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
2017-11-24 16:16:54 +00:00
<dd><code>java.io.IOException</code></dd>
2016-06-02 09:57:18 +00:00
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getMd5Hash(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMd5Hash</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getMd5Hash&#8203;(java.lang.String&nbsp;text)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the Md5 hash for the given text.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>text</code> - String whose Md5 hash should be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns the Md5 hash for the given text.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="isNode(java.lang.Object,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNode</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isNode&#8203;(java.lang.Object&nbsp;value,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;nodeName)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the user object is an XML node with the specified type
2012-05-21 20:32:26 +00:00
and and the optional attribute has the specified value or is not
2014-04-01 11:30:48 +00:00
specified.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Object that should be examined as a node.</dd>
<dd><code>nodeName</code> - String that specifies the node name.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns true if the node name of the user object is equal to the
given type.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="isNode(java.lang.Object,java.lang.String,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNode</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isNode&#8203;(java.lang.Object&nbsp;value,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;nodeName,
java.lang.String&nbsp;attributeName,
java.lang.String&nbsp;attributeValue)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns true if the given value is an XML node with the node name and if
the optional attribute has the specified value.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Object that should be examined as a node.</dd>
<dd><code>nodeName</code> - String that specifies the node name.</dd>
<dd><code>attributeName</code> - Optional attribute name to check.</dd>
<dd><code>attributeValue</code> - Optional attribute value to check.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns true if the value matches the given conditions.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="setAntiAlias(java.awt.Graphics2D,boolean,boolean)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAntiAlias</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;setAntiAlias&#8203;(java.awt.Graphics2D&nbsp;g,
2016-06-02 09:57:18 +00:00
boolean&nbsp;antiAlias,
boolean&nbsp;textAntiAlias)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>g</code> - </dd>
<dd><code>antiAlias</code> - </dd>
<dd><code>textAntiAlias</code> - </dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="clearRect(java.awt.Graphics2D,java.awt.Rectangle,java.awt.Color)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearRect</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;void&nbsp;clearRect&#8203;(java.awt.Graphics2D&nbsp;g,
2017-11-24 16:16:54 +00:00
java.awt.Rectangle&nbsp;rect,
java.awt.Color&nbsp;background)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Clears the given area of the specified graphics object with the given
color or makes the region transparent.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createBufferedImage(int,int,java.awt.Color)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createBufferedImage</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.image.BufferedImage&nbsp;createBufferedImage&#8203;(int&nbsp;w,
2017-11-24 16:16:54 +00:00
int&nbsp;h,
java.awt.Color&nbsp;background)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Creates a buffered image for the given parameters. If there is not enough
memory to create the image then a OutOfMemoryError is thrown.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createBufferedImage(int,int,java.awt.Color,int)">
2015-10-01 10:34:51 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createBufferedImage</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.image.BufferedImage&nbsp;createBufferedImage&#8203;(int&nbsp;w,
2017-11-24 16:16:54 +00:00
int&nbsp;h,
java.awt.Color&nbsp;background,
int&nbsp;type)</pre>
2015-10-01 10:34:51 +00:00
<div class="block">Creates a buffered image for the given parameters. If there is not enough
memory to create the image then a OutOfMemoryError is thrown.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="loadImage(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadImage</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.awt.image.BufferedImage&nbsp;loadImage&#8203;(java.lang.String&nbsp;url)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Loads an image from the local filesystem, a data URI or any other URL.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createTable(org.w3c.dom.Document,java.lang.String,int,int,int,int,double,java.util.Map)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Element&nbsp;createTable&#8203;(org.w3c.dom.Document&nbsp;document,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
int&nbsp;x,
int&nbsp;y,
int&nbsp;w,
int&nbsp;h,
double&nbsp;scale,
2019-07-02 06:45:58 +00:00
java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Creates a table for the given text using the given document to create the
DOM nodes. Returns the outermost table node.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createDocument()">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;createDocument()</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createDocument</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createSvgDocument(int,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSvgDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;createSvgDocument&#8203;(int&nbsp;width,
2017-11-24 16:16:54 +00:00
int&nbsp;height)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createSvgDocument(int, int)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Creates a new SVG document for the given width and height.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createVmlDocument()">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createVmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;createVmlDocument()</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createVmlDocument</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument()">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;createHtmlDocument()</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxDomUtils.createHtmlDocument</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a document with a HTML node containing a HEAD and BODY node.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument(java.util.Map,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument(java.util.Map,java.lang.String,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument(java.util.Map,java.lang.String,double,int)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
double&nbsp;scale,
int&nbsp;width)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument(java.util.Map,java.lang.String,double,int,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
double&nbsp;scale,
int&nbsp;width,
java.lang.String&nbsp;head)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document. The head argument can be used to
2012-05-21 20:32:26 +00:00
provide an optional HEAD section without the HEAD tags as follows:
<pre>
mxUtils.createHtmlDocument(style, text, 1, 0, "<style type=\"text/css\">.classname { color:red; }</style>")
2014-04-01 11:30:48 +00:00
</pre></div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocument(java.util.Map,java.lang.String,double,int,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;createHtmlDocument&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;text,
double&nbsp;scale,
int&nbsp;width,
java.lang.String&nbsp;head,
java.lang.String&nbsp;bodyCss)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document. The head argument can be used to
2013-12-09 08:35:20 +00:00
provide an optional HEAD section without the HEAD tags as follows:
<pre>
mxUtils.createHtmlDocument(style, text, 1, 0, "<style type=\"text/css\">.classname { color:red; }</style>")
2014-04-01 11:30:48 +00:00
</pre></div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="createHtmlDocumentObject(java.util.Map,double)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createHtmlDocumentObject</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;javax.swing.text.html.HTMLDocument&nbsp;createHtmlDocumentObject&#8203;(java.util.Map&lt;java.lang.String,&#8203;java.lang.Object&gt;&nbsp;style,
2017-11-24 16:16:54 +00:00
double&nbsp;scale)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new, empty DOM document.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="loadDocument(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadDocument</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;loadDocument&#8203;(java.lang.String&nbsp;uri)</pre>
2017-06-27 11:43:19 +00:00
<div class="block">Returns a new DOM document for the given URI. External entities and DTDs are ignored.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>uri</code> - URI to parse into the document.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new DOM document for the given URI.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="parseXml(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseXml</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Document&nbsp;parseXml&#8203;(java.lang.String&nbsp;xml)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxXmlUtils.parseXml</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a new document for the given XML string.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>xml</code> - String that represents the XML data.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a new XML document.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="eval(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eval</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.Object&nbsp;eval&#8203;(java.lang.String&nbsp;expression)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Evaluates a Java expression as a class member using mxCodecRegistry. The
2012-05-21 20:32:26 +00:00
range of supported expressions is limited to static class members such as
2014-04-01 11:30:48 +00:00
mxEdgeStyle.ElbowConnector.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="findNode(org.w3c.dom.Node,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findNode</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;org.w3c.dom.Node&nbsp;findNode&#8203;(org.w3c.dom.Node&nbsp;node,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;attr,
java.lang.String&nbsp;value)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns the first node where attr equals value. This implementation does
not use XPath.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="htmlEntities(java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>htmlEntities</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;htmlEntities&#8203;(java.lang.String&nbsp;text)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Converts the ampersand, quote, prime, less-than and greater-than
characters to their corresponding HTML entities in the given string.</div>
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getXml(org.w3c.dom.Node)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getXml</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getXml&#8203;(org.w3c.dom.Node&nbsp;node)</pre>
2018-11-06 11:46:01 +00:00
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <code>mxXmlUtils.getXml(Node)</code> (Jan 2012)</div>
</div>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a string that represents the given node.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>node</code> - Node to return the XML for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns an XML string.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getPrettyXml(org.w3c.dom.Node)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrettyXml</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getPrettyXml&#8203;(org.w3c.dom.Node&nbsp;node)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a pretty-printed XML string for the given node.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>node</code> - Node to return the XML for.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a formatted XML string.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
2019-07-02 06:45:58 +00:00
<a id="getPrettyXml(org.w3c.dom.Node,java.lang.String,java.lang.String)">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getPrettyXml</h4>
2019-07-02 06:45:58 +00:00
<pre class="methodSignature">public static&nbsp;java.lang.String&nbsp;getPrettyXml&#8203;(org.w3c.dom.Node&nbsp;node,
2017-11-24 16:16:54 +00:00
java.lang.String&nbsp;tab,
java.lang.String&nbsp;indent)</pre>
2014-04-01 11:30:48 +00:00
<div class="block">Returns a pretty-printed XML string for the given node. Note that this
2012-05-21 20:32:26 +00:00
string should only be used for humans to read (eg. debug output) but not
2014-04-01 11:30:48 +00:00
for further processing as it does not use built-in mechanisms.</div>
2016-06-02 09:57:18 +00:00
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>node</code> - Node to return the XML for.</dd>
<dd><code>tab</code> - String to be used for indentation of inner nodes.</dd>
<dd><code>indent</code> - Current indentation for the node.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Returns a formatted XML string.</dd>
</dl>
2014-04-01 11:30:48 +00:00
</li>
</ul>
</li>
</ul>
2019-07-02 06:45:58 +00:00
</section>
2014-04-01 11:30:48 +00:00
</li>
</ul>
</div>
</div>
2019-07-02 06:45:58 +00:00
</main>
2012-05-21 20:32:26 +00:00
<!-- ========= END OF CLASS DATA ========= -->
2019-07-02 06:45:58 +00:00
<footer role="contentinfo">
<nav role="navigation">
2012-05-21 20:32:26 +00:00
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2019-07-02 06:45:58 +00:00
<div class="bottomNav"><a id="navbar.bottom">
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
2019-07-02 06:45:58 +00:00
<a id="navbar.bottom.firstrow">
2014-04-01 11:30:48 +00:00
<!-- -->
</a>
<ul class="navList" title="Navigation">
2019-07-02 06:45:58 +00:00
<li><a href="../../../index.html">Overview</a></li>
2014-04-01 11:30:48 +00:00
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxUtils.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
2019-07-26 16:09:51 +00:00
<div class="aboutLanguage"><p><b>mxGraph 4.0.3</b></p></div>
2014-04-01 11:30:48 +00:00
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
2019-07-02 06:45:58 +00:00
<li><a href="../../../allclasses.html">All&nbsp;Classes</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
</script>
2018-11-06 11:46:01 +00:00
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
2014-04-01 11:30:48 +00:00
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
2016-06-02 09:57:18 +00:00
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
2014-04-01 11:30:48 +00:00
</ul>
</div>
2019-07-02 06:45:58 +00:00
<a id="skip.navbar.bottom">
2014-04-01 11:30:48 +00:00
<!-- -->
</a></div>
2012-05-21 20:32:26 +00:00
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2019-07-02 06:45:58 +00:00
</nav>
2017-06-27 11:43:19 +00:00
<p class="legalCopy"><small><font size=1>Copyright (c) 2010-2017 <a href="http://www.jgraph.com/"
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
2019-07-02 06:45:58 +00:00
</footer>
2014-04-01 11:30:48 +00:00
</body>
</html>