|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface mxICell
Defines the requirements for a cell that can be used in an mxGraphModel.
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this cell. |
mxICell |
getChildAt(int index)
Returns the child at the specified index. |
int |
getChildCount()
Returns the number of child cells. |
mxICell |
getEdgeAt(int index)
Returns the edge at the specified index in the edge array. |
int |
getEdgeCount()
Returns the number of edges in the edge array. |
int |
getEdgeIndex(mxICell edge)
Returns the index of the specified edge in the edge array. |
mxGeometry |
getGeometry()
Returns the object that describes the geometry. |
String |
getId()
Returns the Id of the cell as a string. |
int |
getIndex(mxICell child)
Returns the index of the specified child in the child array. |
mxICell |
getParent()
Returns the cell's parent. |
String |
getStyle()
Returns the string that describes the style. |
mxICell |
getTerminal(boolean source)
Returns the source or target terminal. |
Object |
getValue()
Returns the user object of the cell. |
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 |
insertEdge(mxICell edge,
boolean isOutgoing)
Inserts the specified edge into the edge array and returns the edge. |
boolean |
isCollapsed()
Returns true if the cell is collapsed. |
boolean |
isConnectable()
Returns true if the cell is connectable. |
boolean |
isEdge()
Returns true if the cell is an edge. |
boolean |
isVertex()
Returns true if the cell is a vertex. |
boolean |
isVisible()
Returns true if the cell is visibile. |
mxICell |
remove(int index)
Removes the child at the specified index from the child array and returns the child that was removed. |
mxICell |
remove(mxICell child)
Removes the given child from the child array and returns it. |
mxICell |
removeEdge(mxICell edge,
boolean isOutgoing)
Removes the specified edge from the edge array and returns the edge. |
void |
removeFromParent()
Removes the cell from its parent. |
void |
removeFromTerminal(boolean isSource)
Removes the edge from its source or target terminal. |
void |
setCollapsed(boolean collapsed)
Sets the collapsed state. |
void |
setGeometry(mxGeometry geometry)
Sets the object to be used as the geometry. |
void |
setId(String id)
Sets the Id of the cell to the given string. |
void |
setParent(mxICell parent)
Sets the parent cell. |
void |
setStyle(String style)
Sets the string to be used as the style. |
mxICell |
setTerminal(mxICell terminal,
boolean isSource)
Sets the source or target terminal and returns the new terminal. |
void |
setValue(Object value)
Sets the user object of the cell. |
void |
setVisible(boolean visible)
Specifies if the cell is visible. |
Method Detail |
---|
String getId()
void setId(String id)
id
- String that represents the new Id.Object getValue()
void setValue(Object value)
value
- Object that represents the new value.mxGeometry getGeometry()
void setGeometry(mxGeometry geometry)
String getStyle()
void setStyle(String style)
boolean isVertex()
boolean isEdge()
boolean isConnectable()
boolean isVisible()
void setVisible(boolean visible)
visible
- Boolean that specifies the new visible state.boolean isCollapsed()
void setCollapsed(boolean collapsed)
collapsed
- Boolean that specifies the new collapsed state.mxICell getParent()
void setParent(mxICell parent)
parent
- Cell that represents the new parent.mxICell getTerminal(boolean source)
source
- Boolean that specifies if the source terminal should be
returned.
mxICell setTerminal(mxICell terminal, boolean isSource)
terminal
- Cell that represents the new source or target terminal.isSource
- Boolean that specifies if the source or target terminal
should be set.
int getChildCount()
int getIndex(mxICell child)
child
- Child whose index should be returned.
mxICell getChildAt(int index)
index
- Integer that specifies the child to be returned.
mxICell insert(mxICell child)
child
- Cell to be appended to the child array.
mxICell insert(mxICell child, int index)
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.
mxICell remove(int index)
index
- Integer that specifies the index of the child to be
removed.
mxICell remove(mxICell child)
child
- Cell that represents the child to be removed.
void removeFromParent()
int getEdgeCount()
int getEdgeIndex(mxICell edge)
edge
- Cell whose index should be returned.
mxICell getEdgeAt(int index)
index
- Integer that specifies the index of the edge to be
returned.
mxICell insertEdge(mxICell edge, boolean isOutgoing)
edge
- Cell to be inserted into the edge array.isOutgoing
- Boolean that specifies if the edge is outgoing.
mxICell removeEdge(mxICell edge, boolean isOutgoing)
edge
- Cell to be removed from the edge array.isOutgoing
- Boolean that specifies if the edge is outgoing.
void removeFromTerminal(boolean isSource)
isSource
- Boolean that specifies if the edge should be removed
from its source or target terminal.Object clone() throws CloneNotSupportedException
CloneNotSupportedException
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |