public interface MMPlugin extends MMGenericPlugin
org.micromanager.MenuPlugin
, for plugins that should appear
in the Plugins menu.
- org.micromanager.AutofocusPlugin
, for plugins that are used
to perform autofocus actions.
- org.micromanager.data.ProcessorPlugin
, for processing images
as they are collected.
- org.micromanager.display.OverlayPlugin
, for drawing on top of
image windows.
To cause your plugin to be loaded when the program runs, you need to do the
following:
- Create a class that implements one of the interfaces listed above and the
org.scijava.plugin.SciJavaPlugin
interface (which is an empty
interface).
- Annotate that class with the org.scijava.plugin.Plugin
annotation, with the type
parameter of that annotation being
the type of the interface your plugin implements.
- Place your plugin's jar file in the mmplugins directory of your ImageJ
installation.
The annotated plugin class should look something like this (assuming you
want a MenuPlugin
; replace with a different type as
appropriate):
import org.micromanager.MenuPlugin;
import org.scijava.plugin.Plugin;
import org.scijava.plugin.SciJavaPlugin
@Plugin(type = MenuPlugin.class)
public class MyPlugin implements MenuPlugin, SciJavaPlugin {
// ...plugin contents go here...
}
Note that all plugins must have a default (no-argument) constructor.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCopyright()
Provide a copyright string.
|
java.lang.String |
getHelpText()
Provide a longer string describing the purpose of the plugin.
|
java.lang.String |
getName()
Provide a short string identifying the plugin.
|
java.lang.String |
getVersion()
Provide a version string.
|
void |
setContext(Studio studio)
Receive the Studio object needed to make API calls.
|
void setContext(Studio studio)
studio
- instance of the Micro-Manager Studio objectjava.lang.String getName()
java.lang.String getHelpText()
java.lang.String getVersion()
java.lang.String getCopyright()