public class FilterLibraryImpl extends Object implements FilterLibrary
ATTRIBUTES, EDGE, TOPOLOGY| Constructor and Description |
|---|
FilterLibraryImpl(Workspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBuilder(FilterBuilder builder)
Adds
builder to this library. |
void |
deleteQuery(Query query)
Delete a saved
query from the library. |
FilterBuilder |
getBuilder(Filter filter)
Returns the builder that has created
filter. |
org.openide.util.Lookup |
getLookup()
Returns this library's lookup.
|
void |
registerMask(FilterLibraryMask mask)
Registers
mask as a new FilterLibraryMask. |
void |
removeBuilder(FilterBuilder builder)
Removes
builder from this library. |
void |
saveQuery(Query query)
Save
query in the library in order it can be reused. |
void |
unregisterMask(FilterLibraryMask mask)
Unregisters
mask in the library. |
public FilterLibraryImpl(Workspace workspace)
public org.openide.util.Lookup getLookup()
FilterLibraryFilterBuilder: Builders, these are building filters.CategoryBuilder: Category builders, these are building.
categories, i.e. filters containers.FilterLibraryMask: Masks, for enable/disable categories
according to the context.Query: Saved queries, look at FilterController
for active queries.FilterBuilder in the library can be
obtained by doing the following command:
FilterLibrary.getLookup().lookupAll(FilterBuilder.class);
getLookup in interface FilterLibrarygetLookup in interface org.openide.util.Lookup.Providerpublic void addBuilder(FilterBuilder builder)
FilterLibrarybuilder to this library.addBuilder in interface FilterLibrarybuilder - the builder that is to be addedpublic void removeBuilder(FilterBuilder builder)
FilterLibrarybuilder from this library.removeBuilder in interface FilterLibrarybuilder - the builder that is to be removedpublic void registerMask(FilterLibraryMask mask)
FilterLibrarymask as a new FilterLibraryMask. Such
masks have categories enable/disable flag. Useful to disable for instance
filters for undirected graphs when the current graph is directed.registerMask in interface FilterLibrarymask - the mask that is to be registeredpublic void unregisterMask(FilterLibraryMask mask)
FilterLibrarymask in the library. The mask will no longer be
used.unregisterMask in interface FilterLibrarymask - the mask that is to be unregisteredpublic FilterBuilder getBuilder(Filter filter)
FilterLibraryfilter.getBuilder in interface FilterLibraryfilter - the filter that the builder is to be returnedfilterpublic void saveQuery(Query query)
FilterLibraryquery in the library in order it can be reused. Saved
queries are saved to the project.saveQuery in interface FilterLibraryquery - the query that is to be savedpublic void deleteQuery(Query query)
FilterLibraryquery from the library. Deleted queries are
deleted from the project.deleteQuery in interface FilterLibraryquery - the query that is to be deletedCopyright © 2007–2017. All rights reserved.