Constructs an internal node to represent the specified real graph cell
the real graph cell this node represents
The graph cell this object represents.
Holds the child cells.
Specifies whether the cell is collapsed. Default is false.
Specifies whether the cell is connectable. Default is true.
Collection of hierarchy edges that have this node as a source
Collection of hierarchy edges that have this node as a target
Specifies whether the cell is an edge. Default is false.
Holds the edges.
Holds the Geometry. Default is null.
Assigns a unique hashcode for each node. Used by the model dfs instead of copying HashSets
The height of this cell. Default is 0.
The object identity of the wrapped cell
The object identities of the wrapped cells
The maximum rank this cell occupies. Default is -1.
The minimum rank this cell occupies. Default is -1.
List of members that should not be cloned inside
A cached version of the cells this cell connects to on the next layer up
Reference to the parent cell.
A cached version of the cells this cell connects to on the next layer down
Reference to the source terminal.
Holds the style as a string of the form [(stylename|key=value);]. Default is null.
Reference to the target terminal.
Temporary variable for general use. Generally, try to avoid carrying information between stages. Currently, the longest path layering sets temp to the rank position in fixRanks() and the crossing reduction uses this. This meant temp couldn't be used for hashing the nodes in the model dfs and so hashCode was created
Holds the user object. Default is null.
Specifies whether the cell is a vertex. Default is false.
Specifies whether the cell is visible. Default is true.
The width of this cell. Default is 0.
The x position of this cell for each layer it occupies
The y position of this cell for each layer it occupies
Returns a clone of the cell.
Uses cloneValue to clone the user object.
All fields in mxTransient are ignored during the cloning.
Visits all cells recursively and applies the specified filter function to each cell. If the function returns true then the cell is added to the resulting array. The parent and result paramters are optional. If parent is not specified then the recursion starts at root.
Example: The following example extracts all vertices from a given model:
var filter(cell)
{
return model.isVertex(cell);
}
var vertices = model.filterDescendants(filter);
JavaScript function that takes an Cell as an argument and returns a boolean.
Returns the children of the given cell that are vertices and/or edges depending on the arguments.
Boolean indicating if child vertices should be returned. Default is false.
Boolean indicating if child edges should be returned. Default is false.
Use this method to get the style object to later update it and propagate changes to the view.
See GraphDataModel.setStyle for more details.
Returns the number of incoming or outgoing edges, ignoring the given edge.
Boolean that specifies if the number of outgoing or incoming edges should be returned.
that represents an edge to be ignored.
Returns the index of the specified edge in
Returns all distinct edges connected to this cell as a new array of 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.
Optional boolean that specifies if incoming edges should be returned. Default is true.
Optional boolean that specifies if outgoing edges should be returned. Default is true.
Optional boolean that specifies if loops should be returned. Default is true.
Returns the index of the specified child in the child array.
Child whose index should be returned.
Returns the cells this cell connects to on the next layer up
Returns the cells this cell connects to on the next layer down
Returns a string that describes the style.
IMPORTANT: if you want to get the style object to later update it and propagate changes to the view, use getClonedStyle instead.
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.
Optional
index: numberInserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge.
Boolean that specifies if the edge is outgoing.
Returns true if the given parent is an ancestor of the given child. Note returns true if child == parent.
Sets the parent cell.
Sets the string to be used as the style.
Sets the source or target terminal and returns the new terminal.
Cell that represents the new source or target terminal.
boolean that specifies if the source or target terminal should be set.
An abstraction of a hierarchical edge for the hierarchy layout