|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.unex.sextante.gui.core.SextanteGUI
public class SextanteGUI
This class centralizes most actions related to the SextanteGUI, containing methods to show dialogs and retrieve basic values used by GUI elements
Constructor Summary | |
---|---|
SextanteGUI()
|
Method Summary | |
---|---|
static IGUIFactory |
getGUIFactory()
Returns the current GUIFactory |
static java.lang.String |
getHelpPath()
Returns the path to help files |
static IInputFactory |
getInputFactory()
Returns the current input factory @see IInputFactory. |
static javax.swing.JDialog |
getLastActiveDialog()
|
static java.awt.Frame |
getMainFrame()
Returns the current main frame |
static java.lang.String |
getModelsFolder()
Returns the models folder |
static OutputFactory |
getOutputFactory()
Returns the current OutputFactory |
static java.lang.Runnable |
getPostProcessTask(GeoAlgorithm alg)
Returns the task to post-process the algorithm outputs, usually to add them to the GUI of the GIS app. |
static java.util.ArrayList<java.lang.String> |
getWpsURLs()
Returns a list of URLs with WPS processes |
static void |
initialize()
Initializes the needed configuration values for the GUI |
static void |
saveSettings()
Saves current settings to the config file |
static void |
setGUIFactory(IGUIFactory guiFactory)
sets a new GUI factory |
static void |
setHelpPath(java.lang.String sPath)
Sets the current path to help files |
static void |
setInputFactory(IInputFactory inputFactory)
Sets a new input factory as the current one |
static void |
setLastActiveDialog(javax.swing.JDialog dialog)
|
static void |
setMainFrame(java.awt.Frame frame)
Sets a new main frame. |
static void |
setModelsFolder(java.lang.String sModelsFolder)
Sets the models folder |
static void |
setOutputFactory(OutputFactory outputFactory)
sets a new output factory |
static void |
setPostProcessTaskFactory(IPostProcessTaskFactory factory)
Sets the current post process task factory |
static void |
setWpsURLs(java.util.ArrayList<java.lang.String> list)
Sets a new list of WPS URLs |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SextanteGUI()
Method Detail |
---|
public static void setMainFrame(java.awt.Frame frame)
frame
- The main framepublic static java.awt.Frame getMainFrame()
public static IInputFactory getInputFactory()
public static void setInputFactory(IInputFactory inputFactory)
inputFactory
- the new input factorypublic static OutputFactory getOutputFactory()
public static void setOutputFactory(OutputFactory outputFactory)
outputFactory
- the new output factorypublic static IGUIFactory getGUIFactory()
public static void setGUIFactory(IGUIFactory guiFactory)
guiFactory
- the new GUI factorypublic static java.lang.Runnable getPostProcessTask(GeoAlgorithm alg)
alg
- the algorithm to postprocess. Since this task will mainly deal with output
results, the algorithm should have been previously executed, so it contains
non-null output values
public static void setPostProcessTaskFactory(IPostProcessTaskFactory factory)
factory
- the new post-process task factorypublic static void initialize()
public static java.lang.String getHelpPath()
public static void setHelpPath(java.lang.String sPath)
sPath
- the path to help filespublic static java.lang.String getModelsFolder()
public static void setModelsFolder(java.lang.String sModelsFolder)
sModelsFolder
- the new model folderpublic static void setWpsURLs(java.util.ArrayList<java.lang.String> list)
list
- the list of WPS URLspublic static java.util.ArrayList<java.lang.String> getWpsURLs()
public static void saveSettings()
public static javax.swing.JDialog getLastActiveDialog()
public static void setLastActiveDialog(javax.swing.JDialog dialog)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |