|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.groups.CyGroupManager
public class CyGroupManager
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
Constructor Summary | |
---|---|
CyGroupManager()
|
Method Summary | |
---|---|
static void |
addGroupChangeListener(CyGroupChangeListener listener)
Add a new change listener to our list of listeners |
static CyGroup |
copyGroup(CyGroup group,
CyNetwork network)
Create a copy of a group, potentially in a new network, and name the copy automatically. |
static CyGroup |
copyGroup(String newName,
CyGroup group,
CyNetwork network)
Create a copy of a group, potentially in a new network, and name the copy with the provided new name. |
static CyGroup |
createGroup(CyNode groupNode,
List<CyNode> nodeList,
String viewer)
Create a new group with a list of nodes as initial members, and a precreated group node. |
static CyGroup |
createGroup(CyNode groupNode,
List<CyNode> nodeList,
String viewer,
CyNetwork network)
Create a new group with a list of nodes as initial members, and a precreated group node. |
static CyGroup |
createGroup(String groupName,
List<CyNode> nodeList,
List<CyEdge> innerEdgeList,
List<CyEdge> outerEdgeList,
String viewer,
CyNetwork network)
Create a new group by specifying all components. |
static CyGroup |
createGroup(String groupName,
List<CyNode> nodeList,
String viewer)
Create a new, empty group. |
static CyGroup |
createGroup(String groupName,
List<CyNode> nodeList,
String viewer,
CyNetwork network)
Create a new group with a list of nodes as initial members. |
static CyGroup |
createGroup(String groupName,
String viewer)
Create a new, empty group. |
static CyGroup |
createGroup(String groupName,
String viewer,
CyNetwork network)
Create a new, empty group. |
static CyGroup |
findGroup(String groupName)
Search all groups for the group named 'groupName' |
static CyGroup |
getCyGroup(CyNode groupNode)
getCyGroup is a static method that returns a CyGroup structure when given the CyNode that represents this group. |
static List<CyGroup> |
getGroup(CyNode memberNode)
getGroup is a static method that returns a CyGroup structure when given a CyNode that is a member of a group. |
static List<CyGroup> |
getGroupList()
Return the list of all groups |
static List<CyGroup> |
getGroupList(CyGroupViewer viewer)
Return the list of all groups managed by a particular viewer |
static List<CyGroup> |
getGroupList(CyNetwork network)
Return the list of all groups for this network |
static CyGroupViewer |
getGroupViewer(String viewerName)
Return the viewer object for a named viewer |
static Collection<CyGroupViewer> |
getGroupViewers()
Return a list of all registered viewers |
static boolean |
isaGroup(CyNode groupNode)
See if this CyNode represents a group |
static void |
notifyCreateGroup(CyGroup group)
Notify a viewer that a group has been created for them to manage. |
static void |
notifyRemoveGroup(CyGroup group)
Notify a viewer the a group of interest is going to be removed. |
static void |
registerGroupViewer(CyGroupViewer viewer)
Register a viewer. |
static void |
removeGroup(CyGroup group)
Remove (delete) a group |
static void |
removeGroup(CyNode groupNode)
Remove (delete) a group |
static void |
removeGroupChangeListener(CyGroupChangeListener listener)
Remove a change listener from our list of listeners |
static void |
setGroupViewer(CyGroup group,
String viewer,
CyNetworkView myView,
boolean notify)
Set the viewer for a group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CyGroupManager()
Method Detail |
---|
public static CyGroup getCyGroup(CyNode groupNode)
groupNode
- the CyNode that represents this group
public static List<CyGroup> getGroup(CyNode memberNode)
memberNode
- a CyNode whose group membership we're looking for
public static List<CyGroup> getGroupList()
public static List<CyGroup> getGroupList(CyNetwork network)
network
- the network we're interested in. If network is null, return
the list of global groups
public static List<CyGroup> getGroupList(CyGroupViewer viewer)
viewer
- the CyGroupViewer
public static CyGroup findGroup(String groupName)
groupName
- the name of the group to find
public static CyGroup copyGroup(CyGroup group, CyNetwork network)
group
- the group to make a copy ofnetwork
- the network the copy is to be part of
public static CyGroup copyGroup(String newName, CyGroup group, CyNetwork network)
newName
- the name of the copied groupgroup
- the group to make a copy ofnetwork
- the network the copy is to be part of
public static CyGroup createGroup(String groupName, List<CyNode> nodeList, List<CyEdge> innerEdgeList, List<CyEdge> outerEdgeList, String viewer, CyNetwork network)
groupName
- the identifier to use for this group -- should be unique!nodeList
- the initial set of nodes for this groupinnerEdgeList
- the initial set of internal edges for this groupouterEdgeList
- the initial set of external edges for this groupviewer
- the name of the viewer to manage this groupnetwork
- the network that this group is in
public static CyGroup createGroup(String groupName, String viewer, CyNetwork network)
groupName
- the identifier to use for this group -- should be unique!viewer
- the name of the viewer to manage this groupnetwork
- the network that this group is in
public static CyGroup createGroup(String groupName, List<CyNode> nodeList, String viewer, CyNetwork network)
groupName
- the identifier to use for this group -- should be unique!nodeList
- the initial set of nodes for this groupviewer
- the name of the viewer to manage this groupnetwork
- the network that this group is inpublic static CyGroup createGroup(CyNode groupNode, List<CyNode> nodeList, String viewer, CyNetwork network)
groupNode
- the groupNode to use for this groupnodeList
- the initial set of nodes for this groupviewer
- the name of the viewer to manage this groupnetwork
- the network that this group is inpublic static CyGroup createGroup(String groupName, String viewer)
groupName
- the identifier to use for this group -- should be unique!viewer
- the name of the viewer to manage this group
public static CyGroup createGroup(String groupName, List<CyNode> nodeList, String viewer)
groupName
- the identifier to use for this group -- should be unique!nodeList
- the initial set of nodes for this groupviewer
- the name of the viewer to manage this group
public static CyGroup createGroup(CyNode groupNode, List<CyNode> nodeList, String viewer)
groupNode
- the groupNode to use for this groupnodeList
- the initial set of nodes for this groupviewer
- the name of the viewer to manage this grouppublic static void removeGroup(CyGroup group)
group
- the group to removepublic static void removeGroup(CyNode groupNode)
groupNode
- the group node of the group to removepublic static boolean isaGroup(CyNode groupNode)
groupNode
- the node we want to test
public static void registerGroupViewer(CyGroupViewer viewer)
viewer
- the viewer we're registeringpublic static Collection<CyGroupViewer> getGroupViewers()
public static void setGroupViewer(CyGroup group, String viewer, CyNetworkView myView, boolean notify)
group
- the group we're associating with a viewerviewer
- the viewermyView
- the network view that this is being operated onnotify
- if 'true' the viewer will be notified of the creationpublic static CyGroupViewer getGroupViewer(String viewerName)
viewerName
- the name of the viewer
public static void notifyCreateGroup(CyGroup group)
group
- the group that was just createdpublic static void notifyRemoveGroup(CyGroup group)
group
- the group to be removedpublic static void addGroupChangeListener(CyGroupChangeListener listener)
listener
- the listener to addpublic static void removeGroupChangeListener(CyGroupChangeListener listener)
listener
- the listener to remove
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |