2777 lines
133 KiB
HTML
2777 lines
133 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.5) on Tue Mar 31 13:43:30 UTC 2020 -->
|
|
<title>mxGraphModel (mxGraph 4.1.1 API Specification)</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2020-03-31">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
<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]-->
|
|
<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>
|
|
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="mxGraphModel (mxGraph 4.1.1 API Specification)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":9,"i15":9,"i16":9,"i17":10,"i18":10,"i19":10,"i20":10,"i21":9,"i22":10,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":10,"i31":10,"i32":9,"i33":9,"i34":9,"i35":9,"i36":10,"i37":9,"i38":10,"i39":9,"i40":9,"i41":10,"i42":9,"i43":10,"i44":9,"i45":10,"i46":10,"i47":10,"i48":9,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":9,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../";
|
|
var useModuleDirectories = true;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a id="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxGraphModel.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.1.1</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<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>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.mxgraph.model</a></div>
|
|
<h2 title="Class mxGraphModel" class="title">Class mxGraphModel</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../util/mxEventSource.html" title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.mxgraph.model.mxGraphModel</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code>, <code>java.io.Serializable</code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public class <span class="typeNameLabel">mxGraphModel</span>
|
|
extends <a href="../util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a>
|
|
implements <a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a>, java.io.Serializable</pre>
|
|
<div class="block">Extends mxEventSource to implement a graph model. The graph model acts as
|
|
a wrapper around the cells which are in charge of storing the actual graph
|
|
datastructure. The model acts as a transactional wrapper with event
|
|
notification for all changes, whereas the cells contain the atomic
|
|
operations for updating the actual datastructure.
|
|
|
|
Layers:
|
|
|
|
The cell hierarchy in the model must have a top-level root cell which
|
|
contains the layers (typically one default layer), which in turn contain the
|
|
top-level cells of the layers. This means each cell is contained in a layer.
|
|
If no layers are required, then all new cells should be added to the default
|
|
layer.
|
|
|
|
Layers are useful for hiding and showing groups of cells, or for placing
|
|
groups of cells on top of other cells in the display. To identify a layer,
|
|
the <isLayer> function is used. It returns true if the parent of the given
|
|
cell is the root of the model.
|
|
|
|
This class fires the following events:
|
|
|
|
mxEvent.CHANGE fires when an undoable edit is dispatched. The <code>edit</code>
|
|
property contains the mxUndoableEdit. The <code>changes</code> property
|
|
contains the list of undoable changes inside the undoable edit. The changes
|
|
property is deprecated, please use edit.getChanges() instead.
|
|
|
|
mxEvent.EXECUTE fires between begin- and endUpdate and after an atomic
|
|
change was executed in the model. The <code>change</code> property contains
|
|
the atomic change that was executed.
|
|
|
|
mxEvent.BEGIN_UPDATE fires after the updateLevel was incremented in
|
|
beginUpdate. This event contains no properties.
|
|
|
|
mxEvent.END_UPDATE fires after the updateLevel was decreased in endUpdate
|
|
but before any notification or change dispatching. The <code>edit</code>
|
|
property contains the current mxUndoableEdit.
|
|
|
|
mxEvent.BEFORE_UNDO fires before the change is dispatched after the update
|
|
level has reached 0 in endUpdate. The <code>edit</code> property contains
|
|
the current mxUndoableEdit.
|
|
|
|
mxEvent.UNDO fires after the change was dispatched in endUpdate. The
|
|
<code>edit</code> property contains the current mxUndoableEdit.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../serialized-form.html#com.mxgraph.model.mxGraphModel">Serialized Form</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Class</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxChildChange.html" title="class in com.mxgraph.model">mxGraphModel.mxChildChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxCollapseChange.html" title="class in com.mxgraph.model">mxGraphModel.mxCollapseChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxGeometryChange.html" title="class in com.mxgraph.model">mxGraphModel.mxGeometryChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxRootChange.html" title="class in com.mxgraph.model">mxGraphModel.mxRootChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxStyleChange.html" title="class in com.mxgraph.model">mxGraphModel.mxStyleChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxTerminalChange.html" title="class in com.mxgraph.model">mxGraphModel.mxTerminalChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxValueChange.html" title="class in com.mxgraph.model">mxGraphModel.mxValueChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="mxGraphModel.mxVisibleChange.html" title="class in com.mxgraph.model">mxGraphModel.mxVisibleChange</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.classes.inherited.from.class.com.mxgraph.util.mxEventSource">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested classes/interfaces inherited from class com.mxgraph.util.<a href="../util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></h3>
|
|
<code><a href="../util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.classes.inherited.from.class.com.mxgraph.model.mxIGraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested classes/interfaces inherited from interface com.mxgraph.model.<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></h3>
|
|
<code><a href="mxIGraphModel.mxAtomicGraphModelChange.html" title="class in com.mxgraph.model">mxIGraphModel.mxAtomicGraphModelChange</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Field</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected java.util.Map<java.lang.String,​java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cells">cells</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maps from Ids to cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createIds">createIds</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies if the model should automatically create Ids for new cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="../util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#currentEdit">currentEdit</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Holds the changes for the current transaction.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#endingUpdate">endingUpdate</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maintainEdgeParent">maintainEdgeParent</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies if edges should automatically be moved into the nearest common
|
|
ancestor of their terminals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nextId">nextId</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies the next Id to be created.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#root">root</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Holds the root cell, which in turn contains the cells that represent the
|
|
layers of the diagram as child cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>protected int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateLevel">updateLevel</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Counter for the depth of nested transactions.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="fields.inherited.from.class.com.mxgraph.util.mxEventSource">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from class com.mxgraph.util.<a href="../util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></h3>
|
|
<code><a href="../util/mxEventSource.html#eventListeners">eventListeners</a>, <a href="../util/mxEventSource.html#eventsEnabled">eventsEnabled</a>, <a href="../util/mxEventSource.html#eventSource">eventSource</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">mxGraphModel</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Constructs a new empty graph model.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.Object)">mxGraphModel</a></span>​(java.lang.Object root)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Constructs a new graph model.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#add(java.lang.Object,java.lang.Object,int)">add</a></span>​(java.lang.Object parent,
|
|
java.lang.Object child,
|
|
int index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Adds the specified child to the parent at the given index.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#beginUpdate()">beginUpdate</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Increments the updateLevel by one.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cellAdded(java.lang.Object)">cellAdded</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Invoked after a cell has been added to a parent.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cellRemoved(java.lang.Object)">cellRemoved</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Invoked after a cell has been removed from the model.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clear()">clear</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets a new root using createRoot.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>protected java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cloneCell(java.lang.Object,java.util.Map,boolean)">cloneCell</a></span>​(java.lang.Object cell,
|
|
java.util.Map<java.lang.Object,​java.lang.Object> mapping,
|
|
boolean includeChildren)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner helper method for cloning cells recursively.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cloneCells(java.lang.Object%5B%5D,boolean)">cloneCells</a></span>​(java.lang.Object[] cells,
|
|
boolean includeChildren)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of clones for the given array of cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#collapsedStateForCellChanged(java.lang.Object,boolean)">collapsedStateForCellChanged</a></span>​(java.lang.Object cell,
|
|
boolean collapsed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to update the collapsed state of the
|
|
given mxCell using mxCell.setCollapsed and return
|
|
the previous collapsed state.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#contains(java.lang.Object)">contains</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the model contains the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createId(java.lang.Object)">createId</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a new Id for the given cell and increments the global counter
|
|
for creating new Ids.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createRoot()">createRoot</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a new root cell with a default layer (child 0).</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="../util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createUndoableEdit()">createUndoableEdit</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a new undoable edit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#endUpdate()">endUpdate</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Decrements the updateLevel by one and fires a notification event if the
|
|
updateLevel reaches 0.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#execute(com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange)">execute</a></span>​(<a href="mxIGraphModel.mxAtomicGraphModelChange.html" title="class in com.mxgraph.model">mxIGraphModel.mxAtomicGraphModelChange</a> change)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Executes the given atomic change and adds it to the current edit.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filterCells(java.lang.Object%5B%5D,com.mxgraph.model.mxGraphModel.Filter)">filterCells</a></span>​(java.lang.Object[] cells,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>static java.util.Collection<java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filterDescendants(com.mxgraph.model.mxIGraphModel,com.mxgraph.model.mxGraphModel.Filter)">filterDescendants</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a collection of cells using the visitor pattern.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>static java.util.Collection<java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#filterDescendants(com.mxgraph.model.mxIGraphModel,com.mxgraph.model.mxGraphModel.Filter,java.lang.Object)">filterDescendants</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter,
|
|
java.lang.Object parent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a collection of cells using the visitor pattern.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>protected <a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#geometryForCellChanged(java.lang.Object,com.mxgraph.model.mxGeometry)">geometryForCellChanged</a></span>​(java.lang.Object cell,
|
|
<a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> geometry)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to update the mxGeometry of the given mxCell using
|
|
mxCell.setGeometry and return the previous mxGeometry.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCell(java.lang.String)">getCell</a></span>​(java.lang.String id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the cell for the specified Id or null if no cell can be
|
|
found for the given Id.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>java.util.Map<java.lang.String,​java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCells()">getCells</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the internal lookup table that is used to map from Ids to cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildAt(java.lang.Object,int)">getChildAt</a></span>​(java.lang.Object parent,
|
|
int index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the child of the given parent at the given index.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildCells(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,boolean)">getChildCells</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent,
|
|
boolean vertices,
|
|
boolean edges)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the children of the given cell that are vertices and/or edges
|
|
depending on the arguments.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildCount(java.lang.Object)">getChildCount</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the number of children in the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getChildEdges</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the child edges of the given parent.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildren(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getChildren</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all children of the given cell regardless of their type.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChildVertices(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getChildVertices</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the child vertices of the given parent.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnections(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getConnections</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all edges connected to this cell without loops.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>static java.util.Collection<java.lang.Object></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDescendants(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getDescendants</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a all descendants of the given cell and the cell itself
|
|
as a collection.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDirectedEdgeCount(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean)">getDirectedEdgeCount</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean outgoing)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the number of incoming or outgoing edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDirectedEdgeCount(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,java.lang.Object)">getDirectedEdgeCount</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean outgoing,
|
|
java.lang.Object ignoredEdge)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the number of incoming or outgoing edges, ignoring the given
|
|
edge.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdgeAt(java.lang.Object,int)">getEdgeAt</a></span>​(java.lang.Object parent,
|
|
int index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the edge of cell at the given index.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdgeCount(java.lang.Object)">getEdgeCount</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the number of distinct edges connected to the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getEdges</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all edges connected to this cell including loops.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,boolean,boolean)">getEdges</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean incoming,
|
|
boolean outgoing,
|
|
boolean includeLoops)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all distinct edges connected to this cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdgesBetween(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object)">getEdgesBetween</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object source,
|
|
java.lang.Object target)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all edges from the given source to the given target.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEdgesBetween(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object,boolean)">getEdgesBetween</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object source,
|
|
java.lang.Object target,
|
|
boolean directed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all edges between the given source and target pair.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<td class="colFirst"><code><a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getGeometry(java.lang.Object)">getGeometry</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the geometry of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIncomingEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getIncomingEdges</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the incoming edges of the given cell without loops.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNearestCommonAncestor(java.lang.Object,java.lang.Object)">getNearestCommonAncestor</a></span>​(java.lang.Object cell1,
|
|
java.lang.Object cell2)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the nearest common ancestor for the specified cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i39" class="rowColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOpposites(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D,java.lang.Object)">getOpposites</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] edges,
|
|
java.lang.Object terminal)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all opposite cells of terminal for the given edges.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i40" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOpposites(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D,java.lang.Object,boolean,boolean)">getOpposites</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] edges,
|
|
java.lang.Object terminal,
|
|
boolean sources,
|
|
boolean targets)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns all opposite vertices wrt terminal for the given edges, only
|
|
returning sources and/or targets as specified.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i41" class="rowColor">
|
|
<td class="colFirst"><code><a href="../util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOrigin(java.lang.Object)">getOrigin</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the absolute, accumulated origin for the children inside the
|
|
given parent.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i42" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOutgoingEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">getOutgoingEdges</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the outgoing edges of the given cell without loops.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i43" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getParent(java.lang.Object)">getParent</a></span>​(java.lang.Object child)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the parent of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i44" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getParents(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D)">getParents</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] cells)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i45" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRoot()">getRoot</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the root of the model or the topmost parent of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i46" class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStyle(java.lang.Object)">getStyle</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the style of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i47" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTerminal(java.lang.Object,boolean)">getTerminal</a></span>​(java.lang.Object edge,
|
|
boolean isSource)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the source or target terminal of the given edge depending on the
|
|
value of the boolean parameter.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i48" class="altColor">
|
|
<td class="colFirst"><code>static java.lang.Object[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTopmostCells(com.mxgraph.model.mxIGraphModel,java.lang.Object%5B%5D)">getTopmostCells</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] cells)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Function: getTopmostCells
|
|
|
|
Returns the topmost cells of the hierarchy in an array that contains no
|
|
desceandants for each <mxCell> that it contains.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i49" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUpdateLevel()">getUpdateLevel</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i50" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValue(java.lang.Object)">getValue</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the user object of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i51" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isAncestor(java.lang.Object,java.lang.Object)">isAncestor</a></span>​(java.lang.Object parent,
|
|
java.lang.Object child)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given parent is an ancestor of the given child.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i52" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCollapsed(java.lang.Object)">isCollapsed</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given cell is collapsed.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i53" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isConnectable(java.lang.Object)">isConnectable</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given cell is connectable.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i54" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCreateIds()">isCreateIds</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the model automatically creates Ids and resolves Id
|
|
collisions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i55" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEdge(java.lang.Object)">isEdge</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given cell is an edge.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i56" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isMaintainEdgeParent()">isMaintainEdgeParent</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the model automatically update parents of edges so that
|
|
the edge is contained in the nearest-common-ancestor of its terminals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i57" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isVertex(java.lang.Object)">isVertex</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given cell is a vertex.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i58" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isVisible(java.lang.Object)">isVisible</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns true if the given cell is visible.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i59" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mergeChildren(com.mxgraph.model.mxICell,com.mxgraph.model.mxICell,boolean)">mergeChildren</a></span>​(<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
|
|
<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> to,
|
|
boolean cloneAllEdges)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Merges the children of the given cell into the given target cell inside
|
|
this model.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i60" class="altColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mergeChildrenImpl(com.mxgraph.model.mxICell,com.mxgraph.model.mxICell,boolean,java.util.Hashtable)">mergeChildrenImpl</a></span>​(<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
|
|
<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> to,
|
|
boolean cloneAllEdges,
|
|
java.util.Hashtable<java.lang.Object,​java.lang.Object> mapping)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Clones the children of the source cell into the given target cell in
|
|
this model and adds an entry to the mapping that maps from the source
|
|
cell to the target cell with the same id or the clone of the source cell
|
|
that was inserted into this model.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i61" class="rowColor">
|
|
<td class="colFirst"><code>protected java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parentForCellChanged(java.lang.Object,java.lang.Object,int)">parentForCellChanged</a></span>​(java.lang.Object cell,
|
|
java.lang.Object parent,
|
|
int index)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to update the parent of a cell using mxCell.insert
|
|
on the parent and return the previous parent.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i62" class="altColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#remove(java.lang.Object)">remove</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Removes the specified cell from the model.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i63" class="rowColor">
|
|
<td class="colFirst"><code>protected void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#restoreClone(java.lang.Object,java.lang.Object,java.util.Map)">restoreClone</a></span>​(java.lang.Object clone,
|
|
java.lang.Object cell,
|
|
java.util.Map<java.lang.Object,​java.lang.Object> mapping)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner helper method for restoring the connections in
|
|
a network of cloned cells.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i64" class="altColor">
|
|
<td class="colFirst"><code>protected java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rootChanged(java.lang.Object)">rootChanged</a></span>​(java.lang.Object root)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to change the root of the model and update the internal
|
|
datastructures, such as cells and nextId.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i65" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCollapsed(java.lang.Object,boolean)">setCollapsed</a></span>​(java.lang.Object cell,
|
|
boolean collapsed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the collapsed state of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i66" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCreateIds(boolean)">setCreateIds</a></span>​(boolean value)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies if the model automatically creates Ids for new cells and
|
|
resolves Id collisions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i67" class="rowColor">
|
|
<td class="colFirst"><code><a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGeometry(java.lang.Object,com.mxgraph.model.mxGeometry)">setGeometry</a></span>​(java.lang.Object cell,
|
|
<a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> geometry)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the geometry of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i68" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaintainEdgeParent(boolean)">setMaintainEdgeParent</a></span>​(boolean maintainEdgeParent)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies if the model automatically updates parents of edges so that
|
|
the edge is contained in the nearest-common-ancestor of its terminals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i69" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRoot(java.lang.Object)">setRoot</a></span>​(java.lang.Object root)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the root of the model and resets all structures.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i70" class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setStyle(java.lang.Object,java.lang.String)">setStyle</a></span>​(java.lang.Object cell,
|
|
java.lang.String style)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the style of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i71" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTerminal(java.lang.Object,java.lang.Object,boolean)">setTerminal</a></span>​(java.lang.Object edge,
|
|
java.lang.Object terminal,
|
|
boolean isSource)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the source or target terminal of the given edge using.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i72" class="altColor">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTerminals(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object,java.lang.Object)">setTerminals</a></span>​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object edge,
|
|
java.lang.Object source,
|
|
java.lang.Object target)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the source and target of the given edge in a single atomic change.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i73" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setValue(java.lang.Object,java.lang.Object)">setValue</a></span>​(java.lang.Object cell,
|
|
java.lang.Object value)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the user object of then given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i74" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVisible(java.lang.Object,boolean)">setVisible</a></span>​(java.lang.Object cell,
|
|
boolean visible)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the visible state of the given cell.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i75" class="rowColor">
|
|
<td class="colFirst"><code>protected java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#styleForCellChanged(java.lang.Object,java.lang.String)">styleForCellChanged</a></span>​(java.lang.Object cell,
|
|
java.lang.String style)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to update the style of the given mxCell
|
|
using mxCell.setStyle and return the previous style.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i76" class="altColor">
|
|
<td class="colFirst"><code>protected java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#terminalForCellChanged(java.lang.Object,java.lang.Object,boolean)">terminalForCellChanged</a></span>​(java.lang.Object edge,
|
|
java.lang.Object terminal,
|
|
boolean isSource)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner helper function to update the terminal of the edge using
|
|
mxCell.insertEdge and return the previous terminal.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i77" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i78" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateEdgeParent(java.lang.Object,java.lang.Object)">updateEdgeParent</a></span>​(java.lang.Object edge,
|
|
java.lang.Object root)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner helper method to update the parent of the specified edge to the
|
|
nearest-common-ancestor of its two terminals.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i79" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateEdgeParents(java.lang.Object)">updateEdgeParents</a></span>​(java.lang.Object cell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates the parents of the edges connected to the given cell and all its
|
|
descendants so that each edge is contained in the nearest common
|
|
ancestor.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i80" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateEdgeParents(java.lang.Object,java.lang.Object)">updateEdgeParents</a></span>​(java.lang.Object cell,
|
|
java.lang.Object root)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates the parents of the edges connected to the given cell and all its
|
|
descendants so that the edge is contained in the nearest-common-ancestor.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i81" class="rowColor">
|
|
<td class="colFirst"><code>protected java.lang.Object</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#valueForCellChanged(java.lang.Object,java.lang.Object)">valueForCellChanged</a></span>​(java.lang.Object cell,
|
|
java.lang.Object value)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Inner callback to update the user object of the given mxCell
|
|
using mxCell.setValue and return the previous value,
|
|
that is, the return value of mxCell.getValue.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i82" class="altColor">
|
|
<td class="colFirst"><code>protected boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#visibleStateForCellChanged(java.lang.Object,boolean)">visibleStateForCellChanged</a></span>​(java.lang.Object cell,
|
|
boolean visible)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the visible state of the given mxCell using mxVisibleChange and
|
|
adds the change to the current transaction.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.com.mxgraph.util.mxEventSource">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class com.mxgraph.util.<a href="../util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></h3>
|
|
<code><a href="../util/mxEventSource.html#addListener(java.lang.String,com.mxgraph.util.mxEventSource.mxIEventListener)">addListener</a>, <a href="../util/mxEventSource.html#fireEvent(com.mxgraph.util.mxEventObject)">fireEvent</a>, <a href="../util/mxEventSource.html#fireEvent(com.mxgraph.util.mxEventObject,java.lang.Object)">fireEvent</a>, <a href="../util/mxEventSource.html#getEventSource()">getEventSource</a>, <a href="../util/mxEventSource.html#isEventsEnabled()">isEventsEnabled</a>, <a href="../util/mxEventSource.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener)">removeListener</a>, <a href="../util/mxEventSource.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener,java.lang.String)">removeListener</a>, <a href="../util/mxEventSource.html#setEventsEnabled(boolean)">setEventsEnabled</a>, <a href="../util/mxEventSource.html#setEventSource(java.lang.Object)">setEventSource</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.com.mxgraph.model.mxIGraphModel">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface com.mxgraph.model.<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></h3>
|
|
<code><a href="mxIGraphModel.html#addListener(java.lang.String,com.mxgraph.util.mxEventSource.mxIEventListener)">addListener</a>, <a href="mxIGraphModel.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener)">removeListener</a>, <a href="mxIGraphModel.html#removeListener(com.mxgraph.util.mxEventSource.mxIEventListener,java.lang.String)">removeListener</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a id="root">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>root</h4>
|
|
<pre>protected <a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> root</pre>
|
|
<div class="block">Holds the root cell, which in turn contains the cells that represent the
|
|
layers of the diagram as child cells. That is, the actual element of the
|
|
diagram are supposed to live in the third generation of cells and below.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="cells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cells</h4>
|
|
<pre>protected java.util.Map<java.lang.String,​java.lang.Object> cells</pre>
|
|
<div class="block">Maps from Ids to cells.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maintainEdgeParent">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maintainEdgeParent</h4>
|
|
<pre>protected boolean maintainEdgeParent</pre>
|
|
<div class="block">Specifies if edges should automatically be moved into the nearest common
|
|
ancestor of their terminals. Default is true.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="createIds">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createIds</h4>
|
|
<pre>protected boolean createIds</pre>
|
|
<div class="block">Specifies if the model should automatically create Ids for new cells.
|
|
Default is true.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="nextId">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>nextId</h4>
|
|
<pre>protected int nextId</pre>
|
|
<div class="block">Specifies the next Id to be created. Initial value is 0.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="currentEdit">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>currentEdit</h4>
|
|
<pre>protected transient <a href="../util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a> currentEdit</pre>
|
|
<div class="block">Holds the changes for the current transaction. If the transaction is
|
|
closed then a new object is created for this variable using
|
|
createUndoableEdit.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="updateLevel">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateLevel</h4>
|
|
<pre>protected transient int updateLevel</pre>
|
|
<div class="block">Counter for the depth of nested transactions. Each call to beginUpdate
|
|
increments this counter and each call to endUpdate decrements it. When
|
|
the counter reaches 0, the transaction is closed and the respective
|
|
events are fired. Initial value is 0.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="endingUpdate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>endingUpdate</h4>
|
|
<pre>protected transient boolean endingUpdate</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a id="<init>()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mxGraphModel</h4>
|
|
<pre>public mxGraphModel()</pre>
|
|
<div class="block">Constructs a new empty graph model.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="<init>(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mxGraphModel</h4>
|
|
<pre>public mxGraphModel​(java.lang.Object root)</pre>
|
|
<div class="block">Constructs a new graph model. If no root is specified
|
|
then a new root mxCell with a default layer is created.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>root</code> - Cell that represents the root cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="clear()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clear</h4>
|
|
<pre class="methodSignature">public void clear()</pre>
|
|
<div class="block">Sets a new root using createRoot.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getUpdateLevel()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getUpdateLevel</h4>
|
|
<pre class="methodSignature">public int getUpdateLevel()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="createRoot()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createRoot</h4>
|
|
<pre class="methodSignature">public java.lang.Object createRoot()</pre>
|
|
<div class="block">Creates a new root cell with a default layer (child 0).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCells</h4>
|
|
<pre class="methodSignature">public java.util.Map<java.lang.String,​java.lang.Object> getCells()</pre>
|
|
<div class="block">Returns the internal lookup table that is used to map from Ids to cells.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getCell(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCell</h4>
|
|
<pre class="methodSignature">public java.lang.Object getCell​(java.lang.String id)</pre>
|
|
<div class="block">Returns the cell for the specified Id or null if no cell can be
|
|
found for the given Id.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - A string representing the Id of the cell.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the cell for the given Id.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isMaintainEdgeParent()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isMaintainEdgeParent</h4>
|
|
<pre class="methodSignature">public boolean isMaintainEdgeParent()</pre>
|
|
<div class="block">Returns true if the model automatically update parents of edges so that
|
|
the edge is contained in the nearest-common-ancestor of its terminals.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if the model maintains edge parents.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMaintainEdgeParent(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaintainEdgeParent</h4>
|
|
<pre class="methodSignature">public void setMaintainEdgeParent​(boolean maintainEdgeParent)</pre>
|
|
<div class="block">Specifies if the model automatically updates parents of edges so that
|
|
the edge is contained in the nearest-common-ancestor of its terminals.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maintainEdgeParent</code> - Boolean indicating if the model should
|
|
maintain edge parents.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isCreateIds()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isCreateIds</h4>
|
|
<pre class="methodSignature">public boolean isCreateIds()</pre>
|
|
<div class="block">Returns true if the model automatically creates Ids and resolves Id
|
|
collisions.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if the model creates Ids.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setCreateIds(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setCreateIds</h4>
|
|
<pre class="methodSignature">public void setCreateIds​(boolean value)</pre>
|
|
<div class="block">Specifies if the model automatically creates Ids for new cells and
|
|
resolves Id collisions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>value</code> - Boolean indicating if the model should created Ids.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRoot()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRoot</h4>
|
|
<pre class="methodSignature">public java.lang.Object getRoot()</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getRoot()">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the root of the model or the topmost parent of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getRoot()">getRoot</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the root cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setRoot(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRoot</h4>
|
|
<pre class="methodSignature">public java.lang.Object setRoot​(java.lang.Object root)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setRoot(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the root of the model and resets all structures.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setRoot(java.lang.Object)">setRoot</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>root</code> - Cell that specifies the new root.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="rootChanged(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>rootChanged</h4>
|
|
<pre class="methodSignature">protected java.lang.Object rootChanged​(java.lang.Object root)</pre>
|
|
<div class="block">Inner callback to change the root of the model and update the internal
|
|
datastructures, such as cells and nextId. Returns the previous root.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="createUndoableEdit()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createUndoableEdit</h4>
|
|
<pre class="methodSignature">protected <a href="../util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a> createUndoableEdit()</pre>
|
|
<div class="block">Creates a new undoable edit.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="cloneCells(java.lang.Object[],boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cloneCells</h4>
|
|
<pre class="methodSignature">public java.lang.Object[] cloneCells​(java.lang.Object[] cells,
|
|
boolean includeChildren)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#cloneCells(java.lang.Object%5B%5D,boolean)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns an array of clones for the given array of cells.
|
|
Depending on the value of includeChildren, a deep clone is created for
|
|
each cell. Connections are restored based if the corresponding
|
|
cell is contained in the passed in array.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#cloneCells(java.lang.Object%5B%5D,boolean)">cloneCells</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cells</code> - Array of cells to be cloned.</dd>
|
|
<dd><code>includeChildren</code> - Boolean indicating if the cells should be cloned
|
|
with all descendants.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns a cloned array of cells.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="cloneCell(java.lang.Object,java.util.Map,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cloneCell</h4>
|
|
<pre class="methodSignature">protected java.lang.Object cloneCell​(java.lang.Object cell,
|
|
java.util.Map<java.lang.Object,​java.lang.Object> mapping,
|
|
boolean includeChildren)
|
|
throws java.lang.CloneNotSupportedException</pre>
|
|
<div class="block">Inner helper method for cloning cells recursively.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.CloneNotSupportedException</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="restoreClone(java.lang.Object,java.lang.Object,java.util.Map)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>restoreClone</h4>
|
|
<pre class="methodSignature">protected void restoreClone​(java.lang.Object clone,
|
|
java.lang.Object cell,
|
|
java.util.Map<java.lang.Object,​java.lang.Object> mapping)</pre>
|
|
<div class="block">Inner helper method for restoring the connections in
|
|
a network of cloned cells.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="isAncestor(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isAncestor</h4>
|
|
<pre class="methodSignature">public boolean isAncestor​(java.lang.Object parent,
|
|
java.lang.Object child)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isAncestor(java.lang.Object,java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given parent is an ancestor of the given child.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isAncestor(java.lang.Object,java.lang.Object)">isAncestor</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>parent</code> - Cell that specifies the parent.</dd>
|
|
<dd><code>child</code> - Cell that specifies the child.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if child is an ancestor of parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="contains(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>contains</h4>
|
|
<pre class="methodSignature">public boolean contains​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#contains(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the model contains the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#contains(java.lang.Object)">contains</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell to be checked.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if the cell is in the model.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getParent(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getParent</h4>
|
|
<pre class="methodSignature">public java.lang.Object getParent​(java.lang.Object child)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getParent(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the parent of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getParent(java.lang.Object)">getParent</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>child</code> - Cell whose parent should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the parent of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="add(java.lang.Object,java.lang.Object,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>add</h4>
|
|
<pre class="methodSignature">public java.lang.Object add​(java.lang.Object parent,
|
|
java.lang.Object child,
|
|
int index)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#add(java.lang.Object,java.lang.Object,int)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Adds the specified child to the parent at the given index. If no index
|
|
is specified then the child is appended to the parent's array of
|
|
children.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#add(java.lang.Object,java.lang.Object,int)">add</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>parent</code> - Cell that specifies the parent to contain the child.</dd>
|
|
<dd><code>child</code> - Cell that specifies the child to be inserted.</dd>
|
|
<dd><code>index</code> - Integer that specifies the index of the child.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the inserted child.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="cellAdded(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cellAdded</h4>
|
|
<pre class="methodSignature">protected void cellAdded​(java.lang.Object cell)</pre>
|
|
<div class="block">Invoked after a cell has been added to a parent. This recursively
|
|
creates an Id for the new cell and/or resolves Id collisions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that has been added.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createId(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createId</h4>
|
|
<pre class="methodSignature">public java.lang.String createId​(java.lang.Object cell)</pre>
|
|
<div class="block">Creates a new Id for the given cell and increments the global counter
|
|
for creating new Ids.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell for which a new Id should be created.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns a new Id for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="remove(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>remove</h4>
|
|
<pre class="methodSignature">public java.lang.Object remove​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#remove(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Removes the specified cell from the model. This operation will remove
|
|
the cell and all of its children from the model.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#remove(java.lang.Object)">remove</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that should be removed.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the removed cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="cellRemoved(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>cellRemoved</h4>
|
|
<pre class="methodSignature">protected void cellRemoved​(java.lang.Object cell)</pre>
|
|
<div class="block">Invoked after a cell has been removed from the model. This recursively
|
|
removes the cell from its terminals and removes the mapping from the Id
|
|
to the cell.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that has been removed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="parentForCellChanged(java.lang.Object,java.lang.Object,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>parentForCellChanged</h4>
|
|
<pre class="methodSignature">protected java.lang.Object parentForCellChanged​(java.lang.Object cell,
|
|
java.lang.Object parent,
|
|
int index)</pre>
|
|
<div class="block">Inner callback to update the parent of a cell using mxCell.insert
|
|
on the parent and return the previous parent.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildCount(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildCount</h4>
|
|
<pre class="methodSignature">public int getChildCount​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getChildCount(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the number of children in the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getChildCount(java.lang.Object)">getChildCount</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose number of children should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the number of children in the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildAt(java.lang.Object,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildAt</h4>
|
|
<pre class="methodSignature">public java.lang.Object getChildAt​(java.lang.Object parent,
|
|
int index)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getChildAt(java.lang.Object,int)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the child of the given parent at the given index.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getChildAt(java.lang.Object,int)">getChildAt</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>parent</code> - Cell that represents the parent.</dd>
|
|
<dd><code>index</code> - Integer that specifies the index of the child to be
|
|
returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the child at index in parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getTerminal(java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTerminal</h4>
|
|
<pre class="methodSignature">public java.lang.Object getTerminal​(java.lang.Object edge,
|
|
boolean isSource)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getTerminal(java.lang.Object,boolean)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the source or target terminal of the given edge depending on the
|
|
value of the boolean parameter.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getTerminal(java.lang.Object,boolean)">getTerminal</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>edge</code> - Cell that specifies the edge.</dd>
|
|
<dd><code>isSource</code> - Boolean indicating which end of the edge should be
|
|
returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the source or target of the given edge.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setTerminal(java.lang.Object,java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTerminal</h4>
|
|
<pre class="methodSignature">public java.lang.Object setTerminal​(java.lang.Object edge,
|
|
java.lang.Object terminal,
|
|
boolean isSource)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setTerminal(java.lang.Object,java.lang.Object,boolean)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the source or target terminal of the given edge using.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setTerminal(java.lang.Object,java.lang.Object,boolean)">setTerminal</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>edge</code> - Cell that specifies the edge.</dd>
|
|
<dd><code>terminal</code> - Cell that specifies the new terminal.</dd>
|
|
<dd><code>isSource</code> - Boolean indicating if the terminal is the new source or
|
|
target terminal of the edge.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new terminal.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="terminalForCellChanged(java.lang.Object,java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>terminalForCellChanged</h4>
|
|
<pre class="methodSignature">protected java.lang.Object terminalForCellChanged​(java.lang.Object edge,
|
|
java.lang.Object terminal,
|
|
boolean isSource)</pre>
|
|
<div class="block">Inner helper function to update the terminal of the edge using
|
|
mxCell.insertEdge and return the previous terminal.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="updateEdgeParents(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateEdgeParents</h4>
|
|
<pre class="methodSignature">public void updateEdgeParents​(java.lang.Object cell)</pre>
|
|
<div class="block">Updates the parents of the edges connected to the given cell and all its
|
|
descendants so that each edge is contained in the nearest common
|
|
ancestor.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose edges should be checked and updated.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="updateEdgeParents(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateEdgeParents</h4>
|
|
<pre class="methodSignature">public void updateEdgeParents​(java.lang.Object cell,
|
|
java.lang.Object root)</pre>
|
|
<div class="block">Updates the parents of the edges connected to the given cell and all its
|
|
descendants so that the edge is contained in the nearest-common-ancestor.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose edges should be checked and updated.</dd>
|
|
<dd><code>root</code> - Root of the cell hierarchy that contains all cells.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="updateEdgeParent(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateEdgeParent</h4>
|
|
<pre class="methodSignature">public void updateEdgeParent​(java.lang.Object edge,
|
|
java.lang.Object root)</pre>
|
|
<div class="block">Inner helper method to update the parent of the specified edge to the
|
|
nearest-common-ancestor of its two terminals.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>edge</code> - Specifies the edge to be updated.</dd>
|
|
<dd><code>root</code> - Current root of the model.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOrigin(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOrigin</h4>
|
|
<pre class="methodSignature">public <a href="../util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a> getOrigin​(java.lang.Object cell)</pre>
|
|
<div class="block">Returns the absolute, accumulated origin for the children inside the
|
|
given parent.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getNearestCommonAncestor(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNearestCommonAncestor</h4>
|
|
<pre class="methodSignature">public java.lang.Object getNearestCommonAncestor​(java.lang.Object cell1,
|
|
java.lang.Object cell2)</pre>
|
|
<div class="block">Returns the nearest common ancestor for the specified cells.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell1</code> - Cell that specifies the first cell in the tree.</dd>
|
|
<dd><code>cell2</code> - Cell that specifies the second cell in the tree.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the nearest common ancestor of the given cells.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdgeCount(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdgeCount</h4>
|
|
<pre class="methodSignature">public int getEdgeCount​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getEdgeCount(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the number of distinct edges connected to the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getEdgeCount(java.lang.Object)">getEdgeCount</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that represents the vertex.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the number of edges connected to cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdgeAt(java.lang.Object,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdgeAt</h4>
|
|
<pre class="methodSignature">public java.lang.Object getEdgeAt​(java.lang.Object parent,
|
|
int index)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getEdgeAt(java.lang.Object,int)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the edge of cell at the given index.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getEdgeAt(java.lang.Object,int)">getEdgeAt</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>parent</code> - Cell that specifies the vertex.</dd>
|
|
<dd><code>index</code> - Integer that specifies the index of the edge to return.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the edge at the given index.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isVertex(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isVertex</h4>
|
|
<pre class="methodSignature">public boolean isVertex​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isVertex(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given cell is a vertex.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isVertex(java.lang.Object)">isVertex</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that represents the possible vertex.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if the given cell is a vertex.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isEdge(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isEdge</h4>
|
|
<pre class="methodSignature">public boolean isEdge​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isEdge(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given cell is an edge.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isEdge(java.lang.Object)">isEdge</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell that represents the possible edge.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns true if the given cell is an edge.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isConnectable(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isConnectable</h4>
|
|
<pre class="methodSignature">public boolean isConnectable​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isConnectable(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given cell is connectable.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isConnectable(java.lang.Object)">isConnectable</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose connectable state should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the connectable state of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getValue(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getValue</h4>
|
|
<pre class="methodSignature">public java.lang.Object getValue​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getValue(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the user object of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getValue(java.lang.Object)">getValue</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose user object should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the user object of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setValue(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setValue</h4>
|
|
<pre class="methodSignature">public java.lang.Object setValue​(java.lang.Object cell,
|
|
java.lang.Object value)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setValue(java.lang.Object,java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the user object of then given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setValue(java.lang.Object,java.lang.Object)">setValue</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose user object should be changed.</dd>
|
|
<dd><code>value</code> - Object that defines the new user object.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="valueForCellChanged(java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>valueForCellChanged</h4>
|
|
<pre class="methodSignature">protected java.lang.Object valueForCellChanged​(java.lang.Object cell,
|
|
java.lang.Object value)</pre>
|
|
<div class="block">Inner callback to update the user object of the given mxCell
|
|
using mxCell.setValue and return the previous value,
|
|
that is, the return value of mxCell.getValue.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getGeometry(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGeometry</h4>
|
|
<pre class="methodSignature">public <a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> getGeometry​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getGeometry(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the geometry of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getGeometry(java.lang.Object)">getGeometry</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose geometry should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the geometry of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setGeometry(java.lang.Object,com.mxgraph.model.mxGeometry)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGeometry</h4>
|
|
<pre class="methodSignature">public <a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> setGeometry​(java.lang.Object cell,
|
|
<a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> geometry)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setGeometry(java.lang.Object,com.mxgraph.model.mxGeometry)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the geometry of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setGeometry(java.lang.Object,com.mxgraph.model.mxGeometry)">setGeometry</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose geometry should be changed.</dd>
|
|
<dd><code>geometry</code> - Object that defines the new geometry.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new geometry.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="geometryForCellChanged(java.lang.Object,com.mxgraph.model.mxGeometry)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>geometryForCellChanged</h4>
|
|
<pre class="methodSignature">protected <a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> geometryForCellChanged​(java.lang.Object cell,
|
|
<a href="mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a> geometry)</pre>
|
|
<div class="block">Inner callback to update the mxGeometry of the given mxCell using
|
|
mxCell.setGeometry and return the previous mxGeometry.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getStyle(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStyle</h4>
|
|
<pre class="methodSignature">public java.lang.String getStyle​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#getStyle(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns the style of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#getStyle(java.lang.Object)">getStyle</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose style should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the style of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setStyle(java.lang.Object,java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setStyle</h4>
|
|
<pre class="methodSignature">public java.lang.String setStyle​(java.lang.Object cell,
|
|
java.lang.String style)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setStyle(java.lang.Object,java.lang.String)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the style of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setStyle(java.lang.Object,java.lang.String)">setStyle</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose style should be changed.</dd>
|
|
<dd><code>style</code> - String of the form stylename[;key=value] to specify
|
|
the new cell style.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new style.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="styleForCellChanged(java.lang.Object,java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>styleForCellChanged</h4>
|
|
<pre class="methodSignature">protected java.lang.String styleForCellChanged​(java.lang.Object cell,
|
|
java.lang.String style)</pre>
|
|
<div class="block">Inner callback to update the style of the given mxCell
|
|
using mxCell.setStyle and return the previous style.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="isCollapsed(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isCollapsed</h4>
|
|
<pre class="methodSignature">public boolean isCollapsed​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isCollapsed(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given cell is collapsed.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isCollapsed(java.lang.Object)">isCollapsed</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose collapsed state should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the collapsed state of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setCollapsed(java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setCollapsed</h4>
|
|
<pre class="methodSignature">public boolean setCollapsed​(java.lang.Object cell,
|
|
boolean collapsed)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setCollapsed(java.lang.Object,boolean)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the collapsed state of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setCollapsed(java.lang.Object,boolean)">setCollapsed</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose collapsed state should be changed.</dd>
|
|
<dd><code>collapsed</code> - Boolean that specifies the new collpased state.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new collapsed state.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="collapsedStateForCellChanged(java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>collapsedStateForCellChanged</h4>
|
|
<pre class="methodSignature">protected boolean collapsedStateForCellChanged​(java.lang.Object cell,
|
|
boolean collapsed)</pre>
|
|
<div class="block">Inner callback to update the collapsed state of the
|
|
given mxCell using mxCell.setCollapsed and return
|
|
the previous collapsed state.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="isVisible(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isVisible</h4>
|
|
<pre class="methodSignature">public boolean isVisible​(java.lang.Object cell)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#isVisible(java.lang.Object)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Returns true if the given cell is visible.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#isVisible(java.lang.Object)">isVisible</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose visible state should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the visible state of the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setVisible(java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setVisible</h4>
|
|
<pre class="methodSignature">public boolean setVisible​(java.lang.Object cell,
|
|
boolean visible)</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#setVisible(java.lang.Object,boolean)">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Sets the visible state of the given cell.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#setVisible(java.lang.Object,boolean)">setVisible</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>cell</code> - Cell whose visible state should be changed.</dd>
|
|
<dd><code>visible</code> - Boolean that specifies the new visible state.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the new visible state.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="visibleStateForCellChanged(java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>visibleStateForCellChanged</h4>
|
|
<pre class="methodSignature">protected boolean visibleStateForCellChanged​(java.lang.Object cell,
|
|
boolean visible)</pre>
|
|
<div class="block">Sets the visible state of the given mxCell using mxVisibleChange and
|
|
adds the change to the current transaction.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="execute(com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>execute</h4>
|
|
<pre class="methodSignature">public void execute​(<a href="mxIGraphModel.mxAtomicGraphModelChange.html" title="class in com.mxgraph.model">mxIGraphModel.mxAtomicGraphModelChange</a> change)</pre>
|
|
<div class="block">Executes the given atomic change and adds it to the current edit.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>change</code> - Atomic change to be executed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="beginUpdate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>beginUpdate</h4>
|
|
<pre class="methodSignature">public void beginUpdate()</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#beginUpdate()">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Increments the updateLevel by one. The event notification is queued
|
|
until updateLevel reaches 0 by use of endUpdate.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#beginUpdate()">beginUpdate</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="endUpdate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>endUpdate</h4>
|
|
<pre class="methodSignature">public void endUpdate()</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="mxIGraphModel.html#endUpdate()">mxIGraphModel</a></code></span></div>
|
|
<div class="block">Decrements the updateLevel by one and fires a notification event if the
|
|
updateLevel reaches 0.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="mxIGraphModel.html#endUpdate()">endUpdate</a></code> in interface <code><a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="mergeChildren(com.mxgraph.model.mxICell,com.mxgraph.model.mxICell,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mergeChildren</h4>
|
|
<pre class="methodSignature">public void mergeChildren​(<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
|
|
<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> to,
|
|
boolean cloneAllEdges)
|
|
throws java.lang.CloneNotSupportedException</pre>
|
|
<div class="block">Merges the children of the given cell into the given target cell inside
|
|
this model. All cells are cloned unless there is a corresponding cell in
|
|
the model with the same id, in which case the source cell is ignored and
|
|
all edges are connected to the corresponding cell in this model. Edges
|
|
are considered to have no identity and are always cloned unless the
|
|
cloneAllEdges flag is set to false, in which case edges with the same
|
|
id in the target model are reconnected to reflect the terminals of the
|
|
source edges.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>from</code> - </dd>
|
|
<dd><code>to</code> - </dd>
|
|
<dd><code>cloneAllEdges</code> - </dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.CloneNotSupportedException</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="mergeChildrenImpl(com.mxgraph.model.mxICell,com.mxgraph.model.mxICell,boolean,java.util.Hashtable)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mergeChildrenImpl</h4>
|
|
<pre class="methodSignature">protected void mergeChildrenImpl​(<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
|
|
<a href="mxICell.html" title="interface in com.mxgraph.model">mxICell</a> to,
|
|
boolean cloneAllEdges,
|
|
java.util.Hashtable<java.lang.Object,​java.lang.Object> mapping)
|
|
throws java.lang.CloneNotSupportedException</pre>
|
|
<div class="block">Clones the children of the source cell into the given target cell in
|
|
this model and adds an entry to the mapping that maps from the source
|
|
cell to the target cell with the same id or the clone of the source cell
|
|
that was inserted into this model.</div>
|
|
<dl>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.CloneNotSupportedException</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getDirectedEdgeCount(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDirectedEdgeCount</h4>
|
|
<pre class="methodSignature">public static int getDirectedEdgeCount​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean outgoing)</pre>
|
|
<div class="block">Returns the number of incoming or outgoing edges.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Graph model that contains the connection data.</dd>
|
|
<dd><code>cell</code> - Cell whose edges should be counted.</dd>
|
|
<dd><code>outgoing</code> - Boolean that specifies if the number of outgoing or
|
|
incoming edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the number of incoming or outgoing edges.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getDirectedEdgeCount(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDirectedEdgeCount</h4>
|
|
<pre class="methodSignature">public static int getDirectedEdgeCount​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean outgoing,
|
|
java.lang.Object ignoredEdge)</pre>
|
|
<div class="block">Returns the number of incoming or outgoing edges, ignoring the given
|
|
edge.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Graph model that contains the connection data.</dd>
|
|
<dd><code>cell</code> - Cell whose edges should be counted.</dd>
|
|
<dd><code>outgoing</code> - Boolean that specifies if the number of outgoing or
|
|
incoming edges should be returned.</dd>
|
|
<dd><code>ignoredEdge</code> - Object that represents an edge to be ignored.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the number of incoming or outgoing edges.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdges</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getEdges​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</pre>
|
|
<div class="block">Returns all edges connected to this cell including loops.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the connection information.</dd>
|
|
<dd><code>cell</code> - Cell whose connections should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the array of connected edges for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getConnections(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getConnections</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getConnections​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</pre>
|
|
<div class="block">Returns all edges connected to this cell without loops.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the connection information.</dd>
|
|
<dd><code>cell</code> - Cell whose connections should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the connected edges for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getIncomingEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIncomingEdges</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getIncomingEdges​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</pre>
|
|
<div class="block">Returns the incoming edges of the given cell without loops.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Graphmodel that contains the edges.</dd>
|
|
<dd><code>cell</code> - Cell whose incoming edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the incoming edges for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOutgoingEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOutgoingEdges</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getOutgoingEdges​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell)</pre>
|
|
<div class="block">Returns the outgoing edges of the given cell without loops.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Graphmodel that contains the edges.</dd>
|
|
<dd><code>cell</code> - Cell whose outgoing edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the outgoing edges for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdges</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getEdges​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object cell,
|
|
boolean incoming,
|
|
boolean outgoing,
|
|
boolean includeLoops)</pre>
|
|
<div class="block">Returns all distinct edges connected to this cell.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the connection information.</dd>
|
|
<dd><code>cell</code> - Cell whose connections should be returned.</dd>
|
|
<dd><code>incoming</code> - Specifies if incoming edges should be returned.</dd>
|
|
<dd><code>outgoing</code> - Specifies if outgoing edges should be returned.</dd>
|
|
<dd><code>includeLoops</code> - Specifies if loops should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the array of connected edges for the given cell.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdgesBetween(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdgesBetween</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getEdgesBetween​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object source,
|
|
java.lang.Object target)</pre>
|
|
<div class="block">Returns all edges from the given source to the given target.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - The graph model that contains the graph.</dd>
|
|
<dd><code>source</code> - Object that defines the source cell.</dd>
|
|
<dd><code>target</code> - Object that defines the target cell.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns all edges from source to target.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getEdgesBetween(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getEdgesBetween</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getEdgesBetween​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object source,
|
|
java.lang.Object target,
|
|
boolean directed)</pre>
|
|
<div class="block">Returns all edges between the given source and target pair. If directed
|
|
is true, then only edges from the source to the target are returned,
|
|
otherwise, all edges between the two cells are returned.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - The graph model that contains the graph.</dd>
|
|
<dd><code>source</code> - Object that defines the source cell.</dd>
|
|
<dd><code>target</code> - Object that defines the target cell.</dd>
|
|
<dd><code>directed</code> - Boolean that specifies if the direction of the edge
|
|
should be taken into account.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns all edges between the given source and target.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOpposites(com.mxgraph.model.mxIGraphModel,java.lang.Object[],java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOpposites</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getOpposites​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] edges,
|
|
java.lang.Object terminal)</pre>
|
|
<div class="block">Returns all opposite cells of terminal for the given edges.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the connection information.</dd>
|
|
<dd><code>edges</code> - Array of edges to be examined.</dd>
|
|
<dd><code>terminal</code> - Cell that specifies the known end of the edges.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the opposite cells of the given terminal.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOpposites(com.mxgraph.model.mxIGraphModel,java.lang.Object[],java.lang.Object,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOpposites</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getOpposites​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] edges,
|
|
java.lang.Object terminal,
|
|
boolean sources,
|
|
boolean targets)</pre>
|
|
<div class="block">Returns all opposite vertices wrt terminal for the given edges, only
|
|
returning sources and/or targets as specified. The result is returned as
|
|
an array of mxCells.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the connection information.</dd>
|
|
<dd><code>edges</code> - Array of edges to be examined.</dd>
|
|
<dd><code>terminal</code> - Cell that specifies the known end of the edges.</dd>
|
|
<dd><code>sources</code> - Boolean that specifies if source terminals should
|
|
be contained in the result. Default is true.</dd>
|
|
<dd><code>targets</code> - Boolean that specifies if target terminals should
|
|
be contained in the result. Default is true.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the array of opposite terminals for the given edges.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setTerminals(com.mxgraph.model.mxIGraphModel,java.lang.Object,java.lang.Object,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTerminals</h4>
|
|
<pre class="methodSignature">public static void setTerminals​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object edge,
|
|
java.lang.Object source,
|
|
java.lang.Object target)</pre>
|
|
<div class="block">Sets the source and target of the given edge in a single atomic change.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>edge</code> - Cell that specifies the edge.</dd>
|
|
<dd><code>source</code> - Cell that specifies the new source terminal.</dd>
|
|
<dd><code>target</code> - Cell that specifies the new target terminal.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildren(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildren</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getChildren​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</pre>
|
|
<div class="block">Returns all children of the given cell regardless of their type.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the hierarchical information.</dd>
|
|
<dd><code>parent</code> - Cell whose child vertices or edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the child vertices and/or edges of the given parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildVertices(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildVertices</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getChildVertices​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</pre>
|
|
<div class="block">Returns the child vertices of the given parent.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the hierarchical information.</dd>
|
|
<dd><code>parent</code> - Cell whose child vertices should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the child vertices of the given parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildEdges(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildEdges</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getChildEdges​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</pre>
|
|
<div class="block">Returns the child edges of the given parent.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the hierarchical information.</dd>
|
|
<dd><code>parent</code> - Cell whose child edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the child edges of the given parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getChildCells(com.mxgraph.model.mxIGraphModel,java.lang.Object,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChildCells</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getChildCells​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent,
|
|
boolean vertices,
|
|
boolean edges)</pre>
|
|
<div class="block">Returns the children of the given cell that are vertices and/or edges
|
|
depending on the arguments. If both arguments are false then all
|
|
children are returned regardless of their type.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>model</code> - Model that contains the hierarchical information.</dd>
|
|
<dd><code>parent</code> - Cell whose child vertices or edges should be returned.</dd>
|
|
<dd><code>vertices</code> - Boolean indicating if child vertices should be returned.</dd>
|
|
<dd><code>edges</code> - Boolean indicating if child edges should be returned.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the child vertices and/or edges of the given parent.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getParents(com.mxgraph.model.mxIGraphModel,java.lang.Object[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getParents</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getParents​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] cells)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="filterCells(java.lang.Object[],com.mxgraph.model.mxGraphModel.Filter)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>filterCells</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] filterCells​(java.lang.Object[] cells,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getDescendants(com.mxgraph.model.mxIGraphModel,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDescendants</h4>
|
|
<pre class="methodSignature">public static java.util.Collection<java.lang.Object> getDescendants​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object parent)</pre>
|
|
<div class="block">Returns a all descendants of the given cell and the cell itself
|
|
as a collection.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="filterDescendants(com.mxgraph.model.mxIGraphModel,com.mxgraph.model.mxGraphModel.Filter)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>filterDescendants</h4>
|
|
<pre class="methodSignature">public static java.util.Collection<java.lang.Object> filterDescendants​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter)</pre>
|
|
<div class="block">Creates a collection of cells using the visitor pattern.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="filterDescendants(com.mxgraph.model.mxIGraphModel,com.mxgraph.model.mxGraphModel.Filter,java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>filterDescendants</h4>
|
|
<pre class="methodSignature">public static java.util.Collection<java.lang.Object> filterDescendants​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
<a href="mxGraphModel.Filter.html" title="interface in com.mxgraph.model">mxGraphModel.Filter</a> filter,
|
|
java.lang.Object parent)</pre>
|
|
<div class="block">Creates a collection of cells using the visitor pattern.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getTopmostCells(com.mxgraph.model.mxIGraphModel,java.lang.Object[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTopmostCells</h4>
|
|
<pre class="methodSignature">public static java.lang.Object[] getTopmostCells​(<a href="mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
|
|
java.lang.Object[] cells)</pre>
|
|
<div class="block">Function: getTopmostCells
|
|
|
|
Returns the topmost cells of the hierarchy in an array that contains no
|
|
desceandants for each <mxCell> that it contains. Duplicates should be
|
|
removed in the cells array to improve performance.
|
|
|
|
Parameters:
|
|
|
|
cells - Array of <mxCells> whose topmost ancestors should be returned.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="toString()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>toString</h4>
|
|
<pre class="methodSignature">public java.lang.String toString()</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a id="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="class-use/mxGraphModel.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>
|
|
<div class="aboutLanguage"><p><b>mxGraph 4.1.1</b></p></div>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
<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>
|
|
</footer>
|
|
</body>
|
|
</html>
|