<ahref="classcom_1_1mxgraph_1_1mxGraphModel-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">com.mxgraph.mxGraphModel Class Reference</div></div>
</div><!--header-->
<divclass="contents">
<p>Implements a graph model. The graph model acts as a wrapper around the cells which are in charge of storing the actual graph datastructure. The model acts as a transactional wrapper with event notification for all changes, whereas the cells contain the atomic operations for updating the actual datastructure.
<areahref="interfacecom_1_1mxgraph_1_1mxIGraphModel.html"title="Defines the requirements for a graph model to be used with mxGraph. "alt="com.mxgraph.mxIGraphModel"shape="rect"coords="0,0,179,24"/>
<trclass="memdesc:ae760e20b9ce840c08f90deae90a3abcd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new empty graph model. <ahref="#ae760e20b9ce840c08f90deae90a3abcd">More...</a><br/></td></tr>
<trclass="memdesc:a7d2deede605768c92ba7104fedb23510"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new graph model. If no root is specified then a new root <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph. ">mxCell</a> with a default layer is created. <ahref="#a7d2deede605768c92ba7104fedb23510">More...</a><br/></td></tr>
<trclass="memdesc:a69fca8fb814fb7de26763be0b4b19e34"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets a new root using createRoot. <ahref="#a69fca8fb814fb7de26763be0b4b19e34">More...</a><br/></td></tr>
<trclass="memdesc:a077a93f5e8a19b1c8305bc1c1355550e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a new root cell with a default layer (child 0). <ahref="#a077a93f5e8a19b1c8305bc1c1355550e">More...</a><br/></td></tr>
<trclass="memdesc:ac36af210b1b3159dc187dd5fbb298e19"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns an array of clones for the given array of cells. 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. <ahref="#ac36af210b1b3159dc187dd5fbb298e19">More...</a><br/></td></tr>
<trclass="memdesc:a2257ccb14a06d8e83af26a2b04825b80"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the given parent is an ancestor of child. <ahref="#a2257ccb14a06d8e83af26a2b04825b80">More...</a><br/></td></tr>
<trclass="memdesc:a30cbb76e0bf39460796f494fdbfb2d17"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the model contains the given cell. <ahref="#a30cbb76e0bf39460796f494fdbfb2d17">More...</a><br/></td></tr>
<trclass="memdesc:a51a36648daf6c29ebbf4e88933bc82b8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the parent of the given cell. <ahref="#a51a36648daf6c29ebbf4e88933bc82b8">More...</a><br/></td></tr>
<trclass="memitem:ae8904c4103503bc620ba3ec8dd0892ca"><tdclass="memItemLeft"align="right"valign="top">Object </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxGraphModel.html#ae8904c4103503bc620ba3ec8dd0892ca">Add</a> (Object parent, Object child, int index)</td></tr>
<trclass="memdesc:ae8904c4103503bc620ba3ec8dd0892ca"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds the specified child to the parent at the given index. If no index is specified then the child is appended to the parent's array of children. <ahref="#ae8904c4103503bc620ba3ec8dd0892ca">More...</a><br/></td></tr>
<trclass="memdesc:a9575f6cbec5289df808e8071d77a9665"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a new Id for the given cell and increments the global counter for creating new Ids. <ahref="#a9575f6cbec5289df808e8071d77a9665">More...</a><br/></td></tr>
<trclass="memdesc:aee6bf0e1bc6eb7045c543d13611cf3dd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#acdfefab19b882fcaa4e51e146b70014b"title="Removes the specified cell from the model. This operation will remove the cell and all of its childre...">com.mxgraph.mxIGraphModel.Remove(Object)</a><ahref="#aee6bf0e1bc6eb7045c543d13611cf3dd">More...</a><br/></td></tr>
<trclass="memdesc:a83223523565c8d883a4e771d4a23f498"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the number of children in the given cell. <ahref="#a83223523565c8d883a4e771d4a23f498">More...</a><br/></td></tr>
<trclass="memitem:a887f7e219f4eb298f7aad502a3091f89"><tdclass="memItemLeft"align="right"valign="top">Object </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxGraphModel.html#a887f7e219f4eb298f7aad502a3091f89">GetChildAt</a> (Object parent, int index)</td></tr>
<trclass="memdesc:a887f7e219f4eb298f7aad502a3091f89"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the child of the given parent at the given index. <ahref="#a887f7e219f4eb298f7aad502a3091f89">More...</a><br/></td></tr>
<trclass="memdesc:a339d1951aeaddcfff04414472faa36a3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the source or target terminal of the given edge depending on the value of the boolean parameter. <ahref="#a339d1951aeaddcfff04414472faa36a3">More...</a><br/></td></tr>
<trclass="memdesc:aae517f6ae9e0dbb8fa59a63636c2d725"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the source or target terminal of the given edge using. <ahref="#aae517f6ae9e0dbb8fa59a63636c2d725">More...</a><br/></td></tr>
<trclass="memdesc:af8db42fb432eefd92ba93dd3cdaa9b89"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor. <ahref="#af8db42fb432eefd92ba93dd3cdaa9b89">More...</a><br/></td></tr>
<trclass="memdesc:ac6b38204777758455270e98e43777256"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor. <ahref="#ac6b38204777758455270e98e43777256">More...</a><br/></td></tr>
<trclass="memdesc:a06e516f7be32d17847bae68475caa892"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Inner helper method to update the parent of the specified edge to the nearest-common-ancestor of its two terminals. <ahref="#a06e516f7be32d17847bae68475caa892">More...</a><br/></td></tr>
<trclass="memdesc:a308bbb16016634b65ebe432747af6798"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the absolute, cummulated origin for the children inside the given parent. <ahref="#a308bbb16016634b65ebe432747af6798">More...</a><br/></td></tr>
<trclass="memdesc:a33890fcb2491e140e19b4bb0619b5a19"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the nearest common ancestor for the specified cells. <ahref="#a33890fcb2491e140e19b4bb0619b5a19">More...</a><br/></td></tr>
<trclass="memdesc:ab20a13d1702278f8cc3507d53c639114"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ad67527a8bf0ecae8e0fc737a2ee0d838"title="Returns the number of distinct edges connected to the given cell. ">com.mxgraph.mxIGraphModel.GetEdgeCount(Object)</a><ahref="#ab20a13d1702278f8cc3507d53c639114">More...</a><br/></td></tr>
<trclass="memitem:a678b42b400eb40558e1e039db7136ee4"><tdclass="memItemLeft"align="right"valign="top">Object </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxGraphModel.html#a678b42b400eb40558e1e039db7136ee4">GetEdgeAt</a> (Object parent, int index)</td></tr>
<trclass="memdesc:a678b42b400eb40558e1e039db7136ee4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a45b739ca59bd36f8d7c63f69e8ae61e0"title="Returns the edge of cell at the given index. ">com.mxgraph.mxIGraphModel.GetEdgeAt(Object, int)</a><ahref="#a678b42b400eb40558e1e039db7136ee4">More...</a><br/></td></tr>
<trclass="memdesc:a315cc5ce42eedd4b25f04e9ae72c4de6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#acdc9b7bf983ce698c8ab58d650884844"title="Returns true if the given cell is a vertex. ">com.mxgraph.mxIGraphModel.IsVertex(Object)</a><ahref="#a315cc5ce42eedd4b25f04e9ae72c4de6">More...</a><br/></td></tr>
<trclass="memdesc:a894596a870d360fc9a1e16737b9b8183"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a55f48b5247ec10a1bb2233ea60c8215f"title="Returns true if the given cell is an edge. ">com.mxgraph.mxIGraphModel.IsEdge(Object)</a><ahref="#a894596a870d360fc9a1e16737b9b8183">More...</a><br/></td></tr>
<trclass="memdesc:a9c47387dc95dfdf6e6d252ff4b00fa07"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a471cb28306dc3fed8cfc93e1e140fdab"title="Returns true if the given cell is connectable. ">com.mxgraph.mxIGraphModel.IsConnectable(Object)</a><ahref="#a9c47387dc95dfdf6e6d252ff4b00fa07">More...</a><br/></td></tr>
<trclass="memdesc:ab47649ca9c1da274b27ac9ede9c4c442"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ab58054989c1b3f1ba47269b66dfd5a8b"title="Returns the user object of the given cell. ">com.mxgraph.mxIGraphModel.GetValue(Object)</a><ahref="#ab47649ca9c1da274b27ac9ede9c4c442">More...</a><br/></td></tr>
<trclass="memdesc:a03343d292683b6db4662121e9e3cb780"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a106592d04d501478143594bb3822fe47"title="Sets the user object of then given cell. ">com.mxgraph.mxIGraphModel.SetValue(Object, Object)</a><ahref="#a03343d292683b6db4662121e9e3cb780">More...</a><br/></td></tr>
<trclass="memdesc:afcc8f229d66d1f58200543f189bc2ddd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a23f5d07903551245edd81a0d7083bff1"title="Returns the geometry of the given cell. ">com.mxgraph.mxIGraphModel.GetGeometry(Object)</a><ahref="#afcc8f229d66d1f58200543f189bc2ddd">More...</a><br/></td></tr>
<trclass="memdesc:a3a8892a8a0a704d5fd759c18b9e04639"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a726274a683813f9f8dbfb1e8e95015ad"title="Sets the geometry of the given cell. ">com.mxgraph.mxIGraphModel.SetGeometry(Object, mxGeometry)</a><ahref="#a3a8892a8a0a704d5fd759c18b9e04639">More...</a><br/></td></tr>
<trclass="memdesc:a07c1d07e151c7415ac7e534622611f00"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a3b500dd24fa5dd396bdeb1e8e09b0626"title="Returns the style of the given cell. ">com.mxgraph.mxIGraphModel.GetStyle(Object)</a><ahref="#a07c1d07e151c7415ac7e534622611f00">More...</a><br/></td></tr>
<trclass="memdesc:a50c4137ed3a246f338eb1d755c40ce10"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a005f5979ec0a5f94cbdfeaa9fd52087b"title="Sets the style of the given cell. ">com.mxgraph.mxIGraphModel.SetStyle(Object, string)</a><ahref="#a50c4137ed3a246f338eb1d755c40ce10">More...</a><br/></td></tr>
<trclass="memdesc:a329df4ca7a7ab958a339695ea188842f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a1947ffa03c65ff0a0cb14c7c742a4b8c"title="Returns true if the given cell is visible. ">com.mxgraph.mxIGraphModel.IsVisible(Object)</a><ahref="#a329df4ca7a7ab958a339695ea188842f">More...</a><br/></td></tr>
<trclass="memdesc:a51a0dd4569d00a19aedd3f59acea8fc5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a11faed388a4b66de80863e768fdde957"title="Sets the visible state of the given cell. ">com.mxgraph.mxIGraphModel.SetVisible(Object, bool)</a><ahref="#a51a0dd4569d00a19aedd3f59acea8fc5">More...</a><br/></td></tr>
<trclass="memdesc:a37f7e884b6e4e4eccd5fbb376c056df4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#adfbdb706654adcabf5a8277d7903a715"title="Returns true if the given cell is collapsed. ">com.mxgraph.mxIGraphModel.IsCollapsed(Object)</a><ahref="#a37f7e884b6e4e4eccd5fbb376c056df4">More...</a><br/></td></tr>
<trclass="memdesc:ab0bc27bc208e6de7fbef26cad23d496f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#aa9e29fca5946a975f3151fd729ebbfd8"title="Sets the collapsed state of the given cell. ">com.mxgraph.mxIGraphModel.SetCollapsed(Object, bool)</a><ahref="#ab0bc27bc208e6de7fbef26cad23d496f">More...</a><br/></td></tr>
<trclass="memdesc:a6f033be9b25d1e696e91f79267dea417"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a1ba0c455c49ca2982fee04a7645c22db"title="Increments the updateLevel by one. The event notification is queued until updateLevel reaches 0 by us...">com.mxgraph.mxIGraphModel.BeginUpdate()</a><ahref="#a6f033be9b25d1e696e91f79267dea417">More...</a><br/></td></tr>
<trclass="memdesc:a73af4179fe703590e6b3ea8a81ae4e55"><tdclass="mdescLeft"> </td><tdclass="mdescRight">see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a4d3170b6bcffa23d72bb6b6594be3fdb"title="Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0...">com.mxgraph.mxIGraphModel.EndUpdate()</a><ahref="#a73af4179fe703590e6b3ea8a81ae4e55">More...</a><br/></td></tr>
<trclass="memitem:a2aa6de5af51eb8890b1b8c169a36541b"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcom_1_1mxgraph_1_1mxGraphModel.html#a2aa6de5af51eb8890b1b8c169a36541b">MergeChildren</a> (<aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html">mxICell</a> from, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html">mxICell</a> to, bool cloneAllEdges)</td></tr>
<trclass="memdesc:a2aa6de5af51eb8890b1b8c169a36541b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a2aa6de5af51eb8890b1b8c169a36541b">More...</a><br/></td></tr>
<trclass="memdesc:a10aeb9ad2fc0bd774f3f0a09d06d5870"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the number of incoming or outgoing edges. <ahref="#a10aeb9ad2fc0bd774f3f0a09d06d5870">More...</a><br/></td></tr>
<trclass="memdesc:a73a2f324677bd1493239e9512c5b7518"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the number of incoming or outgoing edges, ignoring the given edge. <ahref="#a73a2f324677bd1493239e9512c5b7518">More...</a><br/></td></tr>
<trclass="memdesc:a241312cf08bc6b67fbdbd26e7701e3d1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all edges connected to this cell including loops. <ahref="#a241312cf08bc6b67fbdbd26e7701e3d1">More...</a><br/></td></tr>
<trclass="memdesc:a413d7edd819ccf35b57dcbfe1f311ff4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all edges connected to this cell without loops. <ahref="#a413d7edd819ccf35b57dcbfe1f311ff4">More...</a><br/></td></tr>
<trclass="memdesc:a1b7687500ca0df7267cdb4e805388ecc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the incoming edges of the given cell without loops. <ahref="#a1b7687500ca0df7267cdb4e805388ecc">More...</a><br/></td></tr>
<trclass="memdesc:a9449b45dfc96cff23ebdc175358bcc50"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the outgoing edges of the given cell without loops. <ahref="#a9449b45dfc96cff23ebdc175358bcc50">More...</a><br/></td></tr>
<trclass="memdesc:a137e8d0683063a973e91fb702f62b382"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all distinct edges connected to this cell. If at least one of incoming or outgoing is true, then loops are ignored, otherwise if both are false, then all edges connected to the given cell are returned including loops. <ahref="#a137e8d0683063a973e91fb702f62b382">More...</a><br/></td></tr>
<trclass="memdesc:aecc6d4a8253a9b6687d6be2c23944cd8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction. <ahref="#aecc6d4a8253a9b6687d6be2c23944cd8">More...</a><br/></td></tr>
<trclass="memdesc:a3d8b509cf5b5f2c78fb39046438e5a66"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction. <ahref="#a3d8b509cf5b5f2c78fb39046438e5a66">More...</a><br/></td></tr>
<trclass="memdesc:a2c3ccc16641258e671efef8c735b648c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns all opposite vertices wrt terminal for the given edges, only$ returning sources and/or targets as specified. The result is returned as an array of mxCells. <ahref="#a2c3ccc16641258e671efef8c735b648c">More...</a><br/></td></tr>
<trclass="memdesc:a5937717eb03276a11807743b5e292036"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the source and target of the given edge in a single atomic change. <ahref="#a5937717eb03276a11807743b5e292036">More...</a><br/></td></tr>
<trclass="memdesc:a2267b0ec6134c979766453a5e486d080"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the child vertices of the given parent. <ahref="#a2267b0ec6134c979766453a5e486d080">More...</a><br/></td></tr>
<trclass="memdesc:ab346f1af94aa9ed605c08fe302677441"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the child edges of the given parent. <ahref="#ab346f1af94aa9ed605c08fe302677441">More...</a><br/></td></tr>
<trclass="memdesc:aeaefb2c906bdbf81c6bc875eb015544f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the children of the given cell that are vertices and/or edges depending on the arguments. <ahref="#aeaefb2c906bdbf81c6bc875eb015544f">More...</a><br/></td></tr>
<trclass="memdesc:ae89d7cc37a13fb6682a419e47ad97a31"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Inner helper method for restoring the connections in a network of cloned cells. <ahref="#ae89d7cc37a13fb6682a419e47ad97a31">More...</a><br/></td></tr>
<trclass="memdesc:a71404b4896d9e0cf3c91d9f7d282b8e2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Invoked after a cell has been added to a parent. This recursively creates an Id for the new cell and/or resolves Id collisions. <ahref="#a71404b4896d9e0cf3c91d9f7d282b8e2">More...</a><br/></td></tr>
<trclass="memdesc:a76274f54bc2b7f453fe933e94a0ea409"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Invoked after a cell has been removed from the model. This recursively removes the cell from its terminals and removes the mapping from the Id to the cell. <ahref="#a76274f54bc2b7f453fe933e94a0ea409">More...</a><br/></td></tr>
<trclass="memdesc:a3e72ff0cc98e79c72837553daafd6aa4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">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. <ahref="#a3e72ff0cc98e79c72837553daafd6aa4">More...</a><br/></td></tr>
<trclass="memdesc:a80296b5b88a8341cb9a5a6f0514b00e4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Holds the root cell, which in turn contains the cells that represent the layers of the diagram as child cells. That is, the actual element of the diagram are supposed to live in the third generation of cells and below. <ahref="#a80296b5b88a8341cb9a5a6f0514b00e4">More...</a><br/></td></tr>
<trclass="memdesc:a0a24b807cfff58dff8069fe2e1f38254"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maps from Ids to cells. <ahref="#a0a24b807cfff58dff8069fe2e1f38254">More...</a><br/></td></tr>
<trclass="memdesc:a64ca999a09eac7cc861e8e8afe45cc4c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specifies if edges should automatically be moved into the nearest common ancestor of their terminals. Default is true. <ahref="#a64ca999a09eac7cc861e8e8afe45cc4c">More...</a><br/></td></tr>
<trclass="memdesc:a57020a72faf9fe3a55f0d0c623616947"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specifies if the parent of edges should be automatically change to point to the nearest common ancestor of its terminals. Default is true. <ahref="#a57020a72faf9fe3a55f0d0c623616947">More...</a><br/></td></tr>
<trclass="memdesc:a83ee9a605f680689e7d6632306a56f15"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Specifies the next Id to be created. Initial value is 0. <ahref="#a83ee9a605f680689e7d6632306a56f15">More...</a><br/></td></tr>
<trclass="memdesc:ab81739d5e15b933f1152986d84499f7d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Counter for the depth of nested transactions. Each call to beginUpdate increments this counter and each call to endUpdate decrements it. When the counter reaches 0, the transaction is closed and the respective events are fired. Initial value is 0. <ahref="#ab81739d5e15b933f1152986d84499f7d">More...</a><br/></td></tr>
<trclass="memdesc:ace98ecfeedb6c248d0f437c470eb3eec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets of returns if edges should automatically be moved into the nearest common ancestor of their terminals. <ahref="#ace98ecfeedb6c248d0f437c470eb3eec">More...</a><br/></td></tr>
<trclass="memdesc:af819a7be43f76d56a5bd3ced931170e8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets or returns if the model automatically creates Ids and resolves Id collisions. <ahref="#af819a7be43f76d56a5bd3ced931170e8">More...</a><br/></td></tr>
<trclass="inherit_header properties_interfacecom_1_1mxgraph_1_1mxIGraphModel"><tdcolspan="2"onclick="javascript:toggleInherit('properties_interfacecom_1_1mxgraph_1_1mxIGraphModel')"><imgsrc="closed.png"alt="-"/> Properties inherited from <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">com.mxgraph.mxIGraphModel</a></td></tr>
<trclass="memdesc:ae25e802cfd2636d859971b86407c2bc3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Fires when the graph model has changed. <ahref="#ae25e802cfd2636d859971b86407c2bc3">More...</a><br/></td></tr>
<trclass="inherit_header events_interfacecom_1_1mxgraph_1_1mxIGraphModel"><tdcolspan="2"onclick="javascript:toggleInherit('events_interfacecom_1_1mxgraph_1_1mxIGraphModel')"><imgsrc="closed.png"alt="-"/> Events inherited from <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html">com.mxgraph.mxIGraphModel</a></td></tr>
<trclass="memdesc:a9c69f619c961feb7942a2d322f351585 inherit events_interfacecom_1_1mxgraph_1_1mxIGraphModel"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called when the graph model has changed. <ahref="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a9c69f619c961feb7942a2d322f351585">More...</a><br/></td></tr>
<divclass="textblock"><p>Implements a graph model. The graph model acts as a wrapper around the cells which are in charge of storing the actual graph datastructure. The model acts as a transactional wrapper with event notification for all changes, whereas the cells contain the atomic operations for updating the actual datastructure. </p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<p>Constructs a new graph model. If no root is specified then a new root <aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph. ">mxCell</a> with a default layer is created. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">root</td><td>Cell that represents the root cell.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2class="groupheader">Member Function Documentation</h2>
<p>Adds the specified child to the parent at the given index. If no index is specified then the child is appended to the parent's array of children. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">parent</td><td>Cell that specifies the parent to contain the child.</td></tr>
<tr><tdclass="paramname">child</td><td>Cell that specifies the child to be inserted.</td></tr>
<tr><tdclass="paramname">index</td><td>Integer that specifies the index of the child.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Returns the inserted child.</dd></dl>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a1ba0c455c49ca2982fee04a7645c22db"title="Increments the updateLevel by one. The event notification is queued until updateLevel reaches 0 by us...">com.mxgraph.mxIGraphModel.BeginUpdate()</a></p>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html#a36e9eb9110b62095cdce78caf919c6f4">com.mxgraph.mxICell.ChildCount()</a>, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html#a4d8537b8b40c0fb6ae718d97b647ea5e">com.mxgraph.mxICell.GetChildAt()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html#a488b6b6921d6ed7eabc62b42aec03e72">com.mxgraph.mxICell.Id</a>.</p>
<p>Invoked after a cell has been removed from the model. This recursively removes the cell from its terminals and removes the mapping from the Id to the cell. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cell</td><td>Cell that has been removed.</td></tr>
<p>Returns an array of clones for the given array of cells. 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>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cells</td><td>Array of cells to be cloned.</td></tr>
<tr><tdclass="paramname">includeChildren</td><td>Boolean indicating if the cells should be cloned with all descendants.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Returns a cloned array of cells.</dd></dl>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a4d3170b6bcffa23d72bb6b6594be3fdb"title="Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0...">com.mxgraph.mxIGraphModel.EndUpdate()</a></p>
<pclass="reference">Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxGraph.html#acbbbe1fc35eda6d4e5f97bc6ea09543d">com.mxgraph.mxGraph.GetChildCells()</a>.</p>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a45b739ca59bd36f8d7c63f69e8ae61e0">com.mxgraph.mxIGraphModel.GetEdgeAt()</a>, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ad67527a8bf0ecae8e0fc737a2ee0d838">com.mxgraph.mxIGraphModel.GetEdgeCount()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a891a419db7e28c278d62ab6046314188">com.mxgraph.mxIGraphModel.GetTerminal()</a>.</p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a45b739ca59bd36f8d7c63f69e8ae61e0"title="Returns the edge of cell at the given index. ">com.mxgraph.mxIGraphModel.GetEdgeAt(Object, int)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ad67527a8bf0ecae8e0fc737a2ee0d838"title="Returns the number of distinct edges connected to the given cell. ">com.mxgraph.mxIGraphModel.GetEdgeCount(Object)</a></p>
<pclass="reference">Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxFastOrganicLayout.html#abd510ac69d71dc3125886a1933467424">com.mxgraph.mxFastOrganicLayout.execute()</a>, and <aclass="el"href="classcom_1_1mxgraph_1_1mxGraph.html#a43482ea4cb2bd1af98c57ce032cced61">com.mxgraph.mxGraph.GetEdges()</a>.</p>
<p>Returns all distinct edges connected to this cell. If at least one of incoming or outgoing is true, then loops are ignored, otherwise if both are false, then all edges connected to the given cell are returned including loops. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">model</td><td>Model that contains the connection information</td></tr>
<tr><tdclass="paramname">cell</td><td>Cell whose connections should be returned</td></tr>
<tr><tdclass="paramname">incoming</td><td>Specifies if incoming edges should be returned</td></tr>
<tr><tdclass="paramname">outgoing</td><td>Specifies if outgoing edges should be returned</td></tr>
<tr><tdclass="paramname">includeLoops</td><td>Specifies if loops should be returned</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Returns the array of connected edges for the given cell</dd></dl>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a45b739ca59bd36f8d7c63f69e8ae61e0">com.mxgraph.mxIGraphModel.GetEdgeAt()</a>, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ad67527a8bf0ecae8e0fc737a2ee0d838">com.mxgraph.mxIGraphModel.GetEdgeCount()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a891a419db7e28c278d62ab6046314188">com.mxgraph.mxIGraphModel.GetTerminal()</a>.</p>
<p>Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction. </p>
<p>Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">model</td><td>The graph model that contains the graph.</td></tr>
<tr><tdclass="paramname">source</td><td><aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph. ">mxCell</a> that defines the source terminal of the edge to be returned.</td></tr>
<tr><tdclass="paramname">target</td><td><aclass="el"href="classcom_1_1mxgraph_1_1mxCell.html"title="Cells are the elements of the graph model. They represent the state of the groups, vertices and edges in a graph. ">mxCell</a> that defines the target terminal of the edge to be returned.</td></tr>
<tr><tdclass="paramname">directed</td><td>Optional boolean that specifies if the direction of the edge should be taken into account. Default is true.</td></tr>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a45b739ca59bd36f8d7c63f69e8ae61e0">com.mxgraph.mxIGraphModel.GetEdgeAt()</a>, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ad67527a8bf0ecae8e0fc737a2ee0d838">com.mxgraph.mxIGraphModel.GetEdgeCount()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a891a419db7e28c278d62ab6046314188">com.mxgraph.mxIGraphModel.GetTerminal()</a>.</p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a23f5d07903551245edd81a0d7083bff1"title="Returns the geometry of the given cell. ">com.mxgraph.mxIGraphModel.GetGeometry(Object)</a></p>
<pclass="reference">References <aclass="el"href="classcom_1_1mxgraph_1_1mxCellPath.html#a176ff5fb801eb866aa15dac0e936c702">com.mxgraph.mxCellPath.Create()</a>, <aclass="el"href="classcom_1_1mxgraph_1_1mxCellPath.html#a7cdd8428d729606f922aa81c6fb98e72">com.mxgraph.mxCellPath.GetParentPath()</a>, and <aclass="el"href="classcom_1_1mxgraph_1_1mxCellPath.html#a81ef93cb263ee9aa0161f86a17948676">com.mxgraph.mxCellPath.PATH_SEPARATOR</a>.</p>
<p>Returns all opposite vertices wrt terminal for the given edges, only$ returning sources and/or targets as specified. The result is returned as an array of mxCells. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">model</td><td>Model that contains the graph.</td></tr>
<tr><tdclass="paramname">edges</td><td>Array of edges to be examined.</td></tr>
<tr><tdclass="paramname">terminal</td><td>Cell that specifies the known end of the edges.</td></tr>
<tr><tdclass="paramname">sources</td><td>Boolean that specifies if source terminals should be contained in the result. Default is true.</td></tr>
<tr><tdclass="paramname">targets</td><td>Boolean that specifies if target terminals should be contained in the result. Default is true.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Returns the array of opposite terminals for the given edges.</dd></dl>
<pclass="reference">Referenced by <aclass="el"href="classcom_1_1mxgraph_1_1mxFastOrganicLayout.html#abd510ac69d71dc3125886a1933467424">com.mxgraph.mxFastOrganicLayout.execute()</a>.</p>
<pclass="reference">References <aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html#a33540da347ee0a5b4c06c787ab6d0b85">com.mxgraph.mxPoint.X</a>, and <aclass="el"href="classcom_1_1mxgraph_1_1mxPoint.html#ab11a2fa8c8ef7d3d3727feb60ce75a50">com.mxgraph.mxPoint.Y</a>.</p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a3b500dd24fa5dd396bdeb1e8e09b0626"title="Returns the style of the given cell. ">com.mxgraph.mxIGraphModel.GetStyle(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#ab58054989c1b3f1ba47269b66dfd5a8b"title="Returns the user object of the given cell. ">com.mxgraph.mxIGraphModel.GetValue(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#adfbdb706654adcabf5a8277d7903a715"title="Returns true if the given cell is collapsed. ">com.mxgraph.mxIGraphModel.IsCollapsed(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a471cb28306dc3fed8cfc93e1e140fdab"title="Returns true if the given cell is connectable. ">com.mxgraph.mxIGraphModel.IsConnectable(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a55f48b5247ec10a1bb2233ea60c8215f"title="Returns true if the given cell is an edge. ">com.mxgraph.mxIGraphModel.IsEdge(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#acdc9b7bf983ce698c8ab58d650884844"title="Returns true if the given cell is a vertex. ">com.mxgraph.mxIGraphModel.IsVertex(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a1947ffa03c65ff0a0cb14c7c742a4b8c"title="Returns true if the given cell is visible. ">com.mxgraph.mxIGraphModel.IsVisible(Object)</a></p>
<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>
<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>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#acdfefab19b882fcaa4e51e146b70014b"title="Removes the specified cell from the model. This operation will remove the cell and all of its childre...">com.mxgraph.mxIGraphModel.Remove(Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#aa9e29fca5946a975f3151fd729ebbfd8"title="Sets the collapsed state of the given cell. ">com.mxgraph.mxIGraphModel.SetCollapsed(Object, bool)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a726274a683813f9f8dbfb1e8e95015ad"title="Sets the geometry of the given cell. ">com.mxgraph.mxIGraphModel.SetGeometry(Object, mxGeometry)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a005f5979ec0a5f94cbdfeaa9fd52087b"title="Sets the style of the given cell. ">com.mxgraph.mxIGraphModel.SetStyle(Object, string)</a></p>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html#a30ed7cb4d9fca0f6a5d832fbb77d6f3d">com.mxgraph.mxICell.GetTerminal()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxICell.html#a5289b2113163a282469195973842da33">com.mxgraph.mxICell.RemoveEdge()</a>.</p>
<pclass="reference">References <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a1ba0c455c49ca2982fee04a7645c22db">com.mxgraph.mxIGraphModel.BeginUpdate()</a>, <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a4d3170b6bcffa23d72bb6b6594be3fdb">com.mxgraph.mxIGraphModel.EndUpdate()</a>, and <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a6f57467fa9f0886e1ee43777c4abb3f3">com.mxgraph.mxIGraphModel.SetTerminal()</a>.</p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a106592d04d501478143594bb3822fe47"title="Sets the user object of then given cell. ">com.mxgraph.mxIGraphModel.SetValue(Object, Object)</a></p>
<p>see <aclass="el"href="interfacecom_1_1mxgraph_1_1mxIGraphModel.html#a11faed388a4b66de80863e768fdde957"title="Sets the visible state of the given cell. ">com.mxgraph.mxIGraphModel.SetVisible(Object, bool)</a></p>
<p>Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cell</td><td>Cell whose edges should be checked and updated.</td></tr>
<p>Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">cell</td><td>Cell whose edges should be checked and updated.</td></tr>
<tr><tdclass="paramname">root</td><td>Root of the cell hierarchy that contains all cells.</td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2class="groupheader">Member Data Documentation</h2>
<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 element of the diagram are supposed to live in the third generation of cells and below. </p>
<p>Counter for the depth of nested transactions. Each call to beginUpdate increments this counter and each call to endUpdate decrements it. When the counter reaches 0, the transaction is closed and the respective events are fired. Initial value is 0. </p>