org.scijava.plugin
Class AbstractWrapperPlugin<D>

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.plugin.AbstractTypedPlugin<D>
              extended by 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 WrapperPlugins.

Author:
Curtis Rueden

Constructor Summary
AbstractWrapperPlugin()
           
 
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.
 
Methods inherited from class org.scijava.plugin.AbstractTypedPlugin
supports
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority, toString
 
Methods inherited from class org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Typed
getType, supports
 

Constructor Detail

AbstractWrapperPlugin

public AbstractWrapperPlugin()
Method Detail

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.