public Plugin extends PluginListener, ProgressListener
javax.swing.JMenu getMenu()
Returns menu that can be added to main menu bar.
DataSet performFunction(DataSet input)
Performs function of this plugin.
input - inputDataSet processData(DataSet input)
For the new Generic Plugin Parameter design, performFunction() will automatically call this. Therefore, coders of Plugins should override this instead of performFunction().
input - inputjava.lang.Object getParameter(java.lang.Enum key)
Returns parameter value for given parameter key.
key - keyjava.lang.Object getParameter(java.lang.String key)
Returns parameter value for given parameter key.
key - keyPlugin setParameter(PluginParameter<?> param, java.lang.Object value)
Sets parameter value for a given plugin
param - parametervalue - valuePlugin setParameter(java.lang.String key, java.lang.Object value)
Sets parameter value for given parameter key.
key - keyvalue - valuePlugin setParameter(java.lang.String key, java.lang.String value)
Sets parameter value for given parameter key.
key - keyvalue - valuevoid setParametersToDefault()
Sets all parameter values to default.
java.util.Map<java.lang.String,java.lang.String> pluginParameters()
Get map of plugin parameters. Key is command line name and value is current value.
void receiveInput(Plugin input)
Sets up this plugin to receive input from another plugin.
input - inputjavax.swing.JPanel getPanel()
GUI Panel for this plugin.
boolean isInteractive()
If interactive = true, the plugin will create dialogs and panels to interacts with the user
java.awt.Frame getParentFrame()
Parent Frame for this plugin. Can be null.
javax.swing.ImageIcon getIcon()
Icon for this plugin to be used in buttons, etc.
java.lang.String getButtonName()
Button name for this plugin to be used in buttons, etc.
java.lang.String getToolTipText()
Tool Tip Text for this plugin
void addListener(PluginListener listener)
Adds listener to this plugin.
listener - listener to addvoid setThreaded(boolean threaded)
Set whether this plugin is threaded.
threaded - whether to be threaded.boolean cancel()
Attempt to cancel processing.
void setParameters(java.lang.String[] args)
Allows self-describing Plugins to use args to set parameters specific to itself.
args - argumentsjava.lang.String getCitation()
Returns Citation for this plugin.
java.lang.String pluginDescription()
Returns description of the plugin.
java.lang.String pluginUserManualURL()
Returns URL to User Manual.
java.lang.String getUsage()
Gets the Usage Statement for this Plugin.
boolean wasCancelled()
static Plugin getPluginInstance(java.lang.String className, java.awt.Frame frame)
static Plugin getPluginInstance(java.lang.String className, java.awt.Frame frame, boolean isInteractive)
Gets instance of Plugin
className - class nameframe - frame (can be null)isInteractive - is interactivestatic boolean isPlugin(java.lang.String className)
Returns whether given class name is Plugin.
className - class name