2019-07-02 06:45:58 +00:00
<!DOCTYPE HTML>
2014-04-01 11:30:48 +00:00
<!-- NewPage -->
< html lang = "en" >
< head >
2019-11-08 14:59:37 +00:00
<!-- Generated by javadoc (11.0.4) on Fri Nov 08 14:34:22 UTC 2019 -->
< title > mxCodec (mxGraph 4.0.6 API Specification)< / title >
2018-11-06 11:46:01 +00:00
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
2019-11-08 14:59:37 +00:00
< meta name = "dc.created" content = "2019-11-08" >
2014-04-01 11:30:48 +00:00
< link rel = "stylesheet" type = "text/css" href = "../../../stylesheet.css" title = "Style" >
2018-11-06 11:46:01 +00:00
< link rel = "stylesheet" type = "text/css" href = "../../../jquery/jquery-ui.css" title = "Style" >
2016-06-02 09:57:18 +00:00
< script type = "text/javascript" src = "../../../script.js" > < / script >
2018-11-06 11:46:01 +00:00
< script type = "text/javascript" src = "../../../jquery/jszip/dist/jszip.min.js" > < / script >
< script type = "text/javascript" src = "../../../jquery/jszip-utils/dist/jszip-utils.min.js" > < / script >
<!-- [if IE]>
< script type = "text/javascript" src = "../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js" > < / script >
<![endif]-->
2019-07-02 06:45:58 +00:00
< script type = "text/javascript" src = "../../../jquery/jquery-3.3.1.js" > < / script >
< script type = "text/javascript" src = "../../../jquery/jquery-migrate-3.0.1.js" > < / script >
2018-11-06 11:46:01 +00:00
< script type = "text/javascript" src = "../../../jquery/jquery-ui.js" > < / script >
2014-04-01 11:30:48 +00:00
< / head >
< body >
< script type = "text/javascript" > < ! - -
2016-06-02 09:57:18 +00:00
try {
if (location.href.indexOf('is-external=true') == -1) {
2019-11-08 14:59:37 +00:00
parent.document.title="mxCodec (mxGraph 4.0.6 API Specification)";
2016-06-02 09:57:18 +00:00
}
}
catch(err) {
2012-05-21 20:32:26 +00:00
}
2014-04-01 11:30:48 +00:00
//-->
2019-07-02 06:45:58 +00:00
var data = {"i0":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":10,"i15":10,"i16":9,"i17":10,"i18":10};
2016-06-02 09:57:18 +00:00
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";
2019-07-02 06:45:58 +00:00
var pathtoroot = "../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');< / script >
2014-04-01 11:30:48 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2019-07-02 06:45:58 +00:00
< header role = "banner" >
< nav role = "navigation" >
2018-11-06 11:46:01 +00:00
< div class = "fixedNav" >
2012-05-21 20:32:26 +00:00
<!-- ========= START OF TOP NAVBAR ======= -->
2019-07-02 06:45:58 +00:00
< div class = "topNav" > < a id = "navbar.top" >
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
< / a >
< div class = "skipNav" > < a href = "#skip.navbar.top" title = "Skip navigation links" > Skip navigation links< / a > < / div >
2019-07-02 06:45:58 +00:00
< a id = "navbar.top.firstrow" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
2019-07-02 06:45:58 +00:00
< li > < a href = "../../../index.html" > Overview< / a > < / li >
2014-04-01 11:30:48 +00:00
< li > < a href = "package-summary.html" > Package< / a > < / li >
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "class-use/mxCodec.html" > Use< / a > < / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../../index-all.html" > Index< / a > < / li >
< li > < a href = "../../../help-doc.html" > Help< / a > < / li >
< / ul >
2019-11-08 14:59:37 +00:00
< div class = "aboutLanguage" > < p > < b > mxGraph 4.0.6< / b > < / p > < / div >
2014-04-01 11:30:48 +00:00
< / div >
< div class = "subNav" >
< ul class = "navList" id = "allclasses_navbar_top" >
2019-07-02 06:45:58 +00:00
< li > < a href = "../../../allclasses.html" > All Classes< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
2018-11-06 11:46:01 +00:00
< ul class = "navListSearch" >
< li > < label for = "search" > SEARCH:< / label >
< input type = "text" id = "search" value = "search" disabled = "disabled" >
< input type = "reset" id = "reset" value = "reset" disabled = "disabled" >
< / li >
< / ul >
2014-04-01 11:30:48 +00:00
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_top");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
< / script >
2018-11-06 11:46:01 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2014-04-01 11:30:48 +00:00
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > Nested | < / li >
2016-06-02 09:57:18 +00:00
< li > < a href = "#field.summary" > Field< / a > | < / li >
< li > < a href = "#constructor.summary" > Constr< / a > | < / li >
< li > < a href = "#method.summary" > Method< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
2016-06-02 09:57:18 +00:00
< li > < a href = "#field.detail" > Field< / a > | < / li >
< li > < a href = "#constructor.detail" > Constr< / a > | < / li >
< li > < a href = "#method.detail" > Method< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< / div >
2019-07-02 06:45:58 +00:00
< a id = "skip.navbar.top" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a > < / div >
2012-05-21 20:32:26 +00:00
<!-- ========= END OF TOP NAVBAR ========= -->
2018-11-06 11:46:01 +00:00
< / div >
< div class = "navPadding" > < / div >
< script type = "text/javascript" > < ! - -
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
< / script >
2019-07-02 06:45:58 +00:00
< / nav >
< / header >
2012-05-21 20:32:26 +00:00
<!-- ======== START OF CLASS DATA ======== -->
2019-07-02 06:45:58 +00:00
< main role = "main" >
2014-04-01 11:30:48 +00:00
< div class = "header" >
2019-07-02 06:45:58 +00:00
< div class = "subTitle" > < span class = "packageLabelInType" > Package< / span > < a href = "package-summary.html" > com.mxgraph.io< / a > < / div >
2014-04-01 11:30:48 +00:00
< h2 title = "Class mxCodec" class = "title" > Class mxCodec< / h2 >
< / div >
< div class = "contentContainer" >
< ul class = "inheritance" >
2017-11-24 16:16:54 +00:00
< li > java.lang.Object< / li >
2014-04-01 11:30:48 +00:00
< li >
< ul class = "inheritance" >
< li > com.mxgraph.io.mxCodec< / li >
< / ul >
< / li >
< / ul >
< div class = "description" >
< ul class = "blockList" >
< li class = "blockList" >
< hr >
2016-06-02 09:57:18 +00:00
< pre > public class < span class = "typeNameLabel" > mxCodec< / span >
2017-11-24 16:16:54 +00:00
extends java.lang.Object< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > XML codec for Java object graphs. In order to resolve forward references
2012-05-21 20:32:26 +00:00
when reading files the XML document that contains the data must be passed
2014-04-01 11:30:48 +00:00
to the constructor.< / div >
< / li >
< / ul >
< / div >
< div class = "summary" >
< ul class = "blockList" >
< li class = "blockList" >
2012-05-21 20:32:26 +00:00
<!-- =========== FIELD SUMMARY =========== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "field.summary" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Field Summary< / h3 >
2019-07-02 06:45:58 +00:00
< table class = "memberSummary" >
2014-04-01 11:30:48 +00:00
< caption > < span > Fields< / span > < span class = "tabEnd" > < / span > < / caption >
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
2018-11-06 11:46:01 +00:00
< th class = "colSecond" scope = "col" > Field< / th >
< th class = "colLast" scope = "col" > Description< / th >
2014-04-01 11:30:48 +00:00
< / tr >
< tr class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > protected org.w3c.dom.Document< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#document" > document< / a > < / span > < / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Holds the owner document of the codec.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
2019-07-02 06:45:58 +00:00
< td class = "colFirst" > < code > protected java.util.Map< java.lang.String,​ org.w3c.dom.Node> < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#elements" > elements< / a > < / span > < / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2015-06-23 07:48:06 +00:00
< div class = "block" > Maps from IDs to elements.< / div >
< / td >
< / tr >
< tr class = "altColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > protected boolean< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#encodeDefaults" > encodeDefaults< / a > < / span > < / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Specifies if default values should be encoded.< / div >
< / td >
< / tr >
2015-06-23 07:48:06 +00:00
< tr class = "rowColor" >
2019-07-02 06:45:58 +00:00
< 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 = "#objects" > objects< / a > < / span > < / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Maps from IDs to objects.< / div >
< / td >
< / tr >
< / table >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2012-05-21 20:32:26 +00:00
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "constructor.summary" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Constructor Summary< / h3 >
2019-07-02 06:45:58 +00:00
< table class = "memberSummary" >
2014-04-01 11:30:48 +00:00
< caption > < span > Constructors< / span > < span class = "tabEnd" > < / span > < / caption >
< tr >
2018-11-06 11:46:01 +00:00
< th class = "colFirst" scope = "col" > Constructor< / th >
< th class = "colLast" scope = "col" > Description< / th >
2014-04-01 11:30:48 +00:00
< / tr >
< tr class = "altColor" >
2019-07-02 06:45:58 +00:00
< th class = "colConstructorName" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#%3Cinit%3E()" > mxCodec< / a > < / span > ()< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Constructs an XML encoder/decoder with a new owner document.< / div >
< / td >
< / tr >
< tr class = "rowColor" >
2019-07-02 06:45:58 +00:00
< th class = "colConstructorName" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#%3Cinit%3E(org.w3c.dom.Document)" > mxCodec< / a > < / span > ​ (org.w3c.dom.Document document)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Constructs an XML encoder/decoder for the specified owner document.< / div >
< / td >
< / tr >
< / table >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2012-05-21 20:32:26 +00:00
<!-- ========== METHOD SUMMARY =========== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "method.summary" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Method Summary< / h3 >
2019-07-02 06:45:58 +00:00
< table class = "memberSummary" >
2016-06-02 09:57:18 +00:00
< caption > < span id = "t0" class = "activeTableTab" > < span > All Methods< / span > < span class = "tabEnd" > < / 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 >
2014-04-01 11:30:48 +00:00
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
2018-11-06 11:46:01 +00:00
< th class = "colSecond" scope = "col" > Method< / th >
< th class = "colLast" scope = "col" > Description< / th >
2014-04-01 11:30:48 +00:00
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i0" class = "altColor" >
2015-06-23 07:48:06 +00:00
< td class = "colFirst" > < code > protected void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#addElement(org.w3c.dom.Node)" > addElement< / a > < / span > ​ (org.w3c.dom.Node node)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2015-06-23 07:48:06 +00:00
< div class = "block" > Adds the given element to < elements > if it has an ID.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i1" class = "rowColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.Object< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#decode(org.w3c.dom.Node)" > decode< / a > < / span > ​ (org.w3c.dom.Node node)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2019-07-02 06:45:58 +00:00
< div class = "block" > Decodes the given XML node using < a href = "#decode(org.w3c.dom.Node,java.lang.Object)" > < code > decode(Node, Object)< / code > < / a > .< / div >
2014-04-01 11:30:48 +00:00
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i2" class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.Object< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#decode(org.w3c.dom.Node,java.lang.Object)" > decode< / a > < / span > ​ (org.w3c.dom.Node node,
2018-11-06 11:46:01 +00:00
java.lang.Object into)< / code > < / th >
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Decodes the given XML node.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i3" class = "rowColor" >
2019-07-02 06:45:58 +00:00
< td class = "colFirst" > < code > < a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#decodeCell(org.w3c.dom.Node,boolean)" > decodeCell< / a > < / span > ​ (org.w3c.dom.Node node,
2018-11-06 11:46:01 +00:00
boolean restoreStructures)< / code > < / th >
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Decodes cells that have been encoded using inversion, ie.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i4" class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > org.w3c.dom.Node< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#encode(java.lang.Object)" > encode< / a > < / span > ​ (java.lang.Object obj)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Encodes the specified object and returns the resulting XML node.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i5" class = "rowColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#encodeCell(com.mxgraph.model.mxICell,org.w3c.dom.Node,boolean)" > encodeCell< / a > < / span > ​ (< a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > cell,
2017-11-24 16:16:54 +00:00
org.w3c.dom.Node node,
2018-11-06 11:46:01 +00:00
boolean includeChildren)< / code > < / th >
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Encoding of cell hierarchies is built-into the core, but is a
2012-05-21 20:32:26 +00:00
higher-level function that needs to be explicitely used by the
2014-04-01 11:30:48 +00:00
respective object encoders (eg.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i6" class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > org.w3c.dom.Document< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getDocument()" > getDocument< / a > < / span > ()< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the owner document of the codec.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i7" class = "rowColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > org.w3c.dom.Node< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getElementById(java.lang.String)" > getElementById< / a > < / span > ​ (java.lang.String id)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the element with the given ID from the document.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i8" class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.String< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getId(java.lang.Object)" > getId< / a > < / span > ​ (java.lang.Object obj)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the ID of the specified object.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i9" class = "rowColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.Object< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getObject(java.lang.String)" > getObject< / a > < / span > ​ (java.lang.String id)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the decoded object for the element with the specified ID in
2019-07-02 06:45:58 +00:00
< a href = "#document" > < code > document< / code > < / a > .< / div >
2014-04-01 11:30:48 +00:00
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i10" class = "altColor" >
2019-07-02 06:45:58 +00:00
< 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 = "#getObjects()" > getObjects< / a > < / span > ()< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the object lookup table.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i11" class = "rowColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#insertIntoGraph(com.mxgraph.model.mxICell)" > insertIntoGraph< / a > < / span > ​ (< a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > cell)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Inserts the given cell into its parent and terminal cells.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i12" class = "altColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > boolean< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#isEncodeDefaults()" > isEncodeDefaults< / a > < / span > ()< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns if default values of member variables should be encoded.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i13" class = "rowColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.Object< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#lookup(java.lang.String)" > lookup< / a > < / span > ​ (java.lang.String id)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Hook for subclassers to implement a custom lookup mechanism for cell IDs.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i14" class = "altColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.Object< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#putObject(java.lang.String,java.lang.Object)" > putObject< / a > < / span > ​ (java.lang.String id,
2018-11-06 11:46:01 +00:00
java.lang.Object object)< / code > < / th >
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Assoiates the given object with the given ID.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i15" class = "rowColor" >
2017-11-24 16:16:54 +00:00
< td class = "colFirst" > < code > java.lang.String< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#reference(java.lang.Object)" > reference< / a > < / span > ​ (java.lang.Object obj)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Hook for subclassers to implement a custom method for retrieving IDs from
objects.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i16" class = "altColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > static void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#setAttribute(org.w3c.dom.Node,java.lang.String,java.lang.Object)" > setAttribute< / a > < / span > ​ (org.w3c.dom.Node node,
2017-11-24 16:16:54 +00:00
java.lang.String attribute,
2018-11-06 11:46:01 +00:00
java.lang.Object value)< / code > < / th >
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets the attribute on the specified node to value.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i17" class = "rowColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#setDocument(org.w3c.dom.Document)" > setDocument< / a > < / span > ​ (org.w3c.dom.Document value)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets the owner document of the codec.< / div >
< / td >
< / tr >
2016-06-02 09:57:18 +00:00
< tr id = "i18" class = "altColor" >
2014-04-01 11:30:48 +00:00
< td class = "colFirst" > < code > void< / code > < / td >
2019-07-02 06:45:58 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#setEncodeDefaults(boolean)" > setEncodeDefaults< / a > < / span > ​ (boolean encodeDefaults)< / code > < / th >
2018-11-06 11:46:01 +00:00
< td class = "colLast" >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets if default values of member variables should be encoded.< / div >
< / td >
< / tr >
< / table >
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "methods.inherited.from.class.java.lang.Object" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
2017-11-24 16:16:54 +00:00
< h3 > Methods inherited from class java.lang.Object< / h3 >
< code > clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait< / code > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
< / div >
< div class = "details" >
< ul class = "blockList" >
< li class = "blockList" >
2012-05-21 20:32:26 +00:00
<!-- ============ FIELD DETAIL =========== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "field.detail" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Field Detail< / h3 >
2019-07-02 06:45:58 +00:00
< a id = "document" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > document< / h4 >
2017-11-24 16:16:54 +00:00
< pre > protected org.w3c.dom.Document document< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Holds the owner document of the codec.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "objects" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > objects< / h4 >
2019-07-02 06:45:58 +00:00
< pre > protected java.util.Map< java.lang.String,​ java.lang.Object> objects< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Maps from IDs to objects.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "elements" >
2015-06-23 07:48:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > elements< / h4 >
2019-07-02 06:45:58 +00:00
< pre > protected java.util.Map< java.lang.String,​ org.w3c.dom.Node> elements< / pre >
2015-06-23 07:48:06 +00:00
< div class = "block" > Maps from IDs to elements.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "encodeDefaults" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > encodeDefaults< / h4 >
< pre > protected boolean encodeDefaults< / pre >
< div class = "block" > Specifies if default values should be encoded. Default is false.< / div >
< / li >
< / ul >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2012-05-21 20:32:26 +00:00
<!-- ========= CONSTRUCTOR DETAIL ======== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "constructor.detail" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Constructor Detail< / h3 >
2019-07-02 06:45:58 +00:00
< a id = "<init>()" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > mxCodec< / h4 >
< pre > public mxCodec()< / pre >
< div class = "block" > Constructs an XML encoder/decoder with a new owner document.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "<init>(org.w3c.dom.Document)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > mxCodec< / h4 >
2018-11-06 11:46:01 +00:00
< pre > public mxCodec​ (org.w3c.dom.Document document)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Constructs an XML encoder/decoder for the specified owner document.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > document< / code > - Optional XML document that contains the data. If no document
is specified then a new document is created using mxUtils.createDocument< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2012-05-21 20:32:26 +00:00
<!-- ============ METHOD DETAIL ========== -->
2019-07-02 06:45:58 +00:00
< section role = "region" >
2014-04-01 11:30:48 +00:00
< ul class = "blockList" >
2019-07-02 06:45:58 +00:00
< li class = "blockList" > < a id = "method.detail" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< h3 > Method Detail< / h3 >
2019-07-02 06:45:58 +00:00
< a id = "getDocument()" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getDocument< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public org.w3c.dom.Document getDocument()< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the owner document of the codec.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the owner document.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "setDocument(org.w3c.dom.Document)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setDocument< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public void setDocument​ (org.w3c.dom.Document value)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets the owner document of the codec.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "isEncodeDefaults()" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > isEncodeDefaults< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public boolean isEncodeDefaults()< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns if default values of member variables should be encoded.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "setEncodeDefaults(boolean)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setEncodeDefaults< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public void setEncodeDefaults​ (boolean encodeDefaults)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets if default values of member variables should be encoded.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "getObjects()" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getObjects< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.util.Map< java.lang.String,​ java.lang.Object> getObjects()< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the object lookup table.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "putObject(java.lang.String,java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > putObject< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.Object putObject​ (java.lang.String id,
2017-11-24 16:16:54 +00:00
java.lang.Object object)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Assoiates the given object with the given ID.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > id< / code > - ID for the object to be associated with.< / dd >
< dd > < code > object< / code > - Object to be associated with the ID.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the given object.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "getObject(java.lang.String)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getObject< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.Object getObject​ (java.lang.String id)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the decoded object for the element with the specified ID in
2019-07-02 06:45:58 +00:00
< a href = "#document" > < code > document< / code > < / a > . If the object is not known then < a href = "#lookup(java.lang.String)" > < code > lookup(String)< / code > < / a >
2012-05-21 20:32:26 +00:00
is used to find an object. If no object is found, then the element with
2019-07-02 06:45:58 +00:00
the respective ID from the document is parsed using < a href = "#decode(org.w3c.dom.Node)" > < code > decode(Node)< / code > < / a > .< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > id< / code > - ID of the object to be returned.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the object for the given ID.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "lookup(java.lang.String)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > lookup< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.Object lookup​ (java.lang.String id)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Hook for subclassers to implement a custom lookup mechanism for cell IDs.
This implementation always returns null.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > id< / code > - ID of the object to be returned.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the object for the given ID.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "getElementById(java.lang.String)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getElementById< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public org.w3c.dom.Node getElementById​ (java.lang.String id)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the element with the given ID from the document.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > id< / code > - ID of the element to be returned.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the element for the given ID.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "addElement(org.w3c.dom.Node)" >
2015-06-23 07:48:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addElement< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > protected void addElement​ (org.w3c.dom.Node node)< / pre >
2015-06-23 07:48:06 +00:00
< div class = "block" > Adds the given element to < elements > if it has an ID.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "getId(java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getId< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.String getId​ (java.lang.Object obj)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Returns the ID of the specified object. This implementation calls
2012-05-21 20:32:26 +00:00
reference first and if that returns null handles the object as an
mxCell by returning their IDs using mxCell.getId. If no ID exists for
the given cell, then an on-the-fly ID is generated using
2014-04-01 11:30:48 +00:00
mxCellPath.create.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > obj< / code > - Object to return the ID for.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the ID for the given object.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "reference(java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > reference< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.String reference​ (java.lang.Object obj)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Hook for subclassers to implement a custom method for retrieving IDs from
objects. This implementation always returns null.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > obj< / code > - Object whose ID should be returned.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns the ID for the given object.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "encode(java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > encode< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public org.w3c.dom.Node encode​ (java.lang.Object obj)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Encodes the specified object and returns the resulting XML node.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > obj< / code > - Object to be encoded.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns an XML node that represents the given object.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "decode(org.w3c.dom.Node)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > decode< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.Object decode​ (org.w3c.dom.Node node)< / pre >
< div class = "block" > Decodes the given XML node using < a href = "#decode(org.w3c.dom.Node,java.lang.Object)" > < code > decode(Node, Object)< / code > < / a > .< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > node< / code > - XML node to be decoded.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns an object that represents the given node.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "decode(org.w3c.dom.Node,java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > decode< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public java.lang.Object decode​ (org.w3c.dom.Node node,
2017-11-24 16:16:54 +00:00
java.lang.Object into)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Decodes the given XML node. The optional "into" argument specifies an
2012-05-21 20:32:26 +00:00
existing object to be used. If no object is given, then a new
instance is created using the constructor from the codec.
The function returns the passed in object or the new instance if no
2014-04-01 11:30:48 +00:00
object was given.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > node< / code > - XML node to be decoded.< / dd >
< dd > < code > into< / code > - Optional object to be decodec into.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Returns an object that represents the given node.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "encodeCell(com.mxgraph.model.mxICell,org.w3c.dom.Node,boolean)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > encodeCell< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public void encodeCell​ (< a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > cell,
2017-11-24 16:16:54 +00:00
org.w3c.dom.Node node,
2016-06-02 09:57:18 +00:00
boolean includeChildren)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Encoding of cell hierarchies is built-into the core, but is a
2012-05-21 20:32:26 +00:00
higher-level function that needs to be explicitely used by the
respective object encoders (eg. mxModelCodec, mxChildChangeCodec
and mxRootChangeCodec). This implementation writes the given cell
and its children as a (flat) sequence into the given node. The
children are not encoded if the optional includeChildren is false.
The function is in charge of adding the result into the given node
2014-04-01 11:30:48 +00:00
and has no return value.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > cell< / code > - mxCell to be encoded.< / dd >
< dd > < code > node< / code > - Parent XML node to add the encoded cell into.< / dd >
< dd > < code > includeChildren< / code > - Boolean indicating if the method
should include all descendents.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "decodeCell(org.w3c.dom.Node,boolean)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > decodeCell< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public < a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > decodeCell​ (org.w3c.dom.Node node,
2016-06-02 09:57:18 +00:00
boolean restoreStructures)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Decodes cells that have been encoded using inversion, ie. where the
2012-05-21 20:32:26 +00:00
user object is the enclosing node in the XML, and restores the group
and graph structure in the cells. Returns a new < mxCell > instance
2014-04-01 11:30:48 +00:00
that represents the given node.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > node< / code > - XML node that contains the cell data.< / dd >
< dd > < code > restoreStructures< / code > - Boolean indicating whether the graph
2012-05-21 20:32:26 +00:00
structure should be restored by calling insert and insertEdge on the
2014-04-01 11:30:48 +00:00
parent and terminals, respectively.< / dd >
2016-06-02 09:57:18 +00:00
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > Graph cell that represents the given node.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "insertIntoGraph(com.mxgraph.model.mxICell)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > insertIntoGraph< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public void insertIntoGraph​ (< a href = "../model/mxICell.html" title = "interface in com.mxgraph.model" > mxICell< / a > cell)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Inserts the given cell into its parent and terminal cells.< / div >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< a id = "setAttribute(org.w3c.dom.Node,java.lang.String,java.lang.Object)" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > setAttribute< / h4 >
2019-07-02 06:45:58 +00:00
< pre class = "methodSignature" > public static void setAttribute​ (org.w3c.dom.Node node,
2017-11-24 16:16:54 +00:00
java.lang.String attribute,
java.lang.Object value)< / pre >
2014-04-01 11:30:48 +00:00
< div class = "block" > Sets the attribute on the specified node to value. This is a
2012-05-21 20:32:26 +00:00
helper method that makes sure the attribute and value arguments
2014-04-01 11:30:48 +00:00
are not null.< / div >
2016-06-02 09:57:18 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > node< / code > - XML node to set the attribute for.< / dd >
< dd > < code > attribute< / code > - Name of the attribute whose value should be set.< / dd >
< dd > < code > value< / code > - New value of the attribute.< / dd >
< / dl >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
< / li >
< / ul >
2019-07-02 06:45:58 +00:00
< / section >
2014-04-01 11:30:48 +00:00
< / li >
< / ul >
< / div >
< / div >
2019-07-02 06:45:58 +00:00
< / main >
2012-05-21 20:32:26 +00:00
<!-- ========= END OF CLASS DATA ========= -->
2019-07-02 06:45:58 +00:00
< footer role = "contentinfo" >
< nav role = "navigation" >
2012-05-21 20:32:26 +00:00
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2019-07-02 06:45:58 +00:00
< div class = "bottomNav" > < a id = "navbar.bottom" >
2014-04-01 11:30:48 +00:00
<!-- -->
2016-06-02 09:57:18 +00:00
< / a >
< div class = "skipNav" > < a href = "#skip.navbar.bottom" title = "Skip navigation links" > Skip navigation links< / a > < / div >
2019-07-02 06:45:58 +00:00
< a id = "navbar.bottom.firstrow" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
2019-07-02 06:45:58 +00:00
< li > < a href = "../../../index.html" > Overview< / a > < / li >
2014-04-01 11:30:48 +00:00
< li > < a href = "package-summary.html" > Package< / a > < / li >
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "class-use/mxCodec.html" > Use< / a > < / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../../index-all.html" > Index< / a > < / li >
< li > < a href = "../../../help-doc.html" > Help< / a > < / li >
< / ul >
2019-11-08 14:59:37 +00:00
< div class = "aboutLanguage" > < p > < b > mxGraph 4.0.6< / b > < / p > < / div >
2014-04-01 11:30:48 +00:00
< / div >
< div class = "subNav" >
< ul class = "navList" id = "allclasses_navbar_bottom" >
2019-07-02 06:45:58 +00:00
< li > < a href = "../../../allclasses.html" > All Classes< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_bottom");
2012-05-21 20:32:26 +00:00
if(window==top) {
2014-04-01 11:30:48 +00:00
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
2012-05-21 20:32:26 +00:00
}
//-->
2014-04-01 11:30:48 +00:00
< / script >
2018-11-06 11:46:01 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2014-04-01 11:30:48 +00:00
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > Nested | < / li >
2016-06-02 09:57:18 +00:00
< li > < a href = "#field.summary" > Field< / a > | < / li >
< li > < a href = "#constructor.summary" > Constr< / a > | < / li >
< li > < a href = "#method.summary" > Method< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
2016-06-02 09:57:18 +00:00
< li > < a href = "#field.detail" > Field< / a > | < / li >
< li > < a href = "#constructor.detail" > Constr< / a > | < / li >
< li > < a href = "#method.detail" > Method< / a > < / li >
2014-04-01 11:30:48 +00:00
< / ul >
< / div >
2019-07-02 06:45:58 +00:00
< a id = "skip.navbar.bottom" >
2014-04-01 11:30:48 +00:00
<!-- -->
< / a > < / div >
2012-05-21 20:32:26 +00:00
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2019-07-02 06:45:58 +00:00
< / nav >
2017-06-27 11:43:19 +00:00
< p class = "legalCopy" > < small > < font size = 1 > Copyright (c) 2010-2017 < a href = "http://www.jgraph.com/"
target="_blank">Gaudenz Alder, JGraph Ltd< / a > . All rights reserved.< / font > < / small > < / p >
2019-07-02 06:45:58 +00:00
< / footer >
2014-04-01 11:30:48 +00:00
< / body >
< / html >