Class WKTPlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- com.vividsolutions.jump.workbench.ui.plugin.WKTPlugIn
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled
- Direct Known Subclasses:
AddNewFeaturesPlugIn,EditSelectedFeaturePlugIn
public abstract class WKTPlugIn extends AbstractPlugIn
Base class for PlugIns that ask the user to enter Well-Known Text.
-
-
Field Summary
Fields Modifier and Type Field Description protected Layerlayer-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description WKTPlugIn()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidapply(FeatureCollection c, PlugInContext context)protected voidapply(String wkt, PlugInContext context)protected EnterWKTDialogcreateDialog(PlugInContext context)booleanexecute(PlugInContext context)Execute the PlugIn.protected abstract Layerlayer(PlugInContext context)-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getEnableCheck, getIcon, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, initialize, isRollingBackInvalidEdits, isShortcutEnabled, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Field Detail
-
layer
protected Layer layer
-
-
Method Detail
-
layer
protected abstract Layer layer(PlugInContext context)
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from class:AbstractPlugInExecute the PlugIn.- Specified by:
executein interfacePlugIn- Overrides:
executein classAbstractPlugIn- Parameters:
context- context of this PlugIn- Returns:
- true if the PlugIn has been executed
- Throws:
Exception- if an Exception occurs during execution- See Also:
ThreadedPlugIn
-
apply
protected abstract void apply(FeatureCollection c, PlugInContext context) throws WorkbenchException
- Throws:
WorkbenchException
-
createDialog
protected EnterWKTDialog createDialog(PlugInContext context)
-
apply
protected void apply(String wkt, PlugInContext context) throws Exception
- Throws:
Exception
-
-