Interfaces for creating new filter classes.
Create a new Filter
- Create a new module and set
FilterAPI
, GraphAPI
and UtilitiesAPI
as dependencies.
- Create a new builder class by implementing
FilterBuilder
,
this class is basically a factory that will create filter instances
on demand.
- Add @ServiceProvider annotation to your builder, that it can
be found by the system. Set
FilterBuilder
as the
annotation parameter.
- Create a new class that implements either
NodeFilter
,
EdgeFilter
or ComplexFilter
.
- Fill
getProperties()
method in your filter, it should
expose all properies that can be set by users and have an influence
on the filter execution.
- If you need a user interface for your filter, fill
getPanel()
method in the builder.