Package org.gephi.filters.spi
Interface FilterBuilder
-
public interface FilterBuilderFilter builder, creatingFilterinstances for a single type of filters. Provides also the settings panel for the type of filter.Implementors should add the
@ServiceProviderannotation to be registered by the system or callFilterLibrary.addBuilder().The
JPanelreturned by thegetPanel()method is the settings panel that configures the filter parameters. These parameters can be get and set by usingFilter.getProperties(). Settings panel should always set parameters values in that way. As a result the system will be aware values changed and update the filter.See
CategoryBuilderfor builders that host multiple types of filters.- Author:
- Mathieu Bastian
- See Also:
FilterLibrary
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy(Filter filter)Notification when the filter is destroyed, to perform clean-up tasks.CategorygetCategory()Returns the category this filter builder belongs to.StringgetDescription()Returns this description text of this filter builderFiltergetFilter(Workspace workspace)Builds a newFilterinstance.IcongetIcon()Returns the icon of this filter builderStringgetName()Returns the display name of this filter builderJPanelgetPanel(Filter filter)Returns the settings panel for the filter this builder is building, thefilterobject is passed as a parameter.
-
-
-
Method Detail
-
getCategory
Category getCategory()
Returns the category this filter builder belongs to.- Returns:
- the category this builder belongs to
-
getName
String getName()
Returns the display name of this filter builder- Returns:
- the display name
-
getIcon
Icon getIcon()
Returns the icon of this filter builder- Returns:
- the icon
-
getDescription
String getDescription()
Returns this description text of this filter builder- Returns:
- the description
-
getFilter
Filter getFilter(Workspace workspace)
Builds a newFilterinstance.- Parameters:
workspace- workspace- Returns:
- a new
Filterobject
-
getPanel
JPanel getPanel(Filter filter)
Returns the settings panel for the filter this builder is building, thefilterobject is passed as a parameter.- Parameters:
filter- the filter that the panel is to be configuring- Returns:
- the filter's settings panel
-
destroy
void destroy(Filter filter)
Notification when the filter is destroyed, to perform clean-up tasks.- Parameters:
filter- filter to be destroyed
-
-