com.compomics.util.preferences
Class UtilitiesUserPreferences

java.lang.Object
  extended by com.compomics.util.preferences.UtilitiesUserPreferences
All Implemented Interfaces:
Serializable

public class UtilitiesUserPreferences
extends Object
implements Serializable

Utilities user preferences will be serialized in the user folder and provide useful information to all compomics software, well as soon as they use it of course.

Author:
Marc Vaudel
See Also:
Serialized Form

Field Summary
static String USER_PREFERENCES_FILE
          Location of the user preferences file.
 
Constructor Summary
UtilitiesUserPreferences()
          Constructor
 
Method Summary
 String getLocalPrideFolder()
          Returns the local PRIDE folder.
 int getMemoryPreference()
          Returns the preferred upper memory limit.
 Color getPeptideSelected()
          Returns the color for a selected peptide.
 String getPeptideShakerPath()
          Returns the path to the PeptideShaker installation.
 String getRelimsPath()
          Returns the path to the Relims installation.
 String getReporterPath()
          Returns the path to the Reporter installation.
 String getSearchGuiPath()
          Returns the path to the SearchGUI installation.
 Color getSparklineColor()
          Getter for the sparkline color.
 Color getSparklineColorNonValidated()
          Getter for the non-validated sparkline color.
 Color getSparklineColorNotFound()
          Returns the color for a not found sparkline bar chart plots.
 Color getSparklineColorPossible()
          Returns the color for a possible sparkline bar chart plots.
 Color getSpectrumAnnotatedPeakColor()
          Returns the color to use for the annotated peaks.
 Float getSpectrumAnnotatedPeakWidth()
          Returns the width of the annotated peaks.
 Color getSpectrumBackgroundPeakColor()
          Returns the color to use for the background peaks.
 Float getSpectrumBackgroundPeakWidth()
          Returns the width of the background peaks.
static UtilitiesUserPreferences loadUserPreferences()
          Retries the user preferences.
static void saveUserPreferences(UtilitiesUserPreferences userPreferences)
          Convenience method saving the user preferences.
 void setLocalPrideFolder(String localPrideFolder)
          Set the local PRIDE folder.
 void setMemoryPreference(int memoryPreference)
          Sets the preferred upper memory limit.
 void setPeptideShakerPath(String peptideShakerPath)
          Set the path to the PeptideShaker installation.
 void setRelimsPath(String relimsPath)
          Set the path to the Relims installation.
 void setReporterPath(String reporterPath)
          Set the path to the PeptideShaker installation.
 void setSearchGuiPath(String searchGuiPath)
          Set the path to the SearchGUI installation.
 void setSparklineColor(Color sparklineColorValidated)
          Setter for the sparkline color.
 void setSparklineColorNonValidated(Color sparklineColorNonValidated)
          Setter for the non-validated sparkline color.
 void setSparklineColorPossible(Color sparklineColorPossible)
          Setter for the possible sparkline color.
 void setSpectrumAnnotatedPeakColor(Color spectrumAnnotatedPeakColor)
          Set the color to use for the annotated peaks.
 void setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth)
          Set the width of the annotated peaks.
 void setSpectrumBackgroundPeakColor(Color spectrumBackgroundPeakColor)
          Set the color to use for the background peaks.
 void setSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth)
          Set the width of the background peaks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_PREFERENCES_FILE

public static final String USER_PREFERENCES_FILE
Location of the user preferences file.

Constructor Detail

UtilitiesUserPreferences

public UtilitiesUserPreferences()
Constructor

Method Detail

getSparklineColor

public Color getSparklineColor()
Getter for the sparkline color.

Returns:
the sparkline color

setSparklineColor

public void setSparklineColor(Color sparklineColorValidated)
Setter for the sparkline color.

Parameters:
sparklineColorValidated - the sparkline color

getSparklineColorNonValidated

public Color getSparklineColorNonValidated()
Getter for the non-validated sparkline color.

Returns:
the non-validated sparkline color

getPeptideSelected

public Color getPeptideSelected()
Returns the color for a selected peptide.

Returns:
the color for a selected peptide

getSparklineColorNotFound

public Color getSparklineColorNotFound()
Returns the color for a not found sparkline bar chart plots.

Returns:
the color for a not found sparkline bar chart plots

setSparklineColorNonValidated

public void setSparklineColorNonValidated(Color sparklineColorNonValidated)
Setter for the non-validated sparkline color.

Parameters:
sparklineColorNonValidated - the non-validated sparkline color

getSparklineColorPossible

public Color getSparklineColorPossible()
Returns the color for a possible sparkline bar chart plots.

Returns:
the color for a possible sparkline bar chart plots

setSparklineColorPossible

public void setSparklineColorPossible(Color sparklineColorPossible)
Setter for the possible sparkline color.

Parameters:
sparklineColorPossible - the possible sparkline color

getMemoryPreference

public int getMemoryPreference()
Returns the preferred upper memory limit.

Returns:
the preferred upper memory limit

setMemoryPreference

public void setMemoryPreference(int memoryPreference)
Sets the preferred upper memory limit.

Parameters:
memoryPreference - the preferred upper memory limit

getSpectrumAnnotatedPeakColor

public Color getSpectrumAnnotatedPeakColor()
Returns the color to use for the annotated peaks.

Returns:
the spectrumAnnotatedPeakColor

setSpectrumAnnotatedPeakColor

public void setSpectrumAnnotatedPeakColor(Color spectrumAnnotatedPeakColor)
Set the color to use for the annotated peaks.

Parameters:
spectrumAnnotatedPeakColor - the spectrumAnnotatedPeakColor to set

getSpectrumBackgroundPeakColor

public Color getSpectrumBackgroundPeakColor()
Returns the color to use for the background peaks.

Returns:
the spectrumBackgroundPeakColor

setSpectrumBackgroundPeakColor

public void setSpectrumBackgroundPeakColor(Color spectrumBackgroundPeakColor)
Set the color to use for the background peaks.

Parameters:
spectrumBackgroundPeakColor - the spectrumBackgroundPeakColor to set

getSpectrumAnnotatedPeakWidth

public Float getSpectrumAnnotatedPeakWidth()
Returns the width of the annotated peaks.

Returns:
the spectrumAnnotatedPeakWidth

setSpectrumAnnotatedPeakWidth

public void setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth)
Set the width of the annotated peaks.

Parameters:
spectrumAnnotatedPeakWidth - the spectrumAnnotatedPeakWidth to set

getSpectrumBackgroundPeakWidth

public Float getSpectrumBackgroundPeakWidth()
Returns the width of the background peaks.

Returns:
the spectrumBackgroundPeakWidth

setSpectrumBackgroundPeakWidth

public void setSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth)
Set the width of the background peaks.

Parameters:
spectrumBackgroundPeakWidth - the spectrumBackgroundPeakWidth to set

getSearchGuiPath

public String getSearchGuiPath()
Returns the path to the SearchGUI installation.

Returns:
the path to the SearchGUI installation

setSearchGuiPath

public void setSearchGuiPath(String searchGuiPath)
Set the path to the SearchGUI installation.

Parameters:
searchGuiPath - the path to the SearchGUI installation

getRelimsPath

public String getRelimsPath()
Returns the path to the Relims installation.

Returns:
the path to the Relims installation

setRelimsPath

public void setRelimsPath(String relimsPath)
Set the path to the Relims installation.

Parameters:
relimsPath - the path to the * installation

getPeptideShakerPath

public String getPeptideShakerPath()
Returns the path to the PeptideShaker installation.

Returns:
the path to the PeptideShaker installation

setPeptideShakerPath

public void setPeptideShakerPath(String peptideShakerPath)
Set the path to the PeptideShaker installation.

Parameters:
peptideShakerPath - the path to the PeptideShaker installation

getReporterPath

public String getReporterPath()
Returns the path to the Reporter installation.

Returns:
the path to the Reporter installation

setReporterPath

public void setReporterPath(String reporterPath)
Set the path to the PeptideShaker installation.

Parameters:
reporterPath - the path to the PeptideShaker installation

saveUserPreferences

public static void saveUserPreferences(UtilitiesUserPreferences userPreferences)
Convenience method saving the user preferences.

Parameters:
userPreferences -

loadUserPreferences

public static UtilitiesUserPreferences loadUserPreferences()
Retries the user preferences. If an error is encountered, preferences are set back to default.

Returns:
returns the utilities user preferences

getLocalPrideFolder

public String getLocalPrideFolder()
Returns the local PRIDE folder.

Returns:
the localPrideFolder

setLocalPrideFolder

public void setLocalPrideFolder(String localPrideFolder)
Set the local PRIDE folder.

Parameters:
localPrideFolder - the localPrideFolder to set


Copyright © 2013. All Rights Reserved.