Class MetisToolkit
java.lang.Object
io.github.tonywasher.joceanus.metis.toolkit.MetisToolkit
Metis Toolkit.
-
Constructor Summary
ConstructorsConstructorDescriptionMetisToolkit(TethysUIFactory<?> pFactory) Constructor.MetisToolkit(TethysUIFactory<?> pFactory, boolean pPreference) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanUpFile(File pFile) Delete a file on error exit.Obtain the active profile.Obtain the active task.Obtain the Data Formatter.Obtain the GUI Factory.getNewProfile(String pTask) Create new profile.Obtain the Preference Manager.Obtain the Program Definitions.Obtain the Thread Manager.Obtain the Viewer Manager.newErrorPanel(MetisViewerEntry pParent) Create an ErrorPanel.Create a Help Window.Create a new Preference View.Create a Viewer Window.voidsetUpColors(MetisPreferenceManager pPreferenceMgr) Set up colors.
-
Constructor Details
-
MetisToolkit
Constructor.- Parameters:
pFactory- the GUI factory- Throws:
OceanusException- on error
-
MetisToolkit
Constructor.- Parameters:
pFactory- the GUI factorypPreference- creat preference manager- Throws:
OceanusException- on error
-
-
Method Details
-
setUpColors
Set up colors.- Parameters:
pPreferenceMgr- the preference manager
-
getProgramDefinitions
Obtain the Program Definitions.- Returns:
- the definitions
-
getFormatter
Obtain the Data Formatter.- Returns:
- the formatter
-
getViewerManager
Obtain the Viewer Manager.- Returns:
- the viewer
-
getPreferenceManager
Obtain the Preference Manager.- Returns:
- the preferences
-
getGuiFactory
Obtain the GUI Factory.- Returns:
- the factory
-
getThreadManager
Obtain the Thread Manager.- Returns:
- the factory
-
newHelpWindow
Create a Help Window.- Returns:
- the help Window
-
newErrorPanel
Create an ErrorPanel.- Parameters:
pParent- the parent viewer entry- Returns:
- the error panel
-
newViewerWindow
Create a Viewer Window.- Returns:
- the viewer Window
- Throws:
OceanusException- on error
-
newPreferenceView
Create a new Preference View.- Returns:
- the view
-
getNewProfile
Create new profile.- Parameters:
pTask- the name of the task- Returns:
- the new profile
-
getActiveProfile
Obtain the active profile.- Returns:
- the active profile
-
getActiveTask
Obtain the active task.- Returns:
- the active task
-
cleanUpFile
Delete a file on error exit.- Parameters:
pFile- the file to delete
-