Click or drag to resize

mxIGraphModel Interface

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Defines the requirements for a graph model to be used with mxGraph.

Namespace:  imbSCI.Graph.MXGraph.model
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
public interface mxIGraphModel
Request Example View Source

The mxIGraphModel type exposes the following members.

Properties
  NameDescription
Public propertyRoot
Holds the root cell.
Top
Methods
  NameDescription
Public methodAdd
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.
Public methodBeginUpdate
Increments the updateLevel by one. The event notification is queued until updateLevel reaches 0 by use of endUpdate.
Public methodCloneCells
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.
Public methodContains
Returns true if the model contains the given cell.
Public methodEndUpdate
Decrements the updateLevel by one and fires a notification event if the updateLevel reaches 0.
Public methodGetChildAt
Returns the child of the given parent at the given index.
Public methodGetChildCount
Returns the number of children in the given cell.
Public methodGetEdgeAt
Returns the edge of cell at the given index.
Public methodGetEdgeCount
Returns the number of distinct edges connected to the given cell.
Public methodGetGeometry
Returns the geometry of the given cell.
Public methodGetParent
Returns the parent of the given cell.
Public methodGetStyle
Returns the style of the given cell.
Public methodGetTerminal
Returns the source or target terminal of the given edge depending on the value of the boolean parameter.
Public methodGetValue
Returns the user object of the given cell.
Public methodIsAncestor
Returns true if the given parent is an ancestor of child.
Public methodIsCollapsed
Returns true if the given cell is collapsed.
Public methodIsConnectable
Returns true if the given cell is connectable.
Public methodIsEdge
Returns true if the given cell is an edge.
Public methodIsVertex
Returns true if the given cell is a vertex.
Public methodIsVisible
Returns true if the given cell is visible.
Public methodRemove
Removes the specified cell from the model. This operation will remove the cell and all of its children from the model.
Public methodSetCollapsed
Sets the collapsed state of the given cell.
Public methodSetGeometry
Sets the geometry of the given cell.
Public methodSetStyle
Sets the style of the given cell.
Public methodSetTerminal
Sets the source or target terminal of the given edge using.
Public methodSetValue
Sets the user object of then given cell.
Public methodSetVisible
Sets the visible state of the given cell.
Top
Events
  NameDescription
Public eventGraphModelChange
Called when the graph model has changed.
Top
See Also