|
Cytoscape 2.5.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.groups.CyGroupImpl
public class CyGroupImpl
The CyGroup class provides the implementation 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 |
|---|
| Fields inherited from interface cytoscape.groups.CyGroup |
|---|
GROUP_STATE_ATTR, GROUP_VIEWER_ATTR, MEMBER_LIST_ATTR |
| 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 |
Object |
getViewValue()
Get the viewValue for the group |
void |
removeNode(CyNode node)
Remove a node from a group |
void |
setState(int state)
Set the state of the group |
void |
setViewValue(Object viewValue)
Set the viewValue for the group |
String |
toString()
Provide the default toString method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getGroupName()
getGroupName in interface CyGrouppublic List<CyNode> getNodes()
getNodes in interface CyGrouppublic CyNode getGroupNode()
getGroupNode in interface CyGrouppublic Iterator<CyNode> getNodeIterator()
getNodeIterator in interface CyGrouppublic List<CyEdge> getInnerEdges()
getInnerEdges in interface CyGrouppublic List<CyEdge> getOuterEdges()
getOuterEdges in interface CyGrouppublic void addOuterEdge(CyEdge edge)
addOuterEdge in interface CyGroupedge - the CyEdge to add to the outer edge mappublic void addInnerEdge(CyEdge edge)
addInnerEdge in interface CyGroupedge - the CyEdge to add to the innter edge mappublic boolean contains(CyNode node)
contains in interface CyGroupnode - the CyNode to test
public void setState(int state)
setState in interface CyGroupstate - the state to setpublic int getState()
getState in interface CyGrouppublic void setViewValue(Object viewValue)
viewValue - the view value to setpublic Object getViewValue()
public String toString()
toString in interface CyGrouptoString in class Objectpublic String getViewer()
getViewer in interface CyGrouppublic void addNode(CyNode node)
addNode in interface CyGroupnode - the node to addpublic void removeNode(CyNode node)
removeNode in interface CyGroupnode - the node to remove
|
www.cytoscape.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||