public class TriangulationPlugIn extends AbstractThreadedUiPlugIn
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONSTRAINTS_LAYER |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
INTERIOR_ONLY |
static Layer |
NO_CONSTRAINT |
static java.lang.String |
SITES_LAYER |
static java.lang.String |
TOLERANCE |
static java.lang.String |
TRIANGULATE |
static java.lang.String |
TRIANGULATED |
enableCheck, workbenchContext
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
TriangulationPlugIn() |
Modifier and Type | Method and Description |
---|---|
static MultiEnableCheck |
createEnableCheck(WorkbenchContext workbenchContext) |
boolean |
execute(PlugInContext context)
Method to be overridden by implementations to execute the plug-in.
|
void |
initialize(PlugInContext context)
Method to be overridden by implementations to initialize the plug-in.
|
void |
run(TaskMonitor monitor,
PlugInContext context)
Runs the task.
|
void |
setConstraintsLayer(java.lang.String constraintsLayer) |
void |
setPolygonInteriorOnly(boolean polygonInteriorOnly) |
void |
setSitesLayer(java.lang.String sitesLayer) |
void |
setTolerance(double tolerance) |
actionPerformed, getEnableCheck, getIcon, getName, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isShortcutEnabled, registerShortcuts, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static java.lang.String TRIANGULATE
public static java.lang.String TRIANGULATED
public static java.lang.String SITES_LAYER
public static java.lang.String CONSTRAINTS_LAYER
public static java.lang.String INTERIOR_ONLY
public static java.lang.String TOLERANCE
public static java.lang.String DESCRIPTION
public static Layer NO_CONSTRAINT
public void initialize(PlugInContext context) throws java.lang.Exception
AbstractUiPlugIn
initialize
in interface PlugIn
initialize
in class AbstractUiPlugIn
context
- The plug-in context.java.lang.Exception
public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
public boolean execute(PlugInContext context) throws java.lang.Exception
AbstractUiPlugIn
execute
in interface PlugIn
execute
in class AbstractUiPlugIn
context
- The plug-in context.java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
public void setSitesLayer(java.lang.String sitesLayer)
public void setConstraintsLayer(java.lang.String constraintsLayer)
public void setPolygonInteriorOnly(boolean polygonInteriorOnly)
public void setTolerance(double tolerance)
public void run(TaskMonitor monitor, PlugInContext context) throws java.lang.Exception
ThreadedPlugIn
monitor
- context to which this task can report its progress and
check whether a party has requested its cancellationjava.lang.Exception