org.scijava.plugin
Class AbstractRichPlugin

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, HasPluginInfo, RichPlugin, SciJavaPlugin, Prioritized
Direct Known Subclasses:
AbstractApp, AbstractGateway, AbstractService, AbstractTypedPlugin, SortablePlugin

public abstract class AbstractRichPlugin
extends AbstractContextual
implements RichPlugin

Abstract base class for RichPlugin implementations.

Author:
Curtis Rueden

Constructor Summary
AbstractRichPlugin()
           
 
Method Summary
 int compareTo(Prioritized that)
           
 PluginInfo<?> getInfo()
          Gets the PluginInfo metadata associated with the object.
 double getPriority()
          Gets the sort priority of the object.
 void setInfo(PluginInfo<?> info)
          Sets the PluginInfo metadata associated with the object.
 void setPriority(double priority)
          Sets the sort priority of the object.
 String 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
 

Constructor Detail

AbstractRichPlugin

public AbstractRichPlugin()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getPriority

public double getPriority()
Description copied from interface: Prioritized
Gets the sort priority of the object.

Specified by:
getPriority in interface Prioritized
See Also:
Priority

setPriority

public void setPriority(double priority)
Description copied from interface: Prioritized
Sets the sort priority of the object.

Specified by:
setPriority in interface Prioritized
See Also:
Priority

getInfo

public PluginInfo<?> getInfo()
Description copied from interface: HasPluginInfo
Gets the PluginInfo metadata associated with the object.

Specified by:
getInfo in interface HasPluginInfo

setInfo

public void setInfo(PluginInfo<?> info)
Description copied from interface: HasPluginInfo
Sets the PluginInfo metadata associated with the object.

Typically this method is called only once to populate the metadata, but subsequent calls are not explicitly forbidden.

Specified by:
setInfo in interface HasPluginInfo

compareTo

public int compareTo(Prioritized that)
Specified by:
compareTo in interface Comparable<Prioritized>


Copyright © 2009–2014 SciJava. All rights reserved.