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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 aCyNetwork
.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 ofCyGroup
s this node is in.List<CyGroup>
getGroupsForNode(CyNode node, CyNetwork network)
Return the list ofCyGroup
s this node is in for a particular network.boolean
isGroup(CyNode node, CyNetwork network)
void
reset()
Releases all currently held references and resources.
-
-
-
Method Detail
-
getGroupSet
Set<CyGroup> getGroupSet(CyNetwork network)
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
List<CyGroup> getGroupsForNode(CyNode node)
Return the list ofCyGroup
s this node is in.
-
getGroupsForNode
List<CyGroup> getGroupsForNode(CyNode node, CyNetwork network)
Return the list ofCyGroup
s this node is in for a particular network.
-
getGroup
CyGroup getGroup(CyNode node, CyNetwork network)
Return the group the corresponds to a particular node in aCyNetwork
.
-
destroyGroup
void destroyGroup(CyGroup group)
Destroy a group.- Parameters:
group
- theCyGroup
to remove.
-
addGroup
void addGroup(CyGroup group)
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
void addGroups(List<CyGroup> groups)
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.
-
-