public interface CyGroupFactory
CyGroup objects. This factory will be
provided as a service through Spring/OSGi.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 |
|---|---|
CyGroup |
createGroup(CyNetwork network,
boolean register)
Creates a CyGroup object in the referenced network.
|
CyGroup |
createGroup(CyNetwork network,
CyNode node,
boolean register)
Creates a CyGroup object in the referenced network from
an existing
CyNode. |
CyGroup |
createGroup(CyNetwork network,
CyNode node,
List<CyNode> nodes,
List<CyEdge> edges,
boolean register)
Creates a CyGroup object in the referenced network from
an existing
CyNode. |
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.
|
CyGroup createGroup(CyNetwork network, boolean register)
CyGroup createGroup(CyNetwork network, List<CyNode> nodes, List<CyEdge> edges, boolean register)
network - the CyNetwork this group is part ofnodes - the CyNodes that are part of this group.edges - the CyEdges that are part of this group.
If this is null, the edges are determined based
on the node connectivityregister - if true, register the CyGroupCyGroup as part of the designated network.CyGroup createGroup(CyNetwork network, CyNode node, List<CyNode> nodes, List<CyEdge> edges, boolean register)
CyNode.network - the CyNetwork this group is part ofnode - the CyNode to convert into a groupnodes - the CyNodes that are part of this group.edges - the CyEdges that are part of this group.
If this is null, the edges are determined based
on the node connectivityregister - if true, register the CyGroupCyGroup as part of the designated network.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.