|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransformerManager
A class for creating and executing Transformers.
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 | ||
---|---|---|
|
createCompositeFilter(Class<C> contextType,
Class<E> elementType)
Returns a new empty CompositeFilter that selects elements of type
elementType from an object of type contextType . |
|
|
createTransformer(String id)
Returns a new Transformer with the given id . |
|
|
execute(C context,
List<Transformer<C,E>> transformers,
TransformerSink<E> sink)
Applies the given chain of transformers to the context . |
|
|
execute(C context,
Transformer<C,E> transformer,
TransformerSink<E> sink)
Applies transformer to the context . |
|
|
execute(C context,
TransformerSource<C,E> source,
List<Transformer<C,E>> transformers,
TransformerSink<E> sink)
Applies the given chain of transformers to the context , via
source . |
|
|
getTransformerSource(Class<C> contextType)
Returns a TransformerSource for the given contextType. |
Method Detail |
---|
<C,E> CompositeFilter<C,E> createCompositeFilter(Class<C> contextType, Class<E> elementType)
CompositeFilter
that selects elements of type
elementType
from an object of type contextType
.
contextType
- The type of the context this filter selects from.elementType
- The type of the elements this filter selects.
CompositeFilter
.<C,E> TransformerSource<C,E> getTransformerSource(Class<C> contextType)
TransformerSource
for the given contextType.
contextType
- The type of the context object the TransformerSource
should produce an element stream for.
<C,E> Transformer<C,E> createTransformer(String id)
id
. See Transformers
for a list of the ids of the transformers that are part of the Cytoscape
core.
id
- the unique id of the type of Transformer to create.
id
.<C,E> void execute(C context, Transformer<C,E> transformer, TransformerSink<E> sink)
transformer
to the context
. The results
of the transformation are collected by sink
.
context
- the object whose elements should be transformed.transformer
- the Transformer
that should be applied.sink
- collects the results of the transformation.<C,E> void execute(C context, List<Transformer<C,E>> transformers, TransformerSink<E> sink)
transformers
to the context
.
The results of the transformation are collected by sink
.
context
- the object whose elements should be transformed.transformers
- the Transformer
s that should be applied.sink
- collects the results of the transformation.<C,E> void execute(C context, TransformerSource<C,E> source, List<Transformer<C,E>> transformers, TransformerSink<E> sink)
transformers
to the context
, via
source
. The source
determines which elements are passed to the
transformers
. The results of the transformation are collected by sink
.
context
- the object whose elements should be transformed.source
- determines which elements are taken from the context.transformers
- the Transformer
s that should be applied.sink
- collects the results of the transformation.
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |