public abstract class MainButtonPlugIn extends ThreadedBasePlugIn
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GENERATED_KEY |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
MainButtonPlugIn(java.lang.String taskMonitorTitle,
java.awt.Component toolboxPanel) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
protected Layer |
generateLayer(java.lang.String name,
java.lang.String category,
java.awt.Color color,
LayerManagerProxy proxy,
FeatureCollection featureCollection,
java.lang.String description) |
protected Layer |
generateLineLayer(java.lang.String name,
java.lang.String category,
java.awt.Color color,
LayerManagerProxy proxy,
FeatureCollection featureCollection,
java.lang.String description) |
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
protected void |
removeAndDisposeLayer(java.lang.String name,
PlugInContext context) |
abstract java.lang.String |
validateInput() |
main
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, initialize, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
run
initialize
public MainButtonPlugIn(java.lang.String taskMonitorTitle, java.awt.Component toolboxPanel)
public java.lang.String getName()
PlugIn
getName
in interface PlugIn
getName
in class AbstractPlugIn
protected Layer generateLayer(java.lang.String name, java.lang.String category, java.awt.Color color, LayerManagerProxy proxy, FeatureCollection featureCollection, java.lang.String description)
protected Layer generateLineLayer(java.lang.String name, java.lang.String category, java.awt.Color color, LayerManagerProxy proxy, FeatureCollection featureCollection, java.lang.String description)
public boolean execute(PlugInContext context) throws java.lang.Exception
PlugIn
false
to prevent the run method
from being called.execute
in interface PlugIn
execute
in class AbstractPlugIn
java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
protected void removeAndDisposeLayer(java.lang.String name, PlugInContext context)
public abstract java.lang.String validateInput()