use of org.gephi.datalab.spi.rows.merge.AttributeRowsMergeStrategyBuilder in project gephi by gephi.
the class DataLaboratoryHelper method getAttributeRowsMergeStrategies.
/**
* <p>Prepares an array that has one new instance of every AttributeRowsMergeStrategy implementation that is registered.</p>
* <p>It also returns the manipulators ordered first by type and then by position.</p>
* @return Array of all AttributeRowsMergeStrategy implementations
*/
public AttributeRowsMergeStrategy[] getAttributeRowsMergeStrategies() {
ArrayList<AttributeRowsMergeStrategy> strategies = new ArrayList<>();
for (AttributeRowsMergeStrategyBuilder cs : Lookup.getDefault().lookupAll(AttributeRowsMergeStrategyBuilder.class)) {
strategies.add(cs.getAttributeRowsMergeStrategy());
}
sortManipulators(strategies);
return strategies.toArray(new AttributeRowsMergeStrategy[0]);
}
Aggregations