Package org.cytoscape.group
Interface CyGroupFactory
-
public interface CyGroupFactoryAn interface describing a factory used for creatingCyGroupobjects. This factory will be provided as a service through Spring/OSGi.Module:
group-apiTo 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 CyGroupcreateGroup(CyNetwork network, boolean register)Creates a CyGroup object in the referenced network.CyGroupcreateGroup(CyNetwork network, List<CyNode> nodes, List<CyEdge> edges, boolean register)Creates a CyGroup object in the referenced network initially populated with the supplied nodes.CyGroupcreateGroup(CyNetwork network, CyNode node, boolean register)Creates a CyGroup object in the referenced network from an existingCyNode.CyGroupcreateGroup(CyNetwork network, CyNode node, List<CyNode> nodes, List<CyEdge> edges, boolean register)Creates a CyGroup object in the referenced network from an existingCyNode.
-
-
-
Method Detail
-
createGroup
CyGroup createGroup(CyNetwork network, boolean register)
Creates a CyGroup object in the referenced network.
-
createGroup
CyGroup createGroup(CyNetwork network, List<CyNode> nodes, List<CyEdge> edges, boolean register)
Creates a CyGroup object in the referenced network initially populated with the supplied nodes.- Parameters:
network- theCyNetworkthis group is part ofnodes- theCyNodes that are part of this group.edges- theCyEdges that are part of this group. If this is null, the edges are determined based on the node connectivityregister- if true, register theCyGroup- Returns:
- A new
CyGroupas part of the designated network.
-
createGroup
CyGroup createGroup(CyNetwork network, CyNode node, List<CyNode> nodes, List<CyEdge> edges, boolean register)
Creates a CyGroup object in the referenced network from an existingCyNode.- Parameters:
network- theCyNetworkthis group is part ofnode- theCyNodeto convert into a groupnodes- theCyNodes that are part of this group.edges- theCyEdges that are part of this group. If this is null, the edges are determined based on the node connectivityregister- if true, register theCyGroup- Returns:
- A new
CyGroupas part of the designated network.
-
-