java.lang.Object
io.github.tonywasher.joceanus.metis.toolkit.MetisToolkit

public class MetisToolkit extends Object
Metis Toolkit.
  • Constructor Details

  • Method Details

    • setUpColors

      public void setUpColors(MetisPreferenceManager pPreferenceMgr)
      Set up colors.
      Parameters:
      pPreferenceMgr - the preference manager
    • getProgramDefinitions

      public TethysUIProgram getProgramDefinitions()
      Obtain the Program Definitions.
      Returns:
      the definitions
    • getFormatter

      public OceanusDataFormatter getFormatter()
      Obtain the Data Formatter.
      Returns:
      the formatter
    • getViewerManager

      public MetisViewerManager getViewerManager()
      Obtain the Viewer Manager.
      Returns:
      the viewer
    • getPreferenceManager

      public MetisPreferenceManager getPreferenceManager()
      Obtain the Preference Manager.
      Returns:
      the preferences
    • getGuiFactory

      public TethysUIFactory<?> getGuiFactory()
      Obtain the GUI Factory.
      Returns:
      the factory
    • getThreadManager

      public TethysUIThreadManager getThreadManager()
      Obtain the Thread Manager.
      Returns:
      the factory
    • newHelpWindow

      public MetisHelpWindow newHelpWindow()
      Create a Help Window.
      Returns:
      the help Window
    • newErrorPanel

      public MetisErrorPanel newErrorPanel(MetisViewerEntry pParent)
      Create an ErrorPanel.
      Parameters:
      pParent - the parent viewer entry
      Returns:
      the error panel
    • newViewerWindow

      public MetisViewerWindow newViewerWindow() throws OceanusException
      Create a Viewer Window.
      Returns:
      the viewer Window
      Throws:
      OceanusException - on error
    • newPreferenceView

      public MetisPreferenceView newPreferenceView()
      Create a new Preference View.
      Returns:
      the view
    • getNewProfile

      public OceanusProfile getNewProfile(String pTask)
      Create new profile.
      Parameters:
      pTask - the name of the task
      Returns:
      the new profile
    • getActiveProfile

      public OceanusProfile getActiveProfile()
      Obtain the active profile.
      Returns:
      the active profile
    • getActiveTask

      public OceanusProfile getActiveTask()
      Obtain the active task.
      Returns:
      the active task
    • cleanUpFile

      public static void cleanUpFile(File pFile)
      Delete a file on error exit.
      Parameters:
      pFile - the file to delete