mxGraph
Public Member Functions | Properties
com.mxgraph.mxICell Interface Reference

Defines the requirements for a cell that can be used in an mxGraphModel. More...

Inheritance diagram for com.mxgraph.mxICell:
com.mxgraph.mxCell

List of all members.

Public Member Functions

mxICell GetTerminal (bool source)
 Returns the source or target terminal of the cell.
mxICell SetTerminal (mxICell terminal, bool source)
 Sets the source or target terminal.
int ChildCount ()
 Returns the number of child cells.
int GetIndex (mxICell child)
 Returns the index of the specified child in the child array.
mxICell GetChildAt (int index)
 Returns the child at the specified index.
mxICell Insert (mxICell child)
 Appends the specified child into the child array and updates the parent reference of the child.
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.
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.
mxICell Remove (mxICell child)
 Removes the given child from the child array. Will remove the parent reference of the child.
void RemoveFromParent ()
 Removes the cell from its parent.
int EdgeCount ()
 Returns the number of edges in the edge array.
int GetEdgeIndex (mxICell edge)
 Returns the index of the specified edge in the edge array.
mxICell GetEdgeAt (int index)
 Returns the edge at the specified index in the edge array.
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.
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.
void RemoveFromTerminal (bool isSource)
 Removes the edge from its source or target terminal.
Object Clone ()
 Returns a clone of this cell.

Properties

string Id [get, set]
 Sets or returns the Id of the cell.
Object Value [get, set]
 Sets or returns the user object of the cell.
mxGeometry Geometry [get, set]
 Sets or returns the geometry of the cell.
string Style [get, set]
 Sets or returns the string that describes the style.
bool Vertex [get]
 Returns true if the cell is a vertex.
bool Edge [get]
 Returns true if the cell is an edge.
bool Connectable [get]
 Returns true if the cell is connectable.
bool Visible [get, set]
 Sets or returns the visible state of the cell.
bool Collapsed [get, set]
 Sets or returns the collapsed state of the cell.
mxICell Parent [get, set]
 Sets or returns the parent of the cell.

Detailed Description

Defines the requirements for a cell that can be used in an mxGraphModel.


Member Function Documentation

Returns the number of child cells.

Returns:
Returns the number of child cells.

Implemented in com.mxgraph.mxCell.

Returns a clone of this cell.

Returns:
Returns a clone of this cell.

Implemented in com.mxgraph.mxCell.

Returns the number of edges in the edge array.

Returns:
Returns the number of edges.

Implemented in com.mxgraph.mxCell.

Returns the child at the specified index.

Parameters:
indexInteger that specifies the child to be returned.
Returns:
Returns the child at the specified index.

Implemented in com.mxgraph.mxCell.

Returns the edge at the specified index in the edge array.

Parameters:
indexInteger that specifies the index of the edge to be returned.
Returns:
Returns the edge at the specified index.

Implemented in com.mxgraph.mxCell.

Returns the index of the specified edge in the edge array.

Parameters:
edgeCell whose index should be returned.
Returns:
Returns the index of the given edge.

Implemented in com.mxgraph.mxCell.

Returns the index of the specified child in the child array.

Parameters:
childChild whose index should be returned.
Returns:
Returns the index of the specified child.

Implemented in com.mxgraph.mxCell.

Returns the source or target terminal of the cell.

Parameters:
sourceBoolean that specifies if the source terminal should be returned.
Returns:
Returns the source or target terminal.

Implemented in com.mxgraph.mxCell.

Appends the specified child into the child array and updates the parent reference of the child.

Parameters:
childCell to be appended to the child array.
Returns:
Returns the appended child.

Implemented in com.mxgraph.mxCell.

mxICell com.mxgraph.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.

Parameters:
childCell to be inserted into the child array.
indexInteger that specifies the index at which the child should be inserted into the child array.
Returns:
Returns the inserted child.

Implemented in com.mxgraph.mxCell.

mxICell com.mxgraph.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.

Parameters:
edgeCell to be inserted into the edge array.
isOutgoingBoolean that specifies if the edge is outgoing.
Returns:
Returns the inserted edge.

Implemented in com.mxgraph.mxCell.

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.

Parameters:
indexInteger that specifies the index of the child to be removed.
Returns:
Returns the child that was removed.

Implemented in com.mxgraph.mxCell.

Removes the given child from the child array. Will remove the parent reference of the child.

Parameters:
child
Returns:
Returns the child that was removed.

Implemented in com.mxgraph.mxCell.

mxICell com.mxgraph.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.

Parameters:
edgeCell to be removed from the edge array.
isOutgoingBoolean that specifies if the edge is outgoing.
Returns:
Returns the edge that was removed.

Implemented in com.mxgraph.mxCell.

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.

Parameters:
isSourceBoolean that specifies if the edge should be removed from its source or target terminal.

Implemented in com.mxgraph.mxCell.

mxICell com.mxgraph.mxICell.SetTerminal ( mxICell  terminal,
bool  source 
)

Sets the source or target terminal.

Parameters:
terminalCell that represents the new source or target terminal.
sourceBoolean that specifies if the source or target terminal should be set.
Returns:
Returns the new terminal.

Implemented in com.mxgraph.mxCell.


Property Documentation

Sets or returns the collapsed state of the cell.

Implemented in com.mxgraph.mxCell.

Returns true if the cell is connectable.

Implemented in com.mxgraph.mxCell.

Returns true if the cell is an edge.

Implemented in com.mxgraph.mxCell.

Sets or returns the geometry of the cell.

Implemented in com.mxgraph.mxCell.

string com.mxgraph.mxICell.Id [get, set]

Sets or returns the Id of the cell.

Implemented in com.mxgraph.mxCell.

Sets or returns the parent of the cell.

Implemented in com.mxgraph.mxCell.

string com.mxgraph.mxICell.Style [get, set]

Sets or returns the string that describes the style.

Implemented in com.mxgraph.mxCell.

Object com.mxgraph.mxICell.Value [get, set]

Sets or returns the user object of the cell.

Implemented in com.mxgraph.mxCell.

Returns true if the cell is a vertex.

Implemented in com.mxgraph.mxCell.

bool com.mxgraph.mxICell.Visible [get, set]

Sets or returns the visible state of the cell.

Implemented in com.mxgraph.mxCell.


The documentation for this interface was generated from the following file: