C- The context type of the elements this
E- The element type this
public interface HolisticTransformer<C,E> extends Transformer<C,E>
HolisticTransformeravailable in Cytoscape, create an
HolisticTransformerFactorythat constructs the custom
HolisticTransformer, and register the factory as an OSGi service. To make the transformer show up in the UI, create a
TransformerViewFactoryand register it as an OSGi service. The
TransformerViewFactoryneed to have the same id.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>filter-api</artifactId> </dependency>
|Modifier and Type||Method and Description|
Transforms the elements in
addListener, getContextType, getElementType, getId, getName, removeListener
void apply(C context, TransformerSource<C,E> source, TransformerSink<E> sink)
context. The results of the transformation are collected by
context- the context object of the transformed element.
source- provides the elements to transform.
sink- collects the results of the transformation.
Copyright 2011 Cytoscape Consortium. All rights reserved.