public class AddGeometryAttributesPlugIn extends AbstractThreadedUiPlugIn
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_AREA |
static java.lang.String |
ADD_GEOMETRY_TYPE |
static java.lang.String |
ADD_LENGTH |
static java.lang.String |
ADD_NB_COMPONENTS |
static java.lang.String |
ADD_NB_HOLES |
static java.lang.String |
ADD_NB_POINTS |
static java.lang.String |
ADD_WKT |
static java.lang.String |
ADD_XY |
static java.lang.String |
ADD_Z |
static java.lang.String |
AREA |
static java.lang.String |
COMPUTE_ATTRIBUTES |
static java.lang.String |
GEOM_ATTRIBUTES |
static java.lang.String |
GEOM_TYPE |
static java.lang.String |
LAYER |
static java.lang.String |
LENGTH |
static java.lang.String |
NB_COMPONENTS |
static java.lang.String |
NB_HOLES |
static java.lang.String |
NB_POINTS |
static java.lang.String |
WKT |
static java.lang.String |
X |
static java.lang.String |
Y |
static java.lang.String |
Z |
enableCheck, workbenchContext
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
AddGeometryAttributesPlugIn() |
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 |
setAddArea(boolean addArea) |
void |
setAddGeometryType(boolean addGeometryType) |
void |
setAddLength(boolean addLength) |
void |
setAddNbComponents(boolean addNbComponents) |
void |
setAddNbHoles(boolean addNbHoles) |
void |
setAddNbPoints(boolean addNbPoints) |
void |
setAddWKT(boolean addWKT) |
void |
setAddXY(boolean addXY) |
void |
setAddZ(boolean addZ) |
void |
setLayer(java.lang.String sitesLayer) |
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 LAYER
public static java.lang.String X
public static java.lang.String Y
public static java.lang.String ADD_XY
public static java.lang.String Z
public static java.lang.String ADD_Z
public static java.lang.String NB_POINTS
public static java.lang.String ADD_NB_POINTS
public static java.lang.String NB_HOLES
public static java.lang.String ADD_NB_HOLES
public static java.lang.String NB_COMPONENTS
public static java.lang.String ADD_NB_COMPONENTS
public static java.lang.String LENGTH
public static java.lang.String ADD_LENGTH
public static java.lang.String AREA
public static java.lang.String ADD_AREA
public static java.lang.String GEOM_TYPE
public static java.lang.String ADD_GEOMETRY_TYPE
public static java.lang.String WKT
public static java.lang.String ADD_WKT
public static java.lang.String GEOM_ATTRIBUTES
public static java.lang.String COMPUTE_ATTRIBUTES
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 setLayer(java.lang.String sitesLayer)
public void setAddXY(boolean addXY)
public void setAddZ(boolean addZ)
public void setAddNbPoints(boolean addNbPoints)
public void setAddNbHoles(boolean addNbHoles)
public void setAddNbComponents(boolean addNbComponents)
public void setAddLength(boolean addLength)
public void setAddArea(boolean addArea)
public void setAddGeometryType(boolean addGeometryType)
public void setAddWKT(boolean addWKT)
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