Package org.cytoscape.filter.model
Interface HolisticTransformer<C,E>
- Type Parameters:
C- The context type of the elements thisHolisticTransformeroperates on.E- The element type thisHolisticTransformeroperates on.
- All Superinterfaces:
Transformer<C,E>
A transformer that takes its input altogether, transforms it, and pushes
the results into the given sink.
To make a custom
HolisticTransformer
available in Cytoscape, create an HolisticTransformerFactory that
constructs the custom HolisticTransformer, 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
HolisticTransformer, HolisticTransformerFactory and
TransformerViewFactory
need to have the same id.Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
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
Modifier and TypeMethodDescriptionvoidapply(C context, TransformerSource<C,E> source, TransformerSink<E> sink)Transforms the elements insourcefromcontext.Methods inherited from interface org.cytoscape.filter.model.Transformer
addListener, getContextType, getElementType, getId, getName, removeListener
-
Method Details
-
apply
Transforms the elements insourcefromcontext. The results of the transformation are collected bysink.- Parameters:
context- the context object of the transformed element.source- provides the elements to transform.sink- collects the results of the transformation.
-