|
Cytoscape 2.8.2 API | |||||||||
| 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_LOCAL_ATTR, GROUP_STATE_ATTR, GROUP_VIEWER_ATTR, MEMBER_LIST_ATTR |
| Constructor Summary | |
|---|---|
protected |
CyGroupImpl()
Empty constructor |
protected |
CyGroupImpl(CyNode groupNode)
Constructor to create an empty group when the group node is specified. |
protected |
CyGroupImpl(CyNode groupNode,
List<CyNode> nodeList)
Constructor to create a group with the listed nodes as initial members, and a predetermined CyNode to act as the group Node. |
protected |
CyGroupImpl(CyNode groupNode,
List<CyNode> nodeList,
List<CyEdge> internalEdges,
List<CyEdge> externalEdges,
CyNetwork network)
Constructor to create an empty group. |
protected |
CyGroupImpl(String groupName)
Constructor to create an empty group |
protected |
CyGroupImpl(String groupName,
List<CyNode> nodeList)
Constructor to create a group with the listed nodes as initial members. |
| 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 |
addNode(CyNode node,
boolean addEdges)
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()
Return a CyNetwork that represents the internal components 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 |
CyNetwork |
getNetwork()
Get the network this group is a member of |
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 |
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 |
setGroupName(String name)
Set the name of this group |
void |
setNetwork(CyNetwork network,
boolean notify)
Set (or change) the network fro this group |
void |
setState(int state)
Set the state of the group. |
protected void |
setViewer(String viewerName)
Set the viewer for this 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CyGroupImpl()
protected CyGroupImpl(CyNode groupNode,
List<CyNode> nodeList,
List<CyEdge> internalEdges,
List<CyEdge> externalEdges,
CyNetwork network)
groupNode - the CyNode to use for this groupnodeList - the initial set of nodes for this groupinternalEdges - the initial set of internal edges for this groupexternalEdges - the initial set of external edges for this groupnetwork - the network this group is part ofprotected CyGroupImpl(String groupName)
groupName - the identifier to use for this group -- should be unique!protected CyGroupImpl(CyNode groupNode)
groupNode - the CyNode to use for this group
protected CyGroupImpl(CyNode groupNode,
List<CyNode> nodeList)
groupNode - the group node to use for this groupnodeList - the initial set of nodes for this group
protected CyGroupImpl(String groupName,
List<CyNode> nodeList)
groupName - the identifier to use for this group -- should be unique!nodeList - the initial set of nodes for this group| Method Detail |
|---|
public String getGroupName()
getGroupName in interface CyGrouppublic void setGroupName(String name)
public 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 removeOuterEdge(CyEdge edge)
removeOuterEdge 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 void removeInnerEdge(CyEdge edge)
removeInnerEdge in interface CyGroupedge - the CyEdge to add to the innter edge mappublic CyNetwork getNetwork()
getNetwork in interface CyGroup
public void setNetwork(CyNetwork network,
boolean notify)
setNetwork in interface CyGroupnetwork - the network to change this group tonotify - whether to notify any viewerspublic boolean contains(CyNode node)
contains in interface CyGroupnode - the CyNode to test
public CyNetwork getGraphPerspective()
getGraphPerspective in interface CyGrouppublic 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 Objectprotected void setViewer(String viewerName)
viewerName - name of the viewer for the grouppublic String getViewer()
getViewer in interface CyGrouppublic void addNode(CyNode node)
addNode in interface CyGroupnode - the node to add
public void addNode(CyNode node,
boolean addEdges)
node - the node to addpublic void removeNode(CyNode node)
removeNode in interface CyGroupnode - the node to remove
|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||