Package org.cytoscape.group
Interface CyGroupManager
public interface CyGroupManager
The CyGroupManager maintains information about all of the groups
an instance of Cytoscape.
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>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers a group with the group manager.void
Registers a list of groups with the group manager.void
destroyGroup
(CyGroup group) Destroy a group.Return the group the corresponds to a particular node in aCyNetwork
.getGroupSet
(CyNetwork network) Provides the set of all the groups known to the groups manager in a particular network.getGroupsForNode
(CyNode node) Return the list ofCyGroup
s this node is in.getGroupsForNode
(CyNode node, CyNetwork network) Return the list ofCyGroup
s this node is in for a particular network.boolean
void
reset()
Releases all currently held references and resources.
-
Method Details
-
getGroupSet
Provides the set of all the groups known to the groups manager in a particular network.- Parameters:
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 thisCyRootNetwork
- Returns:
- the complete set of all the currently known groups in a Cytoscape network
-
getGroupsForNode
Return the list ofCyGroup
s this node is in. -
getGroupsForNode
Return the list ofCyGroup
s this node is in for a particular network. -
isGroup
-
getGroup
Return the group the corresponds to a particular node in aCyNetwork
. -
destroyGroup
Destroy a group.- Parameters:
group
- theCyGroup
to remove.
-
addGroup
Registers a group with the group manager. Does nothing if the group is already known to the group manager. Fires GroupAddedEvent.- Parameters:
group
- a non-nullCyGroup
-
addGroups
Registers a list of groups with the group manager. Does nothing if the group is already known to the group manager.- Parameters:
groups
- a list ofCyGroup
-
reset
void reset()Releases all currently held references and resources.
-