<!-- 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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxGraphModel(</td><tdclass=PParameternowrap>$root</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setRoot(</td><tdclass=PParameternowrap>$root</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCell(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCells(</td><tdclass=PParameternowrap>$cells,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$includeChildren</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%>true</td><tdclass=PAfterParametersnowrap>)</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.cloneCellImpl"></a>cloneCellImpl</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCellImpl(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$mapping,</td></tr><tr><td></td><tdclass=PParameternowrap>$includeChildren</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Inner helper method for cloning cells recursively.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGraphModel.cellCloned"></a>cellCloned</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellCloned(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function restoreClone(</td><tdclass=PParameternowrap>$clne,</td></tr><tr><td></td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$mapping</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isAncestor(</td><tdclass=PParameternowrap>$parent,</td></tr><tr><td></td><tdclass=PParameternowrap>$child</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function contains(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getParent(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function add(</td><tdclass=PParameternowrap>$parent,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$child,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$index</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellAdded(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function createId(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function updateEdgeParents(</td><tdclass=PParameternowrap>$cell,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$root</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function updateEdgeParent(</td><tdclass=PParameternowrap>$edge,</td></tr><tr><td></td><tdclass=PParameternowrap>$root</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getOrigin(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getNearestCommonAncestor(</td><tdclass=PParameternowrap>$cell1,</td></tr><tr><td></td><tdclass=PParameternowrap>$cell2</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function remove(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cellRemoved(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getChildCount(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getChildAt(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$index</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getTerminal(</td><tdclass=PParameternowrap>$edge,</td></tr><tr><td></td><tdclass=PParameternowrap>$cource</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setTerminal(</td><tdclass=PParameternowrap>$edge,</td></tr><tr><td></td><tdclass=PParameternowrap>$terminal,</td></tr><tr><td></td><tdclass=PParameternowrap>$source</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setTerminals(</td><tdclass=PParameternowrap>$edge,</td></tr><tr><td></td><tdclass=PParameternowrap>$source,</td></tr><tr><td></td><tdclass=PParameternowrap>$target</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getEdgeCount(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getEdgeAt(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$index</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getEdges(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isVertex(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isEdge(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isConnectable(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getValue(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setValue(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$value</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getGeometry(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setGeometry(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$geometry</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getStyle(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setStyle(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$style</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isCollapsed(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setCollapsed(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$isCollapsed</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function isVisible(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setVisible(</td><tdclass=PParameternowrap>$cell,</td></tr><tr><td></td><tdclass=PParameternowrap>$visible</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mergeChildren(</td><tdclass=PParameternowrap>$from,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$to,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$cloneAllEdges</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> true</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mergeChildrenImpl(</td><tdclass=PParameternowrap>$from,</td></tr><tr><td></td><tdclass=PParameternowrap>$to,</td></tr><tr><td></td><tdclass=PParameternowrap>$cloneAllEdges,</td></tr><tr><td></td><tdclass=PParameternowrap>$mapping</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function getDirectedEdgeCount(</td><tdclass=PParameternowrap>$cell,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$outgoing,</td><tdclass=PDefaultValuePrefix> </td><tdclass=PDefaultValuewidth=100%></td></tr><tr><td></td><tdclass=PParameternowrap>$ignoredEdge</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</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>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>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 prettyprint"><tr><td>var $cells</td></tr></table></blockquote>Maps from Ids to cells.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxGraphModel(</td><tdclass=PParameternowrap>$root</td><tdclass=PDefaultValuePrefix> = </td><tdclass=PDefaultValuewidth=100%> null</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td>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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function setRoot(</td><tdclass=PParameternowrap>$root</td><tdclass=PAfterParametersnowrap>)</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 prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function cloneCell(</td><tdclass=PParameternowrap>$cell</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Returns a deep clone of the given mxCell (including the children) which is created using cloneC