public class Application extends Object
TitledPane
for each tool,
which may be expanded to enter parameter values, which also triggers collapsing the parameter lists of all other tools.
In the header of each tool, a help button is shown, which triggers display of the corresponding HelpViewer
.
The ResultRepositoryRenderer
and the Application.FXProtocol
are displayed in tabs at the bottom right of the main window.
A pane for displaying results is rendered at the top right of the main window.
A bottom bar displays the current progress of a running tool, allows for opening a list of all scheduled tasks,
and provides buttons for saving and loading the workspace.Modifier and Type | Class and Description |
---|---|
class |
Application.FXProtocol
Class for a protocol displayed in the JavaFX GUI as a
TextFlow . |
static class |
Application.ToolReady
Class that tests if all required parameter values have been set for a
JstacsTool via Parameter.hasDefaultOrIsSet() . |
Modifier and Type | Field and Description |
---|---|
static Window |
mainWindow
The main window of the current
Application . |
Constructor and Description |
---|
Application(String title,
boolean showStackTraceInProtocol,
JstacsTool... tools)
Creates a new
Application with the provided title in the main window for
the given JstacsTool s. |
Application(String title,
JstacsTool... tools)
Creates a new
Application with the provided title in the main window for
the given JstacsTool s. |
Modifier and Type | Method and Description |
---|---|
void |
setParametersFromCopy(ToolResult res)
Sets the parameter values of one of the
JstacsTool s to those
that are stored in the provided ToolResult . |
void |
startApplication(Stage primaryStage)
Starts the Application without a splash window.
|
void |
startWithSplash(Stage primaryStage,
String message)
Starts the
Application displaying a splash window until the main window
is fully loaded. |
public static Window mainWindow
Application
.public Application(String title, JstacsTool... tools)
Application
with the provided title in the main window for
the given JstacsTool
s.title
- the title of the main windowtools
- the tools used in this applicationpublic Application(String title, boolean showStackTraceInProtocol, JstacsTool... tools)
Application
with the provided title in the main window for
the given JstacsTool
s.title
- the title of the main windowshowStackTraceInProtocol
- if stack traces of Exception
s that are thrown by JstacsTool
show be shown as warnings in the protocoltools
- the tools used in this applicationpublic void setParametersFromCopy(ToolResult res)
JstacsTool
s to those
that are stored in the provided ToolResult
. This allows tools to
be re-run with identical or modified parameters.res
- the ToolResult
containing the parameters of the previous runpublic void startWithSplash(Stage primaryStage, String message)
Application
displaying a splash window until the main window
is fully loaded. This is especially useful if the workspace is automatically stored
to disk, as re-loading of the workspace may take substantial time for larger workspaces.primaryStage
- the primary stage forwarded from Application.start(Stage)
message
- the message displayed in the splash windowpublic void startApplication(Stage primaryStage) throws Exception
primaryStage
- the primary stage forwarded from Application.start(Stage)
Exception
- if the application could not be started