public class ShowTriangulationPlugIn extends AbstractPlugIn
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESTINATION_LAYER_NAME |
static java.lang.String |
SOURCE_LAYER_NAME |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
ShowTriangulationPlugIn(WarpingPanel warpingPanel) |
Modifier and Type | Method and Description |
---|---|
UndoableCommand |
addLayerGeneration(UndoableCommand wrappeeCommand,
WorkbenchContext context,
boolean createLayersIfNonExistent) |
static UndoableCommand |
addUndo(UndoableCommand wrappeeCommand,
LayerManagerProxy proxy) |
EnableCheck |
createEnableCheck(WorkbenchContext context) |
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
javax.swing.Icon |
getIcon() |
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
|
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static final java.lang.String SOURCE_LAYER_NAME
public static final java.lang.String DESTINATION_LAYER_NAME
public ShowTriangulationPlugIn(WarpingPanel warpingPanel)
public void initialize(PlugInContext context) throws java.lang.Exception
PlugIn
initialize
in interface PlugIn
initialize
in class AbstractPlugIn
java.lang.Exception
public EnableCheck createEnableCheck(WorkbenchContext context)
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
public UndoableCommand addLayerGeneration(UndoableCommand wrappeeCommand, WorkbenchContext context, boolean createLayersIfNonExistent)
public static UndoableCommand addUndo(UndoableCommand wrappeeCommand, LayerManagerProxy proxy)
public javax.swing.Icon getIcon()