public interface Plugin extends PluginListener, ProgressListener, Runnable
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
myLogger |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PluginListener listener)
Adds listener to this plugin.
|
boolean |
cancel()
Attempt to cancel processing.
|
String |
getButtonName()
Button name for this plugin to be used in buttons, etc.
|
String |
getCitation()
Returns Citation for this plugin.
|
ImageIcon |
getIcon()
Icon for this plugin to be used in buttons, etc.
|
JMenu |
getMenu()
Returns menu that can be added to main menu bar.
|
JPanel |
getPanel()
GUI Panel for this plugin.
|
Object |
getParameter(Enum key)
Returns parameter value for given parameter key.
|
Object |
getParameter(String key)
Returns parameter value for given parameter key.
|
Frame |
getParentFrame()
Parent Frame for this plugin.
|
static Plugin |
getPluginInstance(String className,
Frame frame) |
static Plugin |
getPluginInstance(String className,
Frame frame,
boolean isInteractive)
Gets instance of Plugin
|
String |
getToolTipText()
Tool Tip Text for this plugin
|
String |
getUsage()
Gets the Usage Statement for this Plugin.
|
boolean |
isInteractive()
If interactive = true, the plugin will create dialogs and panels to
interacts with the user
|
static boolean |
isPlugin(String className)
Returns whether given class name is Plugin.
|
DataSet |
performFunction(DataSet input)
Performs function of this plugin.
|
String |
pluginDescription()
Returns description of the plugin.
|
String |
pluginUserManualURL()
Returns URL to User Manual.
|
DataSet |
processData(DataSet input)
For the new Generic Plugin Parameter design, performFunction() will
automatically call this.
|
void |
receiveInput(Plugin input)
Sets up this plugin to receive input from another plugin.
|
Plugin |
setParameter(PluginParameter<?> param,
Object value)
Sets parameter value for a given plugin
|
Plugin |
setParameter(String key,
Object value)
Sets parameter value for given parameter key.
|
Plugin |
setParameter(String key,
String value)
Sets parameter value for given parameter key.
|
void |
setParameters(String[] args)
Allows self-describing Plugins to use args to set parameters specific to
itself.
|
void |
setParametersToDefault()
Sets all parameter values to default.
|
void |
setThreaded(boolean threaded)
Set whether this plugin is threaded.
|
boolean |
wasCancelled() |
dataSetReturned, progress
progress
JMenu getMenu()
DataSet performFunction(DataSet input)
input
- inputDataSet processData(DataSet input)
input
- inputObject getParameter(Enum key)
key
- keyObject getParameter(String key)
key
- keyPlugin setParameter(PluginParameter<?> param, Object value)
param
- parametervalue
- valuePlugin setParameter(String key, Object value)
key
- keyvalue
- valuePlugin setParameter(String key, String value)
key
- keyvalue
- valuevoid setParametersToDefault()
void receiveInput(Plugin input)
input
- inputJPanel getPanel()
boolean isInteractive()
Frame getParentFrame()
ImageIcon getIcon()
String getButtonName()
String getToolTipText()
void addListener(PluginListener listener)
listener
- listener to addvoid setThreaded(boolean threaded)
threaded
- whether to be threaded.boolean cancel()
void setParameters(String[] args)
args
- argumentsString getCitation()
String pluginDescription()
String pluginUserManualURL()
String getUsage()
boolean wasCancelled()
static Plugin getPluginInstance(String className, Frame frame, boolean isInteractive)
className
- class nameframe
- frame (can be null)isInteractive
- is interactivestatic boolean isPlugin(String className)
className
- class nameCopyright © 2018. All rights reserved.