<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxCell"></a>mxCell</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><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxCell">mxCell</a></td><tdclass=SDescription>Cells are the elements of the graph model. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCell.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.id"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">id</a></td><tdclass=SDescription>Holds the Id. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.value"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">value</a></td><tdclass=SDescription>Holds the user object. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.geometry"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">geometry</a></td><tdclass=SDescription>Holds the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxGeometry</a>. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.style"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">style</a></td><tdclass=SDescription>Holds the style as a string of the form [(stylename|key=value);]. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.vertex"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">vertex</a></td><tdclass=SDescription>Specifies whether the cell is a vertex. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.edge"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">edge</a></td><tdclass=SDescription>Specifies whether the cell is an edge. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.connectable"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">connectable</a></td><tdclass=SDescription>Specifies whether the cell is connectable. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.visible"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">visible</a></td><tdclass=SDescription>Specifies whether the cell is visible. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.collapsed"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">collapsed</a></td><tdclass=SDescription>Specifies whether the cell is collapsed. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.parent"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">parent</a></td><tdclass=SDescription>Reference to the parent cell.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.source"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">source</a></td><tdclass=SDescription>Reference to the source terminal.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.target"id=link13onMouseOver="ShowTip(event, 'tt13', 'link13')"onMouseOut="HideTip('tt13')">target</a></td><tdclass=SDescription>Reference to the target terminal.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCell.children"id=link14onMouseOver="ShowTip(event, 'tt14', 'link14')"onMouseOut="HideTip('tt14')">children</a></td><tdclass=SDescription>Holds the child cells.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCell.edges"id=link15onMouseOver="ShowTip(event
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.id"></a>id</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $id</td></tr></table></blockquote><p>Holds the Id. Default is null.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.value"></a>value</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $value</td></tr></table></blockquote><p>Holds the user object. Default is null.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.geometry"></a>geometry</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $geometry</td></tr></table></blockquote><p>Holds the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link63onMouseOver="ShowTip(event, 'tt4', 'link63')"onMouseOut="HideTip('tt4')">mxGeometry</a>. Default is null.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.style"></a>style</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $style</td></tr></table></blockquote><p>Holds the style as a string of the form [(stylename|key=value);]. Default is null.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.vertex"></a>vertex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $vertex</td></tr></table></blockquote><p>Specifies whether the cell is a vertex. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.edge"></a>edge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $edge</td></tr></table></blockquote><p>Specifies whether the cell is an edge. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.connectable"></a>connectable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $connectable</td></tr></table></blockquote><p>Specifies whether the cell is connectable. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.visible"></a>visible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $visible</td></tr></table></blockquote><p>Specifies whether the cell is visible. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.collapsed"></a>collapsed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $collapsed</td></tr></table></blockquote><p>Specifies whether the cell is collapsed. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.parent"></a>parent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $parent</td></tr></table></blockquote><p>Reference to the parent cell.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.source"></a>source</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $source</td></tr></table></blockquote><p>Reference to the source terminal.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.target"></a>target</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $target</td></tr></table></blockquote><p>Reference to the target terminal.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.children"></a>children</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $children</td></tr></table></blockquote><p>Holds the child cells.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCell.edges"></a>edges</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $edges</td></tr></table></blockquote><p>Holds the edges.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.mxCell"></a>mxCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxCell(</td><tdclass="PParameter prettyprint "nowrap>$value</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$geometry</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$style</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 cell to be used in a graph model. This method invokes <onInit> upon completion.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>value</td><tdclass=CDLDescription>Optional object that represents the cell value.</td></tr><tr><tdclass=CDLEntry>geometry</td><tdclass=CDLDescription>Optional <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link64onMouseOver="ShowTip(event, 'tt4', 'link64')"onMouseOut="HideTip('tt4')">mxGeometry</a> that specifies the geometry.</td></tr><tr><tdclass=CDLEntry>style</td><tdclass=CDLDescription>Optional formatted string that defines the style.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getId"></a>getId</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getId()</td></tr></table></blockquote><p>Returns the Id of the cell as a string.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setId"></a>setId</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setId(</td><tdclass="PParameter prettyprint "nowrap>$id</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the Id of the cell to the given string.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getValue"></a>getValue</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getValue()</td></tr></table></blockquote><p>Returns the user object of the cell. The user object is stored in <ahref="#mxCell.value"class=LVariableid=link65onMouseOver="ShowTip(event, 'tt2', 'link65')"onMouseOut="HideTip('tt2')">value</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the user object of the cell. The user object is stored in <ahref="#mxCell.value"class=LVariableid=link66onMouseOver="ShowTip(event, 'tt2', 'link66')"onMouseOut="HideTip('tt2')">value</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getGeometry"></a>getGeometry</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getGeometry()</td></tr></table></blockquote><p>Returns the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link67onMouseOver="ShowTip(event, 'tt4', 'link67')"onMouseOut="HideTip('tt4')">mxGeometry</a> that describes the <ahref="#mxCell.geometry"class=LVariableid=link68onMouseOver="ShowTip(event, 'tt3', 'link68')"onMouseOut="HideTip('tt3')">geometry</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$geometry</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <ahref="mxGeometry-php.html#mxGeometry"class=LClassid=link69onMouseOver="ShowTip(event, 'tt4', 'link69')"onMouseOut="HideTip('tt4')">mxGeometry</a> to be used as the <ahref="#mxCell.geometry"class=LVariableid=link70onMouseOver="ShowTip(event, 'tt3', 'link70')"onMouseOut="HideTip('tt3')">geometry</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getStyle"></a>getStyle</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getStyle()</td></tr></table></blockquote><p>Returns a string that describes the <ahref="#mxCell.style"class=LVariableid=link71onMouseOver="ShowTip(event, 'tt5', 'link71')"onMouseOut="HideTip('tt5')">style</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$style</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the string to be used as the <ahref="#mxCell.style"class=LVariableid=link72onMouseOver="ShowTip(event, 'tt5', 'link72')"onMouseOut="HideTip('tt5')">style</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.isVertex"></a>isVertex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function isVertex()</td></tr></table></blockquote><p>Returns true if the cell is a vertex.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setVertex"></a>setVertex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setVertex(</td><tdclass="PParameter prettyprint "nowrap>$vertex</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies if the cell is a vertex. This should only be assigned at construction of the cell and not be changed during its lifecycle.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>vertex</td><tdclass=CDLDescription>Boolean that specifies if the cell is a vertex.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.isEdge"></a>isEdge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function isEdge()</td></tr></table></blockquote><p>Returns true if the cell is an edge.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setEdge"></a>setEdge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setEdge(</td><tdclass="PParameter prettyprint "nowrap>$edge</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies if the cell is an edge. This should only be assigned at construction of the cell and not be changed during its lifecycle.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription>Boolean that specifies if the cell is an edge.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.isConnectable"></a>isConnectable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function isConnectable()</td></tr></table></blockquote><p>Returns true if the cell is connectable.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setConnectable"></a>setConnectable</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setConnectable(</td><tdclass="PParameter prettyprint "nowrap>$connectable</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the connectable state.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>connectable</td><tdclass=CDLDescription>Boolean that specifies the new connectable state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.isVisible"></a>isVisible</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function isVisible()</td></tr></table></blockquote><p>Returns true if the cell is visibile.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$visible</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies if the cell is visible.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><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="mxCell.isCollapsed"></a>isCollapsed</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function isCollapsed()</td></tr></table></blockquote><p>Returns true if the cell is collapsed.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$collapsed</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the collapsed state.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>collapsed</td><tdclass=CDLDescription>Boolean that specifies the new collapsed state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getParent"></a>getParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getParent()</td></tr></table></blockquote><p>Returns the cell’s parent.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setParent"></a>setParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setParent(</td><tdclass="PParameter prettyprint "nowrap>$parent</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the parent cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link73onMouseOver="ShowTip(event, 'tt16', 'link73')"onMouseOut="HideTip('tt16')">mxCell</a> that represents the new parent.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$source</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the source or target terminal.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean that specifies if the source terminal should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$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 and returns the new terminal.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>terminal</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link74onMouseOver="ShowTip(event, 'tt16', 'link74')"onMouseOut="HideTip('tt16')">mxCell</a> that represents the new source or target terminal.</td></tr><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean that specifies if the source or target terminal should be set.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getChildCount"></a>getChildCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getChildCount()</td></tr></table></blockquote><p>Returns the number of child cells.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getIndex"></a>getIndex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getIndex(</td><tdclass="PParameter prettyprint "nowrap>$child</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the index of the specified child in the child array.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>child</td><tdclass=CDLDescription>Child whose index should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$index</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the child at the specified index.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Integer that specifies the child to be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.insert"></a>insert</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function insert(</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>Inserts the specified child into the child array at the specified index and updates the parent reference of the child. If not childIndex is specified then the child is appended to the child array. Returns the inserted child.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>child</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link75onMouseOver="ShowTip(event, 'tt16', 'link75')"onMouseOut="HideTip('tt16')">mxCell</a> to be inserted or appended to the child array.</td></tr><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Optional integer that specifies the index at which the child should be inserted into the child array.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$index</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the child at the specified index from the child array and returns the child that was removed. Will remove the parent reference of the child.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Integer that specifies the index of the child to be removed.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.removeFromParent"></a>removeFromParent</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function removeFromParent()</td></tr></table></blockquote><p>Removes the cell from its parent.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getEdgeCount"></a>getEdgeCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function getEdgeCount()</td></tr></table></blockquote><p>Returns the number of edges in the edge array.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getEdgeIndex"></a>getEdgeIndex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getEdgeIndex(</td><tdclass="PParameter prettyprint "nowrap>$edge</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the index of the specified edge in <ahref="#mxCell.edges"class=LVariableid=link76onMouseOver="ShowTip(event, 'tt15', 'link76')"onMouseOut="HideTip('tt15')">edges</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link77onMouseOver="ShowTip(event, 'tt16', 'link77')"onMouseOut="HideTip('tt16')">mxCell</a> whose index in <ahref="#mxCell.edges"class=LVariableid=link78onMouseOver="ShowTip(event, 'tt15', 'link78')"onMouseOut="HideTip('tt15')">edges</a> should be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.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>$index</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the edge at the specified index in <ahref="#mxCell.edges"class=LVariableid=link79onMouseOver="ShowTip(event, 'tt15', 'link79')"onMouseOut="HideTip('tt15')">edges</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>index</td><tdclass=CDLDescription>Integer that specifies the index of the edge to be returned.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.insertEdge"></a>insertEdge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function insertEdge(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$outgoing</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Inserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link80onMouseOver="ShowTip(event, 'tt16', 'link80')"onMouseOut="HideTip('tt16')">mxCell</a> to be inserted into the edge array.</td></tr><tr><tdclass=CDLEntry>outgoing</td><tdclass=CDLDescription>Boolean that specifies if the edge is outgoing.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.removeEdge"></a>removeEdge</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function removeEdge(</td><tdclass="PParameter prettyprint "nowrap>$edge,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$outgoing</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the specified edge from the edge array and returns the edge. Will remove the respective terminal reference from the edge.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>edge</td><tdclass=CDLDescription><ahref="#mxCell.mxCell"class=LFunctionid=link81onMouseOver="ShowTip(event, 'tt16', 'link81')"onMouseOut="HideTip('tt16')">mxCell</a> to be removed from the edge array.</td></tr><tr><tdclass=CDLEntry>outgoing</td><tdclass=CDLDescription>Boolean that specifies if the edge is outgoing.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.removeFromTerminal"></a>removeFromTerminal</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function removeFromTerminal(</td><tdclass="PParameter prettyprint "nowrap>$source</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes the edge from its source or target terminal.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>source</td><tdclass=CDLDescription>Boolean that specifies if the edge should be removed from its source or target terminal.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.getAttribute"></a>getAttribute</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function getAttribute(</td><tdclass="PParameter prettyprint "nowrap>$key,</td><tdclass="PDefaultValuePrefix prettyprint "> </td><tdclass="PDefaultValue prettyprint "width=100%></td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$defaultValue</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 specified attribute from the user object if it is an XML node.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.setAttribute"></a>setAttribute</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function setAttribute(</td><tdclass="PParameter prettyprint "nowrap>$key,</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 specified attribute on the user object if it is an XML node.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.copy"></a>copy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function copy()</td></tr></table></blockquote><p>Returns a clone of the cell. Uses <cloneValue> to clone the user object.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCell.copyValue"></a>copyValue</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">function copyValue()</td></tr></table></blockquote><p>Returns a clone of the cell’s user object.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $id</td></tr></table></blockquote>Holds the Id. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $value</td></tr></table></blockquote>Holds the user object. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $geometry</td></tr></table></blockquote>Holds the mxGeometry. </div></div><divclass=CToolTipid="tt4"><divclass=CClass>Represents the geometry of a cell. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $style</td></tr></table></blockquote>Holds the style as a string of the form [(stylename|key=value);]. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $vertex</td></tr></table></blockquote>Specifies whether the cell is a vertex. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $edge</td></tr></table></blockquote>Specifies whether the cell is an edge. </div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $connectable</td></tr></table></blockquote>Specifies whether the cell is connectable. </div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $visible</td></tr></table></blockquote>Specifies whether the cell is visible. </div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $collapsed</td></tr></table></blockquote>Specifies whether the cell is collapsed. </div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $parent</td></tr></table></blockquote>Reference to the parent cell.</div></div><divclass=CToolTipid="tt12"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $source</td></tr></table></blockquote>Reference to the source terminal.</div></div><divclass=CToolTipid="tt13"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $target</td></tr></table></blockquote>Reference to the target terminal.</div></div><divclass=CToolTipid="tt14"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $children</td></tr></table></blockquote>Holds the child cells.</div></div><divclass=CToolTipid="tt15"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">var $edges</td></tr></table></blockquote>Holds the edges.</div></div><divclass=CToolTipid="tt16"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxCell(</td><tdclass="PParameter prettyprint "nowrap>$value</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>$geometry</td><tdclass="PDefaultValuePrefix prettyprint "> = </td><tdclass="PDefaultValue prettyprint "width=100%> null,</td></tr><tr><td