|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
C
- The context type of the elements this Filter
operates on.E
- The element type this Filter
operates on.public interface Filter<C,E>
A transformer that decides whether to accept or reject elements.
To make a custom Filter
available in Cytoscape, create an FilterFactory
that
constructs the custom Filter
, and register the factory
as an OSGi service. To make the transformer show up in the UI, create a
TransformerViewFactory
and register it as an OSGi service. The
Filter
, FilterFactory
and
TransformerViewFactory
need to have the same id.
Module: filter-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>filter-api</artifactId> </dependency>
Method Summary | |
---|---|
boolean |
accepts(C context,
E element)
Returns true if this filter accepts the given element from
context . |
Methods inherited from interface org.cytoscape.filter.model.Transformer |
---|
addListener, getContextType, getElementType, getId, getName, removeListener |
Method Detail |
---|
boolean accepts(C context, E element)
true
if this filter accepts the given element from
context
.
context
- the context object of the transformed element.element
- the element to transform.
true
if this filter accepts the given element.
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |