C
- The context type of the elements this Transformer
operates on.E
- The element type this Transformer
operates on.public abstract class AbstractTransformer<C,E> extends Object implements Transformer<C,E>
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>
Constructor and Description |
---|
AbstractTransformer()
Creates a new AbstractTransformer.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(TransformerListener listener)
Subscribes the given listener to changes in this
Transformer 's
parameters. |
protected void |
notifyListeners()
Notifies any registered listeners that this transformer's settings
have changed.
|
void |
removeListener(TransformerListener listener)
Unsubscribes the given listener from changes in this
Transformer 's
parameters. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextType, getElementType, getId, getName
public AbstractTransformer()
public final void addListener(TransformerListener listener)
Transformer
Transformer
's
parameters.addListener
in interface Transformer<C,E>
listener
- the object that should be notified of changes to this
Transformer
.public final void removeListener(TransformerListener listener)
Transformer
Transformer
's
parameters.removeListener
in interface Transformer<C,E>
listener
- the object that should no longer be notified of changes
to this Transformer
.protected final void notifyListeners()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.