|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.preferences.UtilitiesUserPreferences
public class UtilitiesUserPreferences
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.
Field Summary | |
---|---|
static java.lang.String |
USER_PREFERENCES_FILE
Location of the user preferences file. |
Constructor Summary | |
---|---|
UtilitiesUserPreferences()
Constructor |
Method Summary | |
---|---|
java.lang.String |
getLocalPrideFolder()
Returns the local PRIDE folder. |
int |
getMemoryPreference()
Returns the preferred upper memory limit. |
java.awt.Color |
getPeptideSelected()
Returns the color for a selected peptide. |
java.lang.String |
getPeptideShakerPath()
Returns the path to the PeptideShaker installation. |
java.lang.String |
getRelimsPath()
Returns the path to the Relims installation. |
java.lang.String |
getReporterPath()
Returns the path to the Reporter installation. |
java.lang.String |
getSearchGuiPath()
Returns the path to the SearchGUI installation. |
java.awt.Color |
getSparklineColor()
Getter for the sparkline color. |
java.awt.Color |
getSparklineColorNonValidated()
Getter for the non-validated sparkline color. |
java.awt.Color |
getSparklineColorNotFound()
Returns the color for a not found sparkline bar chart plots. |
java.awt.Color |
getSparklineColorPossible()
Returns the color for a possible sparkline bar chart plots. |
java.awt.Color |
getSpectrumAnnotatedPeakColor()
Returns the color to use for the annotated peaks. |
java.lang.Float |
getSpectrumAnnotatedPeakWidth()
Returns the width of the annotated peaks. |
java.awt.Color |
getSpectrumBackgroundPeakColor()
Returns the color to use for the background peaks. |
java.lang.Float |
getSpectrumBackgroundPeakWidth()
Returns the width of the background peaks. |
static UtilitiesUserPreferences |
loadUserPreferences()
Convenience method retrieving the user preferences. |
static void |
saveUserPreferences(UtilitiesUserPreferences userPreferences)
Convenience method saving the user preferences. |
void |
setLocalPrideFolder(java.lang.String localPrideFolder)
Set the local PRIDE folder. |
void |
setMemoryPreference(int memoryPreference)
Sets the preferred upper memory limit. |
void |
setPeptideShakerPath(java.lang.String peptideShakerPath)
Set the path to the PeptideShaker installation. |
void |
setRelimsPath(java.lang.String relimsPath)
Set the path to the Relims installation. |
void |
setReporterPath(java.lang.String reporterPath)
Set the path to the PeptideShaker installation. |
void |
setSearchGuiPath(java.lang.String searchGuiPath)
Set the path to the SearchGUI installation. |
void |
setSparklineColor(java.awt.Color sparklineColorValidated)
Setter for the sparkline color. |
void |
setSparklineColorNonValidated(java.awt.Color sparklineColorNonValidated)
Setter for the non-validated sparkline color. |
void |
setSparklineColorPossible(java.awt.Color sparklineColorPossible)
Setter for the possible sparkline color. |
void |
setSpectrumAnnotatedPeakColor(java.awt.Color spectrumAnnotatedPeakColor)
Set the color to use for the annotated peaks. |
void |
setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth)
Set the width of the annotated peaks. |
void |
setSpectrumBackgroundPeakColor(java.awt.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 |
---|
public static final java.lang.String USER_PREFERENCES_FILE
Constructor Detail |
---|
public UtilitiesUserPreferences()
Method Detail |
---|
public java.awt.Color getSparklineColor()
public void setSparklineColor(java.awt.Color sparklineColorValidated)
sparklineColorValidated
- the sparkline colorpublic java.awt.Color getSparklineColorNonValidated()
public java.awt.Color getPeptideSelected()
public java.awt.Color getSparklineColorNotFound()
public void setSparklineColorNonValidated(java.awt.Color sparklineColorNonValidated)
sparklineColorNonValidated
- the non-validated sparkline colorpublic java.awt.Color getSparklineColorPossible()
public void setSparklineColorPossible(java.awt.Color sparklineColorPossible)
sparklineColorPossible
- the possible sparkline colorpublic int getMemoryPreference()
public void setMemoryPreference(int memoryPreference)
memoryPreference
- the preferred upper memory limitpublic java.awt.Color getSpectrumAnnotatedPeakColor()
public void setSpectrumAnnotatedPeakColor(java.awt.Color spectrumAnnotatedPeakColor)
spectrumAnnotatedPeakColor
- the spectrumAnnotatedPeakColor to setpublic java.awt.Color getSpectrumBackgroundPeakColor()
public void setSpectrumBackgroundPeakColor(java.awt.Color spectrumBackgroundPeakColor)
spectrumBackgroundPeakColor
- the spectrumBackgroundPeakColor to setpublic java.lang.Float getSpectrumAnnotatedPeakWidth()
public void setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth)
spectrumAnnotatedPeakWidth
- the spectrumAnnotatedPeakWidth to setpublic java.lang.Float getSpectrumBackgroundPeakWidth()
public void setSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth)
spectrumBackgroundPeakWidth
- the spectrumBackgroundPeakWidth to setpublic java.lang.String getSearchGuiPath()
public void setSearchGuiPath(java.lang.String searchGuiPath)
searchGuiPath
- the path to the SearchGUI installationpublic java.lang.String getRelimsPath()
public void setRelimsPath(java.lang.String relimsPath)
relimsPath
- the path to the * installationpublic java.lang.String getPeptideShakerPath()
public void setPeptideShakerPath(java.lang.String peptideShakerPath)
peptideShakerPath
- the path to the PeptideShaker installationpublic java.lang.String getReporterPath()
public void setReporterPath(java.lang.String reporterPath)
reporterPath
- the path to the PeptideShaker installationpublic static void saveUserPreferences(UtilitiesUserPreferences userPreferences) throws java.io.FileNotFoundException, java.io.IOException
userPreferences
-
java.io.FileNotFoundException
java.io.IOException
public static UtilitiesUserPreferences loadUserPreferences() throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.String getLocalPrideFolder()
public void setLocalPrideFolder(java.lang.String localPrideFolder)
localPrideFolder
- the localPrideFolder to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |