Class ReporterPreferences

java.lang.Object
eu.isas.reporter.settings.ReporterPreferences
All Implemented Interfaces:
Serializable

public class ReporterPreferences extends Object implements Serializable
This class contains the quantification options set by the user.
Author:
Marc Vaudel, Harald Barsnes
See Also:
  • Method Details

    • clone

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • isSameAs

      public boolean isSameAs(ReporterPreferences anotherSetting)
      Indicates whether another setting is the same as this one.
      Parameters:
      anotherSetting - another setting
      Returns:
      a boolean indicating whether another setting is the same as this one
    • getDefaultSettings

      public ReporterSettings getDefaultSettings()
      Returns the default settings.
      Returns:
      the default settings
    • setDefaultSettings

      public void setDefaultSettings(ReporterSettings defaultSettings)
      Sets the default settings.
      Parameters:
      defaultSettings - the default settings
    • saveUserPreferences

      public static void saveUserPreferences(ReporterPreferences userPreferences)
      Convenience method saving the user preferences.
      Parameters:
      userPreferences - the new user preferences
    • getUserPreferences

      public static ReporterPreferences getUserPreferences()
      Loads the quantification user preferences. If an error is encountered, preferences are set back to default.
      Returns:
      returns the utilities user preferences
    • getUserPreferencesFile

      public static String getUserPreferencesFile()
      Returns the file used to save the user preferences.
      Returns:
      the file used to save the user preferences
    • getUserPreferencesFolder

      public static String getUserPreferencesFolder()
      Returns the folder used to save the user preferences.
      Returns:
      the folder used to save the user preferences
    • setUserPreferencesFolder

      public static void setUserPreferencesFolder(String userPreferencesFile)
      Sets the folder used to save the user preferences.
      Parameters:
      userPreferencesFile - the folder used to save the user preferences