|
Cytoscape 2.8.0 API | |||||||||
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_LOCAL_ATTR
The attribute that indicates that this is a local group |
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 |
CyNetwork |
getGraphPerspective()
Get the graph (network) that represents this network |
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 |
CyNetwork |
getNetwork()
Get the network for 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 |
removeInnerEdge(CyEdge edge)
Remove an inner edge from the map. |
void |
removeNode(CyNode node)
Remove a node from a group |
void |
removeOuterEdge(CyEdge edge)
Remove an outer edge from the map. |
void |
setNetwork(CyNetwork network,
boolean notify)
Set the network for this 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
static final String GROUP_LOCAL_ATTR
Method Detail |
---|
String getGroupName()
List<CyNode> getNodes()
CyNode getGroupNode()
Iterator<CyNode> getNodeIterator()
List<CyEdge> getInnerEdges()
List<CyEdge> getOuterEdges()
CyNetwork getNetwork()
CyNetwork getGraphPerspective()
void setNetwork(CyNetwork network, boolean notify)
network
- the network for this group or "null" if this is a global groupnotify
- notify listeners of the changevoid addOuterEdge(CyEdge edge)
edge
- the CyEdge to add to the outer edge mapvoid removeOuterEdge(CyEdge edge)
edge
- the CyEdge to add to the outer edge mapvoid addInnerEdge(CyEdge edge)
edge
- the CyEdge to add to the innter edge mapvoid removeInnerEdge(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
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |