Package org.cytoscape.group.data
Interface CyGroupAggregationManager
public interface CyGroupAggregationManager
The CyGroupAggregationManager provides a mechanism to add new
Aggregators to the group aggregation mechanism. It is
meant to be used by apps that want to extend the aggregation
mechanism for types not supported by the built-in aggregators.
Cytoscape Backwards Compatibility (API Class): We expect that this class will be used but not inherited by developers using this class. As such, we reserve the right to add methods to the class as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
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>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAggregator(Aggregator<?> aggregator)
Add a new aggregator to the available aggregators.List<Aggregator<?>>
Get the list of aggregators.List<Aggregator<?>>
getAggregators(Class<?> type)
Get the list of aggregators for a particular Class.List<Aggregator<?>>
Get the list of aggregators for List columns.List<Aggregator<?>>
getListAggregators(Class<?> type)
Get the list of List aggregators for a particular Class.Get the list of classes for which have aggregators.Get the list of classes of List for which have aggregators.void
removeAggregator(Aggregator<?> aggregator)
Remove an aggregator from the available aggregators.
-
Method Details
-
addAggregator
Add a new aggregator to the available aggregators. Aggregators provide a specific aggregation algorithm for a specific CyColumn type.- Parameters:
aggregator
- theAggregator
-
removeAggregator
Remove an aggregator from the available aggregators.- Parameters:
aggregator
- theAggregator
to remove
-
getAggregators
Get the list of aggregators for a particular Class.- Parameters:
type
- theClass
to get aggregators for- Returns:
- the list of aggregators
-
getListAggregators
Get the list of List aggregators for a particular Class.- Parameters:
type
- theClass
to get aggregators for- Returns:
- the list of aggregators
-
getAggregators
List<Aggregator<?>> getAggregators()Get the list of aggregators.- Returns:
- the list of aggregators
-
getListAggregators
List<Aggregator<?>> getListAggregators()Get the list of aggregators for List columns.- Returns:
- the list of aggregators
-
getSupportedClasses
Get the list of classes for which have aggregators.- Returns:
- the list of classes we're aggregating
-
getSupportedListClasses
Get the list of classes of List for which have aggregators.- Returns:
- the list of classes of List we're aggregating
-