forked from jgraph/mxgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmxGraphModel.html
More file actions
2765 lines (2751 loc) · 142 KB
/
mxGraphModel.html
File metadata and controls
2765 lines (2751 loc) · 142 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Fri Dec 14 12:03:14 UTC 2018 -->
<title>mxGraphModel (mxGraph 3.9.12 API Specification)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="date" content="2018-12-14">
<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-1.10.2.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 3.9.12 API Specification)";
}
}
catch(err) {
}
//-->
var methods = {"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 = "../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.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 3.9.12</b></p></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/mxgraph/model/mxGeometry.html" title="class in com.mxgraph.model"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../com/mxgraph/model/mxGraphModel.Filter.html" title="interface in com.mxgraph.model"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/mxgraph/model/mxGraphModel.html" target="_top">Frames</a></li>
<li><a href="mxGraphModel.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.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 name="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>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="../../../com/mxgraph/model/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="../../../com/mxgraph/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="../../../com/mxgraph/model/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="../../../com/mxgraph/util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a>
implements <a href="../../../com/mxgraph/model/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 ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" summary="Nested Class Summary table, listing nested classes, and an explanation">
<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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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="../../../com/mxgraph/model/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 name="nested.classes.inherited.from.class.com.mxgraph.util.mxEventSource">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class com.mxgraph.util.<a href="../../../com/mxgraph/util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></h3>
<code><a href="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.mxgraph.model.mxIGraphModel">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface com.mxgraph.model.<a href="../../../com/mxgraph/model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a></h3>
<code><a href="../../../com/mxgraph/model/mxIGraphModel.mxAtomicGraphModelChange.html" title="class in com.mxgraph.model">mxIGraphModel.mxAtomicGraphModelChange</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxICell.html" title="interface in com.mxgraph.model">mxICell</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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 name="fields.inherited.from.class.com.mxgraph.util.mxEventSource">
<!-- -->
</a>
<h3>Fields inherited from class com.mxgraph.util.<a href="../../../com/mxgraph/util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></h3>
<code><a href="../../../com/mxgraph/util/mxEventSource.html#eventListeners">eventListeners</a>, <a href="../../../com/mxgraph/util/mxEventSource.html#eventsEnabled">eventsEnabled</a>, <a href="../../../com/mxgraph/util/mxEventSource.html#eventSource">eventSource</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<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="../../../com/mxgraph/model/mxGraphModel.html#mxGraphModel--">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="../../../com/mxgraph/model/mxGraphModel.html#mxGraphModel-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>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#cloneCells-java.lang.Object:A-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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/util/mxUndoableEdit.html" title="class in com.mxgraph.util">mxUndoableEdit</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#execute-com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange-">execute</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#filterCells-java.lang.Object:A-com.mxgraph.model.mxGraphModel.Filter-">filterCells</a></span>​(java.lang.Object[] cells,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#filterDescendants-com.mxgraph.model.mxIGraphModel-com.mxgraph.model.mxGraphModel.Filter-">filterDescendants</a></span>​(<a href="../../../com/mxgraph/model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#filterDescendants-com.mxgraph.model.mxIGraphModel-com.mxgraph.model.mxGraphModel.Filter-java.lang.Object-">filterDescendants</a></span>​(<a href="../../../com/mxgraph/model/mxIGraphModel.html" title="interface in com.mxgraph.model">mxIGraphModel</a> model,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#geometryForCellChanged-java.lang.Object-com.mxgraph.model.mxGeometry-">geometryForCellChanged</a></span>​(java.lang.Object cell,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getChildCells-com.mxgraph.model.mxIGraphModel-java.lang.Object-boolean-boolean-">getChildCells</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getChildEdges-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getChildEdges</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getChildren-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getChildren</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getChildVertices-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getChildVertices</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getConnections-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getConnections</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getDescendants-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getDescendants</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getDirectedEdgeCount-com.mxgraph.model.mxIGraphModel-java.lang.Object-boolean-">getDirectedEdgeCount</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getDirectedEdgeCount-com.mxgraph.model.mxIGraphModel-java.lang.Object-boolean-java.lang.Object-">getDirectedEdgeCount</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getEdges-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getEdges</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getEdges-com.mxgraph.model.mxIGraphModel-java.lang.Object-boolean-boolean-boolean-">getEdges</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getEdgesBetween-com.mxgraph.model.mxIGraphModel-java.lang.Object-java.lang.Object-">getEdgesBetween</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getEdgesBetween-com.mxgraph.model.mxIGraphModel-java.lang.Object-java.lang.Object-boolean-">getEdgesBetween</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getIncomingEdges-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getIncomingEdges</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getOpposites-com.mxgraph.model.mxIGraphModel-java.lang.Object:A-java.lang.Object-">getOpposites</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#getOpposites-com.mxgraph.model.mxIGraphModel-java.lang.Object:A-java.lang.Object-boolean-boolean-">getOpposites</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/util/mxPoint.html" title="class in com.mxgraph.util">mxPoint</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getOutgoingEdges-com.mxgraph.model.mxIGraphModel-java.lang.Object-">getOutgoingEdges</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getParents-com.mxgraph.model.mxIGraphModel-java.lang.Object:A-">getParents</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#getTopmostCells-com.mxgraph.model.mxIGraphModel-java.lang.Object:A-">getTopmostCells</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#mergeChildren-com.mxgraph.model.mxICell-com.mxgraph.model.mxICell-boolean-">mergeChildren</a></span>​(<a href="../../../com/mxgraph/model/mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#mergeChildrenImpl-com.mxgraph.model.mxICell-com.mxgraph.model.mxICell-boolean-java.util.Hashtable-">mergeChildrenImpl</a></span>​(<a href="../../../com/mxgraph/model/mxICell.html" title="interface in com.mxgraph.model">mxICell</a> from,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGeometry.html" title="class in com.mxgraph.model">mxGeometry</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/mxgraph/model/mxGraphModel.html#setGeometry-java.lang.Object-com.mxgraph.model.mxGeometry-">setGeometry</a></span>​(java.lang.Object cell,
<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#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="../../../com/mxgraph/model/mxGraphModel.html#setTerminals-com.mxgraph.model.mxIGraphModel-java.lang.Object-java.lang.Object-java.lang.Object-">setTerminals</a></span>​(<a href="../../../com/mxgraph/model/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="../../../com/mxgraph/model/mxGraphModel.html#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>