public class SextanteGeoProcessManager extends Object implements GeoProcessManager, es.unex.sextante.gui.core.IAlgorithmProvider
GeoProcessManager
interface based on the
sextante library.Constructor and Description |
---|
SextanteGeoProcessManager()
Manager constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEditHelp()
Returns true if the help files associated with the algorithms from this provider can be edited by the user
|
Object |
getAlgorithmHelp(es.unex.sextante.core.GeoAlgorithm alg)
Returns the help associated with the passed algorithm as a HTML string or a URL
|
String |
getAlgorithmHelpFilename(es.unex.sextante.core.GeoAlgorithm alg,
boolean bForceCurrentLocale)
Returns the filename where the help for a given algorithm is stored
|
HashMap<String,es.unex.sextante.core.GeoAlgorithm> |
getAlgorithms()
Returns a map with algorithm command-line names as keys and geoalgorithms as values
|
HashMap<String,Class> |
getCustomModelerParameterPanels()
Returns a map of custom parameter panels.
|
HashMap<String,Class> |
getCustomParameterPanels()
Returns a map of custom modeler parameter panels.
|
ImageIcon |
getIcon()
Returns the icon to use for the algorithms provided by this provider
|
String |
getName()
Returns the name of the algorithm provider.
|
es.unex.sextante.gui.settings.Setting |
getSettings()
Returns the settings object corresponding to this provider
|
HashMap<es.unex.sextante.gui.core.NameAndIcon,ArrayList<es.unex.sextante.gui.core.ToolboxAction>> |
getToolboxActions()
Returns the toolbox actions to be added to the toolbox by this algorithm provider.
|
es.unex.sextante.gui.core.IToolboxRightButtonAction[] |
getToolboxRightButtonActions()
Return the right button actions to be added to the toolbox by this algorithm provider.
|
String |
getTranslation(String label)
Returns the translation for a label depending on the current locale.
|
void |
initialize()
Performs the initialization needed to load the corresponding algorithm into the algorithm provider
|
void |
registerGeoProcess(Class<? extends GeoProcess> geoProcessClazz,
Map<String,String> localeStrings)
Registers a new
GeoProcess . |
void |
registerGeoProcess(GeoProcess geoProcess)
Registers a new
GeoProcess . |
void |
update()
Updates the list of algorithms in this provider
|
public SextanteGeoProcessManager()
public String getTranslation(String label)
GeoProcessManager
getTranslation
in interface GeoProcessManager
label
- to translatepublic void registerGeoProcess(GeoProcess geoProcess)
GeoProcessManager
GeoProcess
.registerGeoProcess
in interface GeoProcessManager
geoProcess
- the GeoProcess
instancepublic void registerGeoProcess(Class<? extends GeoProcess> geoProcessClazz, Map<String,String> localeStrings)
GeoProcessManager
GeoProcess
.registerGeoProcess
in interface GeoProcessManager
geoProcessClazz
- the GeoProcess
classlocaleStrings
- the i18n strings used by the geoprocesspublic void initialize()
es.unex.sextante.gui.core.IAlgorithmProvider
initialize
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public String getName()
es.unex.sextante.gui.core.IAlgorithmProvider
getName
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public HashMap<String,es.unex.sextante.core.GeoAlgorithm> getAlgorithms()
es.unex.sextante.gui.core.IAlgorithmProvider
getAlgorithms
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public HashMap<String,Class> getCustomModelerParameterPanels()
es.unex.sextante.gui.core.IAlgorithmProvider
getCustomModelerParameterPanels
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public HashMap<String,Class> getCustomParameterPanels()
es.unex.sextante.gui.core.IAlgorithmProvider
getCustomParameterPanels
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public ImageIcon getIcon()
es.unex.sextante.gui.core.IAlgorithmProvider
getIcon
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public es.unex.sextante.gui.settings.Setting getSettings()
es.unex.sextante.gui.core.IAlgorithmProvider
getSettings
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public void update()
es.unex.sextante.gui.core.IAlgorithmProvider
update
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public Object getAlgorithmHelp(es.unex.sextante.core.GeoAlgorithm alg)
es.unex.sextante.gui.core.IAlgorithmProvider
getAlgorithmHelp
in interface es.unex.sextante.gui.core.IAlgorithmProvider
alg
- the algorithmpublic String getAlgorithmHelpFilename(es.unex.sextante.core.GeoAlgorithm alg, boolean bForceCurrentLocale)
es.unex.sextante.gui.core.IAlgorithmProvider
getAlgorithmHelpFilename
in interface es.unex.sextante.gui.core.IAlgorithmProvider
alg
- the algorithmbForceCurrentLocale
- if true it will return the current locale folder, even if the help file does not existspublic boolean canEditHelp()
es.unex.sextante.gui.core.IAlgorithmProvider
canEditHelp
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public HashMap<es.unex.sextante.gui.core.NameAndIcon,ArrayList<es.unex.sextante.gui.core.ToolboxAction>> getToolboxActions()
es.unex.sextante.gui.core.IAlgorithmProvider
getToolboxActions
in interface es.unex.sextante.gui.core.IAlgorithmProvider
public es.unex.sextante.gui.core.IToolboxRightButtonAction[] getToolboxRightButtonActions()
es.unex.sextante.gui.core.IAlgorithmProvider
getToolboxRightButtonActions
in interface es.unex.sextante.gui.core.IAlgorithmProvider