C
- The context type of the elements this Transformer
operates on.E
- The element type this Transformer
operates on.public interface Transformer<C,E>
Transformer
must be a subset of the elements of its context.
However, the output need not be a subset of its input.
The input and output mechanisms of Transformers are defined by the
subinterfaces HolisticTransformer
, ElementTransformer
, and
Filter
.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>
Modifier and Type | Method and Description |
---|---|
void |
addListener(TransformerListener listener)
Subscribes the given listener to changes in this
Transformer 's
parameters. |
Class<C> |
getContextType()
Returns the type of the context object this
Transformer is
compatible with. |
Class<E> |
getElementType()
Returns the type of the elements this
Transformer is
compatible with. |
String |
getId()
Returns the unique id of this type of
Transformer . |
String |
getName()
Returns the user-friendly display name of this type of
Transformer . |
void |
removeListener(TransformerListener listener)
Unsubscribes the given listener from changes in this
Transformer 's
parameters. |
String getName()
Transformer
.Transformer
.String getId()
Transformer
.Transformer
.Class<C> getContextType()
Transformer
is
compatible with.Class<E> getElementType()
Transformer
is
compatible with.void addListener(TransformerListener listener)
Transformer
's
parameters.listener
- the object that should be notified of changes to this
Transformer
.void removeListener(TransformerListener listener)
Transformer
's
parameters.listener
- the object that should no longer be notified of changes
to this Transformer
.Copyright 2011 Cytoscape Consortium. All rights reserved.