mxGraph
|
Defines the requirements for a cell that can be used in an mxGraphModel. More...
Public Member Functions | |
mxICell | GetTerminal (bool source) |
Returns the source or target terminal of the cell. More... | |
mxICell | SetTerminal (mxICell terminal, bool source) |
Sets the source or target terminal. More... | |
int | ChildCount () |
Returns the number of child cells. More... | |
int | GetIndex (mxICell child) |
Returns the index of the specified child in the child array. More... | |
mxICell | GetChildAt (int index) |
Returns the child at the specified index. More... | |
mxICell | Insert (mxICell child) |
Appends the specified child into the child array and updates the parent reference of the child. More... | |
mxICell | Insert (mxICell child, int index) |
Inserts the specified child into the child array at the specified index and updates the parent reference of the child. More... | |
mxICell | Remove (int index) |
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. More... | |
mxICell | Remove (mxICell child) |
Removes the given child from the child array. Will remove the parent reference of the child. More... | |
void | RemoveFromParent () |
Removes the cell from its parent. More... | |
int | EdgeCount () |
Returns the number of edges in the edge array. More... | |
int | GetEdgeIndex (mxICell edge) |
Returns the index of the specified edge in the edge array. More... | |
mxICell | GetEdgeAt (int index) |
Returns the edge at the specified index in the edge array. More... | |
mxICell | InsertEdge (mxICell edge, bool isOutgoing) |
Inserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge. More... | |
mxICell | RemoveEdge (mxICell edge, bool isOutgoing) |
Removes the specified edge from the edge array and returns the edge. Will remove the respective terminal reference from the edge. More... | |
void | RemoveFromTerminal (bool isSource) |
Removes the edge from its source or target terminal. More... | |
Object | Clone () |
Returns a clone of this cell. More... | |
Properties | |
string | Id [get, set] |
Sets or returns the Id of the cell. More... | |
Object | Value [get, set] |
Sets or returns the user object of the cell. More... | |
mxGeometry | Geometry [get, set] |
Sets or returns the geometry of the cell. More... | |
string | Style [get, set] |
Sets or returns the string that describes the style. More... | |
bool | Vertex [get] |
Returns true if the cell is a vertex. More... | |
bool | Edge [get] |
Returns true if the cell is an edge. More... | |
bool | Connectable [get] |
Returns true if the cell is connectable. More... | |
bool | Visible [get, set] |
Sets or returns the visible state of the cell. More... | |
bool | Collapsed [get, set] |
Sets or returns the collapsed state of the cell. More... | |
mxICell | Parent [get, set] |
Sets or returns the parent of the cell. More... | |
Defines the requirements for a cell that can be used in an mxGraphModel.
int com.mxgraph.mxICell.ChildCount | ( | ) |
Returns the number of child cells.
Implemented in com.mxgraph.mxCell.
Object com.mxgraph.mxICell.Clone | ( | ) |
Returns a clone of this cell.
Implemented in com.mxgraph.mxCell.
Referenced by com.mxgraph.mxGraphModel.MergeChildrenImpl().
int com.mxgraph.mxICell.EdgeCount | ( | ) |
Returns the number of edges in the edge array.
Implemented in com.mxgraph.mxCell.
mxICell com.mxgraph.mxICell.GetChildAt | ( | int | index | ) |
Returns the child at the specified index.
index | Integer that specifies the child to be returned. |
Implemented in com.mxgraph.mxCell.
Referenced by com.mxgraph.mxGraphModel.CellAdded(), com.mxgraph.mxGraphModel.CellRemoved(), and com.mxgraph.mxCodec.EncodeCell().
mxICell com.mxgraph.mxICell.GetEdgeAt | ( | int | index | ) |
Returns the edge at the specified index in the edge array.
index | Integer that specifies the index of the edge to be returned. |
Implemented in com.mxgraph.mxCell.
int com.mxgraph.mxICell.GetEdgeIndex | ( | mxICell | edge | ) |
Returns the index of the specified edge in the edge array.
edge | Cell whose index should be returned. |
Implemented in com.mxgraph.mxCell.
int com.mxgraph.mxICell.GetIndex | ( | mxICell | child | ) |
Returns the index of the specified child in the child array.
child | Child whose index should be returned. |
Implemented in com.mxgraph.mxCell.
mxICell com.mxgraph.mxICell.GetTerminal | ( | bool | source | ) |
Returns the source or target terminal of the cell.
source | Boolean that specifies if the source terminal should be returned. |
Implemented in com.mxgraph.mxCell.
Referenced by com.mxgraph.mxCell.InsertEdge(), and com.mxgraph.mxCell.RemoveEdge().
Appends the specified child into the child array and updates the parent reference of the child.
child | Cell to be appended to the child array. |
Implemented in com.mxgraph.mxCell.
Inserts the specified child into the child array at the specified index and updates the parent reference of the child.
child | Cell to be inserted into the child array. |
index | Integer that specifies the index at which the child should be inserted into the child array. |
Implemented in com.mxgraph.mxCell.
Inserts the specified edge into the edge array and returns the edge. Will update the respective terminal reference of the edge.
edge | Cell to be inserted into the edge array. |
isOutgoing | Boolean that specifies if the edge is outgoing. |
Implemented in com.mxgraph.mxCell.
mxICell com.mxgraph.mxICell.Remove | ( | int | index | ) |
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.
index | Integer that specifies the index of the child to be removed. |
Implemented in com.mxgraph.mxCell.
Removes the given child from the child array. Will remove the parent reference of the child.
child |
Implemented in com.mxgraph.mxCell.
Removes the specified edge from the edge array and returns the edge. Will remove the respective terminal reference from the edge.
edge | Cell to be removed from the edge array. |
isOutgoing | Boolean that specifies if the edge is outgoing. |
Implemented in com.mxgraph.mxCell.
void com.mxgraph.mxICell.RemoveFromParent | ( | ) |
Removes the cell from its parent.
Implemented in com.mxgraph.mxCell.
void com.mxgraph.mxICell.RemoveFromTerminal | ( | bool | isSource | ) |
Removes the edge from its source or target terminal.
isSource | Boolean that specifies if the edge should be removed from its source or target terminal. |
Implemented in com.mxgraph.mxCell.
Sets the source or target terminal.
terminal | Cell that represents the new source or target terminal. |
source | Boolean that specifies if the source or target terminal should be set. |
Implemented in com.mxgraph.mxCell.
|
getset |
Sets or returns the collapsed state of the cell.
|
get |
Returns true if the cell is connectable.
|
get |
Returns true if the cell is an edge.
|
getset |
Sets or returns the geometry of the cell.
|
getset |
Sets or returns the Id of the cell.
Referenced by com.mxgraph.mxGraphModel.CellAdded(), and com.mxgraph.mxGraphModel.CellRemoved().
|
getset |
Sets or returns the parent of the cell.
Referenced by com.mxgraph.mxModelCodec.BeforeDecode(), com.mxgraph.mxCellPath.Create(), and com.mxgraph.mxCell.Insert().
|
getset |
Sets or returns the string that describes the style.
|
getset |
Sets or returns the user object of the cell.
|
get |
Returns true if the cell is a vertex.
|
getset |
Sets or returns the visible state of the cell.