use of org.gephi.filters.spi.CategoryBuilder in project gephi by gephi.
the class FilterLibraryImpl method buildBuildersMap.
private void buildBuildersMap() {
for (FilterBuilder builder : lookup.lookupAll(FilterBuilder.class)) {
try {
Filter f = builder.getFilter(workspace);
buildersMap.put(f.getClass(), builder);
builder.destroy(f);
} catch (Exception e) {
}
}
for (CategoryBuilder catBuilder : Lookup.getDefault().lookupAll(CategoryBuilder.class)) {
for (FilterBuilder builder : catBuilder.getBuilders(workspace)) {
try {
Filter f = builder.getFilter(workspace);
buildersMap.put(f.getClass(), builder);
builder.destroy(f);
} catch (Exception e) {
}
}
}
}
Aggregations