Constructs a hierarchy edge
a list of real graph edges this abstraction represents
Holds the child cells.
Specifies whether the cell is collapsed.
Specifies whether the cell is connectable.
Specifies whether the cell is an edge.
The graph edge(s) this object represents. Parallel edges are all grouped together within one hierarchy edge.
Holds the Geometry.
The height of this cell. Default is 0.
Holds the identifier of the Cell.
The object identities of the wrapped cells
Whether or not the direction of this edge has been reversed internally to create a DAG for the hierarchical layout
The maximum rank this cell occupies. Default is -1.
The minimum rank this cell occupies. Default is -1.
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
The node this edge is sourced at
Holds the style of the Cell.
The node this edge targets
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.
Specifies whether the cell is a vertex.
Specifies whether the cell is visible.
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.
Returns a clone of the cell's user object.
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 specified attribute from the user object if it is an XML node.
Name of the attribute whose value should be returned.
Optional
defaultValue: anyOptional default value to use if the attribute has no value.
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.
Returns the number of child cells.
Returns the child edges of the given parent.
Returns the child vertices of the given parent.
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 all edges of the given cell without loops.
Gets the first core edge associated with this wrapper
Returns all descendants of the given cell and the cell itself in an array.
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 number of edges in the edge array.
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.
Gets the value of temp for the specified layer
Returns the Id of the cell as a string.
Returns the incoming edges of the given cell without loops.
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 outgoing edges of the given cell without loops.
Returns the cell's parent.
Returns the cells this cell connects to on the next layer down
Returns the root of the model or the topmost parent of the given cell.
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.
Returns the source or target terminal.
Boolean that specifies if the source terminal should be returned.
Returns the user object of the cell. The user
object is stored in
Gets the value of x on the specified layer
Returns true if the user object is an XML node that contains the given attribute.
Name nameName of the attribute.
Inverts the direction of this internal edge(s)
Returns true if the given parent is an ancestor of the given child. Note returns true if child == parent.
that specifies the child.
Returns true if the cell is collapsed.
Returns true if the cell is connectable.
Returns true.
Returns whether or not this cell is a node
Returns true if the cell is visibile.
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.
Removes the cell from its parent.
Removes the edge from its source or target terminal.
Boolean that specifies if the edge should be removed from its source or target terminal.
Sets the specified attribute on the user object if it is an XML node.
Name of the attribute whose value should be set.
New value of the attribute.
Sets the collapsed state.
Boolean that specifies the new collapsed state.
Sets the connectable state.
Boolean that specifies the new connectable state.
Specifies if the cell is an edge. This should only be assigned at construction of the cell and not be changed during its lifecycle.
Boolean that specifies if the cell is an edge.
Set the value of temp for the specified layer
Sets the Id of the cell to the given string.
Sets the user object of the cell. The user object
is stored in
Specifies if the cell is a vertex. This should only be assigned at construction of the cell and not be changed during its lifecycle.
Boolean that specifies if the cell is a vertex.
Specifies if the cell is visible.
Boolean that specifies the new visible state.
Set the value of x for the specified layer
Set the value of y for the specified layer
Changes the user object after an in-place edit and returns the previous value. This implementation replaces the user object with the given value and returns the old user object.
An abstraction of a hierarchical edge for the hierarchy layout