| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSNAME |
static String |
PLUGIN |
| Constructor and Description |
|---|
PluginModule() |
PluginModule(Class<?> pluginClass)
Create an instance for a given plugin class.
|
PluginModule(String pluginClassName)
Create an instance for a given plugin class name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fromXML(String xml)
Restores component from XML string representation.
|
String[] |
getInputNames()
Gets input image names.
|
IPluginLauncher |
getLauncher()
Gets associated launcher
|
String |
getName()
Gets name of component.
|
String[] |
getOutputNames()
Gets output names.
|
void |
input(ItemWrapper image)
Furnish input image.
|
void |
input(ItemWrapper image,
String name)
Furnish input image
|
void |
setName(String name)
Sets name of component.
|
void |
setOutputListener(IOutputListener listener)
Listen for output image.
|
void |
setOutputListener(String name,
IOutputListener listener)
Listen for output image.
|
String |
toXML()
Saves component as XML string representation.
|
public static final String PLUGIN
public static final String CLASSNAME
public PluginModule()
public PluginModule(String pluginClassName) throws PluginClassException
pluginClassName - PluginClassExceptionpublic PluginModule(Class<?> pluginClass)
pluginClass - public String getName()
public void setName(String name)
public IPluginLauncher getLauncher()
IModulegetLauncher in interface IModulepublic String toXML()
public boolean fromXML(String xml)
public String[] getInputNames()
getInputNames in interface IModulepublic String[] getOutputNames()
getOutputNames in interface IModulepublic void input(ItemWrapper image)
public void input(ItemWrapper image, String name)
public void setOutputListener(IOutputListener listener)
setOutputListener in interface IModulelistener - public void setOutputListener(String name, IOutputListener listener)
setOutputListener in interface IModulename - listener - Copyright © 2015–2022 SciJava. All rights reserved.