Search in sources :

Example 1 with CategoryBuilder

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) {
            }
        }
    }
}
Also used : Filter(org.gephi.filters.spi.Filter) FilterBuilder(org.gephi.filters.spi.FilterBuilder) CategoryBuilder(org.gephi.filters.spi.CategoryBuilder)

Aggregations

CategoryBuilder (org.gephi.filters.spi.CategoryBuilder)1 Filter (org.gephi.filters.spi.Filter)1 FilterBuilder (org.gephi.filters.spi.FilterBuilder)1