public interface CyGroupManager
Module: group-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>group-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
addGroup(CyGroup group)
Registers a group with the group manager.
|
void |
addGroups(List<CyGroup> groups)
Registers a list of groups with the group manager.
|
void |
destroyGroup(CyGroup group)
Destroy a group.
|
CyGroup |
getGroup(CyNode node,
CyNetwork network)
Return the group the corresponds to a particular
node in a
CyNetwork . |
Set<CyGroup> |
getGroupSet(CyNetwork network)
Provides the set of all the groups known to the groups
manager in a particular network.
|
List<CyGroup> |
getGroupsForNode(CyNode node)
Return the list of
CyGroup s this node is in. |
List<CyGroup> |
getGroupsForNode(CyNode node,
CyNetwork network)
Return the list of
CyGroup s this node is in for
a particular network. |
boolean |
isGroup(CyNode node,
CyNetwork network)
|
void |
reset()
Releases all currently held references and resources.
|
Set<CyGroup> getGroupSet(CyNetwork network)
network
- the network to get the groups from. If
the network is null, then return only those
groups that have been designated as
"global" (no referenced network)
for this CyRootNetwork
List<CyGroup> getGroupsForNode(CyNode node)
CyGroup
s this node is in.List<CyGroup> getGroupsForNode(CyNode node, CyNetwork network)
CyGroup
s this node is in for
a particular network.CyGroup getGroup(CyNode node, CyNetwork network)
CyNetwork
.void destroyGroup(CyGroup group)
group
- the CyGroup
to remove.void addGroup(CyGroup group)
group
- a non-null CyGroup
void addGroups(List<CyGroup> groups)
groups
- a list of CyGroup
void reset()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.