|
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 |
java.lang.Object cytoscape.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 |
setGroupName(String name)
Set the name of this 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 CyGroup
public void setGroupName(String name)
public List<CyNode> getNodes()
getNodes
in interface CyGroup
public CyNode getGroupNode()
getGroupNode
in interface CyGroup
public Iterator<CyNode> getNodeIterator()
getNodeIterator
in interface CyGroup
public List<CyEdge> getInnerEdges()
getInnerEdges
in interface CyGroup
public List<CyEdge> getOuterEdges()
getOuterEdges
in interface CyGroup
public void addOuterEdge(CyEdge edge)
addOuterEdge
in interface CyGroup
edge
- the CyEdge to add to the outer edge mappublic void addInnerEdge(CyEdge edge)
addInnerEdge
in interface CyGroup
edge
- the CyEdge to add to the innter edge mappublic boolean contains(CyNode node)
contains
in interface CyGroup
node
- the CyNode to test
public void setState(int state)
setState
in interface CyGroup
state
- the state to setpublic int getState()
getState
in interface CyGroup
public void setViewValue(Object viewValue)
viewValue
- the view value to setpublic Object getViewValue()
public String toString()
toString
in interface CyGroup
toString
in class Object
public String getViewer()
getViewer
in interface CyGroup
public void addNode(CyNode node)
addNode
in interface CyGroup
node
- the node to addpublic void removeNode(CyNode node)
removeNode
in interface CyGroup
node
- the node to remove
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |