public class FilterRegistry extends Object
Filters come from four possible sources. Built-In filters are created by the graphical console itself. Local filters are created and registered with the application lookup by the console plugins. User filters are defined by the user and stored in the "tracer/filters.xml" file in the graphical console home directory. Finally, additional filters might be provided by other subsystem connected to the buses (The mechanism for doing this has yet to be finalized).
Each filter has a short name and a (possibly the same) full name. The full name is the
short name prefixed by #BUILTIN, #LOCAL, USER, or nothing,
depending on the filter origin.
The getName() method of any filter object returns its full name. All public
methods of this class that take filter names as parameters also require full names.
Filters and filter factories registered with the lookup have their names modified to
add the #LOCAL prefix.
| Modifier and Type | Method and Description |
|---|---|
MessageFilter |
createFilter(InstanceDialog.Descriptor descriptor) |
MessageFilter |
createFilter(String code) |
MessageFilter |
createFilter(String path,
String[] parameters) |
void |
deleteFilter(String name)
Deletes user-defined filter from local storage.
|
MessageFilter |
getFilter(String name)
Returns the filter specified by the name.
|
void |
saveFilter(UserFilter filter)
Saves user-defined filter to local storage.
|
MessageFilter |
selectFilter(Component parent) |
String |
selectFilterCode(Component parent) |
public MessageFilter getFilter(String name)
name - Full name of the required filter.null if there is no such filter.IllegalArgumentException - if the filter cannot be found or created.public void saveFilter(UserFilter filter) throws IOException
filter - Filter to be saved.IOException - if the filter cannot be saved.public void deleteFilter(String name) throws IOException
name - Full name of the filter to be deleted.IOException - if the filter cannot be deleted.public MessageFilter selectFilter(Component parent)
public MessageFilter createFilter(String path, String[] parameters)
public MessageFilter createFilter(InstanceDialog.Descriptor descriptor)
public MessageFilter createFilter(String code)
Copyright © 2018 LSST. All rights reserved.