org.scijava.plugin
Class AbstractWrapperPlugin<D>
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
org.scijava.plugin.AbstractWrapperPlugin<D>
- Type Parameters:
D
- Data type wrapped by the plugin.
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, HasPluginInfo, RichPlugin, SciJavaPlugin, TypedPlugin<D>, WrapperPlugin<D>, Prioritized, Typed<D>
- Direct Known Subclasses:
- AbstractInputWidget
public abstract class AbstractWrapperPlugin<D>
- extends AbstractTypedPlugin<D>
- implements WrapperPlugin<D>
Abstract base class for WrapperPlugin
s.
- Author:
- Curtis Rueden
Method Summary |
D |
get()
Gets the data object currently associated with this plugin. |
void |
set(D data)
Associates the given data object with this plugin. |
AbstractWrapperPlugin
public AbstractWrapperPlugin()
set
public void set(D data)
- Description copied from interface:
WrapperPlugin
- Associates the given data object with this plugin. It must be a compatible
object (i.e.,
Typed.supports(T)
must return true).
- Specified by:
set
in interface WrapperPlugin<D>
- Parameters:
data
- The data object to associate with the plugin.
get
public D get()
- Description copied from interface:
WrapperPlugin
- Gets the data object currently associated with this plugin.
- Specified by:
get
in interface WrapperPlugin<D>
Copyright © 2009–2014 SciJava. All rights reserved.