|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CyGroup
The CyGroup interface provides the methods for a group model that maintains the list of nodes belonging to a group, the parent of a particular group, and the node that represents the group. Group information is stored in the CyGroup itself, as well as in special group attributes that are associated with the network, nodes, and edges involved. These attributes provide a natural mechanism for the saving and restoration of groups. There are also opaque flags
Field Summary | |
---|---|
static String |
GROUP_STATE_ATTR
The attribute key to use for group state |
static String |
GROUP_VIEWER_ATTR
The attribute key to use for group viewer |
static String |
MEMBER_LIST_ATTR
The attribute key to use for group membership |
Method Summary | |
---|---|
void |
addInnerEdge(CyEdge edge)
Add an inner edge to the map. |
void |
addNode(CyNode node)
Add a new node to this group |
void |
addOuterEdge(CyEdge edge)
Add an outer edge to the map. |
boolean |
contains(CyNode node)
Determine if a node is a member of this group |
String |
getGroupName()
Return the name of this group |
CyNode |
getGroupNode()
Get the CyNode that represents this group |
List<CyEdge> |
getInnerEdges()
Get all of the edges completely contained within this group |
Iterator<CyNode> |
getNodeIterator()
Get an iterator over all of the nodes in this group |
List<CyNode> |
getNodes()
Get all of the nodes in this group |
List<CyEdge> |
getOuterEdges()
Get all of the edges partially contained within this group |
int |
getState()
Get the state of the group |
String |
getViewer()
Get the name of the viewer for this group |
void |
removeNode(CyNode node)
Remove a node from a group |
void |
setState(int state)
Set the state of the group |
String |
toString()
Provide the default toString method |
Field Detail |
---|
static final String MEMBER_LIST_ATTR
static final String GROUP_VIEWER_ATTR
static final String GROUP_STATE_ATTR
Method Detail |
---|
String getGroupName()
List<CyNode> getNodes()
CyNode getGroupNode()
Iterator<CyNode> getNodeIterator()
List<CyEdge> getInnerEdges()
List<CyEdge> getOuterEdges()
void addOuterEdge(CyEdge edge)
edge
- the CyEdge to add to the outer edge mapvoid addInnerEdge(CyEdge edge)
edge
- the CyEdge to add to the innter edge mapboolean contains(CyNode node)
node
- the CyNode to test
void setState(int state)
state
- the state to setint getState()
String toString()
toString
in class Object
String getViewer()
void addNode(CyNode node)
node
- the node to addvoid removeNode(CyNode node)
node
- the node to remove
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |