|
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.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 |
createGroup(CyNode groupNode,
List nodeList,
String viewer)
Create a new group with a list of nodes as initial members, and a precreated group node. |
static CyGroup |
createGroup(String groupName,
List nodeList,
String viewer)
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 |
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 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 |
---|
equals, 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(CyGroupViewer viewer)
viewer
- the CyGroupViewer
public static CyGroup findGroup(String groupName)
groupName
- the name of the group to find
public 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 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 grouppublic static CyGroup createGroup(CyNode groupNode, List 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
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |