public abstract class MainButtonPlugIn extends ThreadedBasePlugIn
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERATED_KEY |
| Constructor and Description |
|---|
MainButtonPlugIn(String taskMonitorTitle,
Component toolboxPanel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
protected Layer |
generateLayer(String name,
String category,
Color color,
LayerManagerProxy proxy,
FeatureCollection featureCollection,
String description) |
protected Layer |
generateLineLayer(String name,
String category,
Color color,
LayerManagerProxy proxy,
FeatureCollection featureCollection,
String description) |
String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
protected void |
removeAndDisposeLayer(String name,
PlugInContext context) |
abstract String |
validateInput() |
maincreateName, execute, execute, initialize, isRollingBackInvalidEdits, reportNothingToUndoYet, toActionListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitruninitializepublic static final String GENERATED_KEY
public String getName()
PlugIngetName in interface PlugIngetName in class AbstractPlugInprotected Layer generateLayer(String name, String category, Color color, LayerManagerProxy proxy, FeatureCollection featureCollection, String description)
protected Layer generateLineLayer(String name, String category, Color color, LayerManagerProxy proxy, FeatureCollection featureCollection, String description)
public boolean execute(PlugInContext context) throws Exception
PlugInfalse to prevent the run method
from being called.execute in interface PlugInexecute in class AbstractPlugInException - if a problem occurs during plug-in executionThreadedPlugInprotected void removeAndDisposeLayer(String name, PlugInContext context)
public abstract String validateInput()
Copyright © 2015. All rights reserved.