<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxGraphModel"></a>mxGraphModel</h1><divclass=CBody><p>Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph.</p><p>Fires a graphModelChanged event after each group of changes.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxGraphModel">mxGraphModel</a></td><tdclass=SDescription>Cells are the elements of the graph model. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGraphModel.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.root"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">root</a></td><tdclass=SDescription>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.cells"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">cells</a></td><tdclass=SDescription>Maps from Ids to cells.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.maintainEdgeParent"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">maintainEdgeParent</a></td><tdclass=SDescription>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.createIds"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">createIds</a></td><tdclass=SDescription>Specifies if the model should automatically create Ids for new cells. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.nextId"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">nextId</a></td><tdclass=SDescription>Specifies the next Id to be created. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.updateLevel"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">updateLevel</a></td><tdclass=SDescription>Counter for the depth of nested transactions. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGraphModel.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.mxGraphModel"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">mxGraphModel</a></td><tdclass=SDescription>Constructs a new graph model using the specified root cell.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.clear"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">clear</a></td><tdclass=SDescription>Sets a new root using <ahref="#mxGraphModel.createRoot"class=LFunctionid=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">createRoot</a>.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.createRoot"id=link10onMouseOver="ShowTip(event, 'tt9', 'link10')"onMouseOut="HideTip('tt9')">createRoot</a></td><tdclass=SDescription>Creates a new root cell with a default layer (child 0).</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.getCells"id=link11onMouseOver="ShowTip(event, 'tt10', 'link11')"onMouseOut="HideTip('tt10')">getCells</a></td><tdclass=SDescription>Returns the internal lookup table that is used to map from Ids to cells.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGraphModel.setRoot">setRoot</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGraphModel.getRoot"id=link12onMouseOver="ShowTip(eve
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.root"></a>root</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $root</td></tr></table></blockquote><p>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. That is, the actual elements of the diagram are supposed to live in the third generation of cells and below.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cells"></a>cells</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $cells</td></tr></table></blockquote><p>Maps from Ids to cells.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.maintainEdgeParent"></a>maintainEdgeParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $maintainEdgeParent</td></tr></table></blockquote><p>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.createIds"></a>createIds</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $createIds</td></tr></table></blockquote><p>Specifies if the model should automatically create Ids for new cells. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.nextId"></a>nextId</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $nextId</td></tr></table></blockquote><p>Specifies the next Id to be created. Default is 0.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.updateLevel"></a>updateLevel</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $updateLevel</td></tr></table></blockquote><p>Counter for the depth of nested transactions. Each call to <ahref="#mxGraphModel.beginUpdate"class=LFunctionid=link91onMouseOver="ShowTip(event, 'tt57', 'link91')"onMouseOut="HideTip('tt57')">beginUpdate</a> will increment this number and each call to <ahref="#mxGraphModel.endUpdate"class=LFunctionid=link92onMouseOver="ShowTip(event, 'tt58', 'link92')"onMouseOut="HideTip('tt58')">endUpdate</a> will decrement it. When the counter reaches 0, the transaction is closed and the respective events are fired. Initial value is 0.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.mxGraphModel"></a>mxGraphModel</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxGraphModel(</td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new graph model using the specified root cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.clear"></a>clear</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function clear()</td></tr></table></blockquote><p>Sets a new root using <ahref="#mxGraphModel.createRoot"class=LFunctionid=link93onMouseOver="ShowTip(event, 'tt9', 'link93')"onMouseOut="HideTip('tt9')">createRoot</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.createRoot"></a>createRoot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function createRoot()</td></tr></table></blockquote><p>Creates a new root cell with a default layer (child 0).</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getCells"></a>getCells</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getCells()</td></tr></table></blockquote><p>Returns the internal lookup table that is used to map from Ids to cells.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getRoot"></a>getRoot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getRoot()</td></tr></table></blockquote><p>Returns the root of the model.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setRoot"></a>setRoot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setRoot(</td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <ahref="#mxGraphModel.root"class=LVariableid=link94onMouseOver="ShowTip(event, 'tt1', 'link94')"onMouseOut="HideTip('tt1')">root</a> of the model using <mxRootChange> and adds the change to the current transaction. This resets all datastructures in the model and is the preferred way of clearing an existing model. Returns the new root.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>root</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link95onMouseOver="ShowTip(event, 'tt14', 'link95')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new root.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cloneCell"></a>cloneCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCell(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns a deep clone of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link96onMouseOver="ShowTip(event, 'tt14', 'link96')"onMouseOut="HideTip('tt14')">mxCell</a> (including the children) which is created using <ahref="#mxGraphModel.cloneCells"class=LFunctionid=link97onMouseOver="ShowTip(event, 'tt15', 'link97')"onMouseOut="HideTip('tt15')">cloneCells</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link98onMouseOver="ShowTip(event, 'tt14', 'link98')"onMouseOut="HideTip('tt14')">mxCell</a> to be cloned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cloneCells"></a>cloneCells</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCells(</td><tdclass="PParameter prettyprint "nowrap>$cells,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$includeChildren</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%>true</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns an array of clones for the given array of <ahref="mxCell-php.html#mxCell"class=LClassid=link99onMouseOver="ShowTip(event, 'tt14', 'link99')"onMouseOut="HideTip('tt14')">mxCells</a>. Depending on the value of includeChildren, a deep clone is created for each cell. Connections are restored based if the corresponding cell is contained in the passed in array.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cells</td><tdclass=CDLDescription>Array of <ahref="mxCell-php.html#mxCell"class=LClassid=link100onMouseOver="ShowTip(event, 'tt14', 'link100')"onMouseOut="HideTip('tt14')">mxCell</a> to be cloned.</td></tr><tr><tdclass=CDLEntry>includeChildren</td><tdclass=CDLDescription>Boolean indicating if the cells should be cloned with all descendants.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cellCloned"></a>cellCloned</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellCloned(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook for cloning the cell. This returns cell->copy() or any possible exceptions.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.restoreClone"></a>restoreClone</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function restoreClone(</td><tdclass="PParameter prettyprint "nowrap>$clne,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$mapping</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner helper method for restoring the connections in a network of cloned cells.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isAncestor"></a>isAncestor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isAncestor(</td><tdclass="PParameter prettyprint "nowrap>$parent,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$child</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given parent is an ancestor of the given child.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link101onMouseOver="ShowTip(event, 'tt14', 'link101')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the parent.</td></tr><tr><tdclass=CDLEntry>child</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link102onMouseOver="ShowTip(event, 'tt14', 'link102')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the child.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.contains"></a>contains</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function contains(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the model contains the given <ahref="mxCell-php.html#mxCell"class=LClassid=link103onMouseOver="ShowTip(event, 'tt14', 'link103')"onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link104onMouseOver="ShowTip(event, 'tt14', 'link104')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getParent"></a>getParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getParent(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the parent of the given cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link105onMouseOver="ShowTip(event, 'tt14', 'link105')"onMouseOut="HideTip('tt14')">mxCell</a> whose parent should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.add"></a>add</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function add(</td><tdclass="PParameter prettyprint "nowrap>$parent,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$child,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$index</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the specified child to the parent at the given index using <mxChildChange> and adds the change to the current transaction. If no index is specified then the child is appended to the parent’s array of children. Returns the inserted child.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link106onMouseOver="ShowTip(event, 'tt14', 'link106')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the parent to contain the child.</td></tr><tr><tdclass=CDLEntry>child</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link107onMouseOver="ShowTip(event, 'tt14', 'link107')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the child to be inserted.</td></tr><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Optional integer that specifies the index of the child.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cellAdded"></a>cellAdded</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellAdded(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update <ahref="#mxGraphModel.cells"class=LVariableid=link108onMouseOver="ShowTip(event, 'tt2', 'link108')"onMouseOut="HideTip('tt2')">cells</a> when a cell has been added. This implementation resolves collisions by creating new Ids.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link109onMouseOver="ShowTip(event, 'tt14', 'link109')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell that has been added.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.createId"></a>createId</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function createId(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Hook method to create an Id for the specified cell. This implementation increments <ahref="#mxGraphModel.nextId"class=LVariableid=link110onMouseOver="ShowTip(event, 'tt5', 'link110')"onMouseOut="HideTip('tt5')">nextId</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link111onMouseOver="ShowTip(event, 'tt14', 'link111')"onMouseOut="HideTip('tt14')">mxCell</a> to create the Id for.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.updateEdgeParents"></a>updateEdgeParents</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateEdgeParents(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the parent for all edges that are connected to cell or one of its descendants using <ahref="#mxGraphModel.updateEdgeParent"class=LFunctionid=link112onMouseOver="ShowTip(event, 'tt26', 'link112')"onMouseOut="HideTip('tt26')">updateEdgeParent</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.updateEdgeParent"></a>updateEdgeParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function updateEdgeParent(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update the parent of the specified <ahref="mxCell-php.html#mxCell"class=LClassid=link113onMouseOver="ShowTip(event, 'tt14', 'link113')"onMouseOut="HideTip('tt14')">mxCell</a> to the nearest-common-ancestor of its two terminals.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link114onMouseOver="ShowTip(event, 'tt14', 'link114')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><tdclass=CDLEntry>root</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link115onMouseOver="ShowTip(event, 'tt14', 'link115')"onMouseOut="HideTip('tt14')">mxCell</a> that represents the current root of the model.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getOrigin"></a>getOrigin</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getOrigin(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the absolute, cummulated origin for the children inside the given parent as an <ahref="../util/mxPoint-php.html#mxPoint"class=LClassid=link116onMouseOver="ShowTip(event, 'tt28', 'link116')"onMouseOut="HideTip('tt28')">mxPoint</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getNearestCommonAncestor"></a>getNearestCommonAncestor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getNearestCommonAncestor(</td><tdclass="PParameter prettyprint "nowrap>$cell1,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$cell2</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the nearest common ancestor for the specified cells.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell1</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link117onMouseOver="ShowTip(event, 'tt14', 'link117')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the first cell in the tree.</td></tr><tr><tdclass=CDLEntry>cell2</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link118onMouseOver="ShowTip(event, 'tt14', 'link118')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the second cell in the tree.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.remove"></a>remove</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function remove(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the specified cell from the model using <mxChildChange> and adds the change to the current transaction. This operation will remove the cell and all of its children from the model. Returns the removed cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link119onMouseOver="ShowTip(event, 'tt14', 'link119')"onMouseOut="HideTip('tt14')">mxCell</a> that should be removed.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cellRemoved"></a>cellRemoved</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cellRemoved(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner callback to update <ahref="#mxGraphModel.cells"class=LVariableid=link120onMouseOver="ShowTip(event, 'tt2', 'link120')"onMouseOut="HideTip('tt2')">cells</a> when a cell has been removed.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link121onMouseOver="ShowTip(event, 'tt14', 'link121')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell that has been removed.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getChildCount"></a>getChildCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getChildCount(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of children in the given cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link122onMouseOver="ShowTip(event, 'tt14', 'link122')"onMouseOut="HideTip('tt14')">mxCell</a> whose number of children should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getChildAt"></a>getChildAt</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getChildAt(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$index</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the child of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link123onMouseOver="ShowTip(event, 'tt14', 'link123')"onMouseOut="HideTip('tt14')">mxCell</a> at the given index.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link124onMouseOver="ShowTip(event, 'tt14', 'link124')"onMouseOut="HideTip('tt14')">mxCell</a> that represents the parent.</td></tr><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Integer that specifies the index of the child to be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getTerminal"></a>getTerminal</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getTerminal(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$cource</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the source or target <ahref="mxCell-php.html#mxCell"class=LClassid=link125onMouseOver="ShowTip(event, 'tt14', 'link125')"onMouseOut="HideTip('tt14')">mxCell</a> of the given edge depending on the value of the boolean parameter.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link126onMouseOver="ShowTip(event, 'tt14', 'link126')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><tdclass=CDLEntry>cource</td><tdclass=CDLDescription>Boolean indicating which end of the edge should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setTerminal"></a>setTerminal</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setTerminal(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$terminal,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the source or target terminal of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link127onMouseOver="ShowTip(event, 'tt14', 'link127')"onMouseOut="HideTip('tt14')">mxCell</a> using <mxTerminalChange> and adds the change to the current transaction. This implementation updates the parent of the edge using <ahref="#mxGraphModel.updateEdgeParent"class=LFunctionid=link128onMouseOver="ShowTip(event, 'tt26', 'link128')"onMouseOut="HideTip('tt26')">updateEdgeParent</a> if required.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link129onMouseOver="ShowTip(event, 'tt14', 'link129')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link130onMouseOver="ShowTip(event, 'tt14', 'link130')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new terminal.</td></tr><tr><tdclass=CDLEntry>isSource</td><tdclass=CDLDescription>Boolean indicating if the terminal is the new source or target terminal of the edge.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setTerminals"></a>setTerminals</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setTerminals(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$source,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$target</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the source and target <ahref="mxCell-php.html#mxCell"class=LClassid=link131onMouseOver="ShowTip(event, 'tt14', 'link131')"onMouseOut="HideTip('tt14')">mxCell</a> of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link132onMouseOver="ShowTip(event, 'tt14', 'link132')"onMouseOut="HideTip('tt14')">mxCell</a> in a single transaction using <ahref="#mxGraphModel.setTerminal"class=LFunctionid=link133onMouseOver="ShowTip(event, 'tt35', 'link133')"onMouseOut="HideTip('tt35')">setTerminal</a> for each end of the edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link134onMouseOver="ShowTip(event, 'tt14', 'link134')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the edge.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link135onMouseOver="ShowTip(event, 'tt14', 'link135')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new source terminal.</td></tr><tr><tdclass=CDLEntry>target</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link136onMouseOver="ShowTip(event, 'tt14', 'link136')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the new target terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getEdgeCount"></a>getEdgeCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getEdgeCount(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of distinct edges connected to the given cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link137onMouseOver="ShowTip(event, 'tt14', 'link137')"onMouseOut="HideTip('tt14')">mxCell</a> that represents the vertex.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getEdgeAt"></a>getEdgeAt</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getEdgeAt(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$index</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the edge of cell at the given index.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link138onMouseOver="ShowTip(event, 'tt14', 'link138')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the vertex.</td></tr><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Integer that specifies the index of the edge to return.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getEdges"></a>getEdges</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getEdges(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns all distinct edges connected to this cell as an array of <ahref="mxCell-php.html#mxCell"class=LClassid=link139onMouseOver="ShowTip(event, 'tt14', 'link139')"onMouseOut="HideTip('tt14')">mxCells</a>. The return value should be only be read.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link140onMouseOver="ShowTip(event, 'tt14', 'link140')"onMouseOut="HideTip('tt14')">mxCell</a> that specifies the cell.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isVertex"></a>isVertex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isVertex(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given cell is a vertex.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link141onMouseOver="ShowTip(event, 'tt14', 'link141')"onMouseOut="HideTip('tt14')">mxCell</a> that represents the possible vertex.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isEdge"></a>isEdge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isEdge(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given cell is an edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link142onMouseOver="ShowTip(event, 'tt14', 'link142')"onMouseOut="HideTip('tt14')">mxCell</a> that represents the possible edge.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isConnectable"></a>isConnectable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isConnectable(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <ahref="mxCell-php.html#mxCell"class=LClassid=link143onMouseOver="ShowTip(event, 'tt14', 'link143')"onMouseOut="HideTip('tt14')">mxCell</a> is connectable. If <edgesConnectable> is false, then this function returns false for all edges else it returns the return value of <ahref="mxCell-php.html#mxCell.isConnectable"class=LFunctionid=link144onMouseOver="ShowTip(event, 'tt60', 'link144')"onMouseOut="HideTip('tt60')">mxCell.isConnectable</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link145onMouseOver="ShowTip(event, 'tt14', 'link145')"onMouseOut="HideTip('tt14')">mxCell</a> whose connectable state should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getValue"></a>getValue</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getValue(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the user object of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link146onMouseOver="ShowTip(event, 'tt14', 'link146')"onMouseOut="HideTip('tt14')">mxCell</a> using <ahref="mxCell-php.html#mxCell.getValue"class=LFunctionid=link147onMouseOver="ShowTip(event, 'tt44', 'link147')"onMouseOut="HideTip('tt44')">mxCell.getValue</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link148onMouseOver="ShowTip(event, 'tt14', 'link148')"onMouseOut="HideTip('tt14')">mxCell</a> whose user object should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setValue"></a>setValue</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setValue(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the user object of then given <ahref="mxCell-php.html#mxCell"class=LClassid=link149onMouseOver="ShowTip(event, 'tt14', 'link149')"onMouseOut="HideTip('tt14')">mxCell</a> using <mxValueChange> and adds the change to the current transaction.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link150onMouseOver="ShowTip(event, 'tt14', 'link150')"onMouseOut="HideTip('tt14')">mxCell</a> whose user object should be changed.</td></tr><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Object that defines the new user object.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getGeometry"></a>getGeometry</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getGeometry(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link151onMouseOver="ShowTip(event, 'tt47', 'link151')"onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link152onMouseOver="ShowTip(event, 'tt14', 'link152')"onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link153onMouseOver="ShowTip(event, 'tt14', 'link153')"onMouseOut="HideTip('tt14')">mxCell</a> whose geometry should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setGeometry"></a>setGeometry</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setGeometry(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$geometry</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link154onMouseOver="ShowTip(event, 'tt47', 'link154')"onMouseOut="HideTip('tt47')">mxGeometry</a> of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link155onMouseOver="ShowTip(event, 'tt14', 'link155')"onMouseOut="HideTip('tt14')">mxCell</a>. The actual update of the cell is carried out in <geometryForCellChanged>. The <mxGeometryChange> action is used to encapsulate the change.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link156onMouseOver="ShowTip(event, 'tt14', 'link156')"onMouseOut="HideTip('tt14')">mxCell</a> whose geometry should be changed.</td></tr><tr><tdclass=CDLEntry>geometry</td><tdclass=CDLDescription><ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link157onMouseOver="ShowTip(event, 'tt47', 'link157')"onMouseOut="HideTip('tt47')">mxGeometry</a> that defines the new geometry.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getStyle"></a>getStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getStyle(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the style of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link158onMouseOver="ShowTip(event, 'tt14', 'link158')"onMouseOut="HideTip('tt14')">mxCell</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link159onMouseOver="ShowTip(event, 'tt14', 'link159')"onMouseOut="HideTip('tt14')">mxCell</a> whose style should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setStyle"></a>setStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setStyle(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$style</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the style of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link160onMouseOver="ShowTip(event, 'tt14', 'link160')"onMouseOut="HideTip('tt14')">mxCell</a> using <mxStyleChange> and adds the change to the current transaction.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link161onMouseOver="ShowTip(event, 'tt14', 'link161')"onMouseOut="HideTip('tt14')">mxCell</a> whose style should be changed.</td></tr><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>String of the form stylename[;key=value] to specify the new cell style.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isCollapsed"></a>isCollapsed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isCollapsed(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <ahref="mxCell-php.html#mxCell"class=LClassid=link162onMouseOver="ShowTip(event, 'tt14', 'link162')"onMouseOut="HideTip('tt14')">mxCell</a> is collapsed.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link163onMouseOver="ShowTip(event, 'tt14', 'link163')"onMouseOut="HideTip('tt14')">mxCell</a> whose collapsed state should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setCollapsed"></a>setCollapsed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setCollapsed(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$isCollapsed</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the collapsed state of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link164onMouseOver="ShowTip(event, 'tt14', 'link164')"onMouseOut="HideTip('tt14')">mxCell</a> using <mxCollapseChange> and adds the change to the current transaction.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link165onMouseOver="ShowTip(event, 'tt14', 'link165')"onMouseOut="HideTip('tt14')">mxCell</a> whose collapsed state should be changed.</td></tr><tr><tdclass=CDLEntry>collapsed</td><tdclass=CDLDescription>Boolean that specifies the new collpased state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.isVisible"></a>isVisible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function isVisible(</td><tdclass="PParameter prettyprint "nowrap>$cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <ahref="mxCell-php.html#mxCell"class=LClassid=link166onMouseOver="ShowTip(event, 'tt14', 'link166')"onMouseOut="HideTip('tt14')">mxCell</a> is visible.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link167onMouseOver="ShowTip(event, 'tt14', 'link167')"onMouseOut="HideTip('tt14')">mxCell</a> whose visible state should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.setVisible"></a>setVisible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setVisible(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$visible</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the visible state of the given <ahref="mxCell-php.html#mxCell"class=LClassid=link168onMouseOver="ShowTip(event, 'tt14', 'link168')"onMouseOut="HideTip('tt14')">mxCell</a> using <mxVisibleChange> and adds the change to the current transaction.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link169onMouseOver="ShowTip(event, 'tt14', 'link169')"onMouseOut="HideTip('tt14')">mxCell</a> whose visible state should be changed.</td></tr><tr><tdclass=CDLEntry>visible</td><tdclass=CDLDescription>Boolean that specifies the new visible state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.mergeChildren"></a>mergeChildren</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mergeChildren(</td><tdclass="PParameter prettyprint "nowrap>$from,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$to,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$cloneAllEdges</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> true</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Merges the children of the given cell into the given target cell inside this model. All cells are cloned unless there is a corresponding cell in the model with the same id, in which case the source cell is ignored and all edges are connected to the corresponding cell in this model. Edges are considered to have no identity and are always cloned unless the cloneAllEdges flag is set to false, in which case edges with the same id in the target model are reconnected to reflect the terminals of the source edges.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.mergeChildrenImpl"></a>mergeChildrenImpl</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mergeChildrenImpl(</td><tdclass="PParameter prettyprint "nowrap>$from,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$to,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$cloneAllEdges,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$mapping</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>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.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.beginUpdate"></a>beginUpdate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function beginUpdate()</td></tr></table></blockquote><p>Increments the <ahref="#mxGraphModel.updateLevel"class=LVariableid=link170onMouseOver="ShowTip(event, 'tt6', 'link170')"onMouseOut="HideTip('tt6')">updateLevel</a> by one. The event notification is queued until <ahref="#mxGraphModel.updateLevel"class=LVariableid=link171onMouseOver="ShowTip(event, 'tt6', 'link171')"onMouseOut="HideTip('tt6')">updateLevel</a> reaches 0 by use of <ahref="#mxGraphModel.endUpdate"class=LFunctionid=link172onMouseOver="ShowTip(event, 'tt58', 'link172')"onMouseOut="HideTip('tt58')">endUpdate</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.endUpdate"></a>endUpdate</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function endUpdate()</td></tr></table></blockquote><p>Decrements the <ahref="#mxGraphModel.updateLevel"class=LVariableid=link173onMouseOver="ShowTip(event, 'tt6', 'link173')"onMouseOut="HideTip('tt6')">updateLevel</a> by one and fires a notification event if the <ahref="#mxGraphModel.updateLevel"class=LVariableid=link174onMouseOver="ShowTip(event, 'tt6', 'link174')"onMouseOut="HideTip('tt6')">updateLevel</a> reaches 0. This function indirectly fires a notification.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.getDirectedEdgeCount"></a>getDirectedEdgeCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getDirectedEdgeCount(</td><tdclass="PParameter prettyprint "nowrap>$cell,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$outgoing,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$ignoredEdge</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of incoming or outgoing edges, ignoring the given edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>cell</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link175onMouseOver="ShowTip(event, 'tt14', 'link175')"onMouseOut="HideTip('tt14')">mxCell</a> whose edge count should be returned.</td></tr><tr><tdclass=CDLEntry>outgoing</td><tdclass=CDLDescription>Boolean that specifies if the number of outgoing or incoming edges should be returned.</td></tr><tr><tdclass=CDLEntry>ignoredEdge</td><tdclass=CDLDescription><ahref="mxCell-php.html#mxCell"class=LClassid=link176onMouseOver="ShowTip(event, 'tt14', 'link176')"onMouseOut="HideTip('tt14')">mxCell</a> that represents an edge to be ignored.</td></tr></table></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $root</td></tr></table></blockquote>Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $cells</td></tr></table></blockquote>Maps from Ids to cells.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $maintainEdgeParent</td></tr></table></blockquote>Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $createIds</td></tr></table></blockquote>Specifies if the model should automatically create Ids for new cells. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $nextId</td></tr></table></blockquote>Specifies the next Id to be created. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $updateLevel</td></tr></table></blockquote>Counter for the depth of nested transactions. </div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxGraphModel(</td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new graph model using the specified root cell.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function clear()</td></tr></table></blockquote>Sets a new root using createRoot.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function createRoot()</td></tr></table></blockquote>Creates a new root cell with a default layer (child 0).</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getCells()</td></tr></table></blockquote>Returns the internal lookup table that is used to map from Ids to cells.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getRoot()</td></tr></table></blockquote>Returns the root of the model.</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setRoot(</td><tdclass="PParameter prettyprint "nowrap>$root</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the root of the model using mxRootChange and adds the change to the current transaction. </div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function cloneCell(</td><tdclass="PParameterprettyprint