T - - Parent type of this filter.public abstract class AbstractFilter<T> extends AbstractSCIFIOPlugin implements Filter
Filter implementations.
NB: the Prioritized.compareTo(org.scijava.Prioritized) implementation provided
produces a natural ordering in descending order of AbstractRichPlugin.getPriority().
NB: the setParent(Object) method can not be typed narrowed with
generics due to erasure. Type checking is performed during this call,
however, to guarantee type safety for the cached parent instance. An
IllegalArgumentException will be thrown if provided the wrong type of
parent for this filter.
Filter| Constructor and Description |
|---|
AbstractFilter(Class<? extends T> parentClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enabledDefault() |
T |
getParent()
Returns the object this filter augments.
|
boolean |
isCompatible(Class<?> c)
Returns true if this filter is capable of wrapping instances of the
provided class.
|
void |
reset()
Clears any configuration performed on this filter.
|
void |
setParent(Object parent)
Sets the object which this filter augments.
|
getVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic boolean enabledDefault()
enabledDefault in interface Filterpublic T getParent()
Filterpublic void setParent(Object parent)
Filterpublic void reset()
Filterpublic boolean isCompatible(Class<?> c)
FilterisCompatible in interface Filterc - - Class to check compatibilityCopyright © 2011–2026 SCIFIO. All rights reserved.