|
||||||||||
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 String |
USER_PREFERENCES_FILE
Location of the user preferences file. |
Constructor Summary | |
---|---|
UtilitiesUserPreferences()
Constructor |
Method Summary | |
---|---|
void |
addFavoriteDB(File dbFile)
Sets the last used databases. |
void |
checkDbFiles()
Removes the db files which do not exist anymore. |
File |
getDbFolder()
Returns the last used database folder. |
ArrayList<File> |
getFavoriteDBs()
Returns the last used databases. |
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 |
setDbFolder(File dbFolder)
Sets the last used database folder. |
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 |
---|
public static final String USER_PREFERENCES_FILE
Constructor Detail |
---|
public UtilitiesUserPreferences()
Method Detail |
---|
public Color getSparklineColor()
public void setSparklineColor(Color sparklineColorValidated)
sparklineColorValidated
- the sparkline colorpublic Color getSparklineColorNonValidated()
public Color getPeptideSelected()
public Color getSparklineColorNotFound()
public void setSparklineColorNonValidated(Color sparklineColorNonValidated)
sparklineColorNonValidated
- the non-validated sparkline colorpublic Color getSparklineColorPossible()
public void setSparklineColorPossible(Color sparklineColorPossible)
sparklineColorPossible
- the possible sparkline colorpublic int getMemoryPreference()
public void setMemoryPreference(int memoryPreference)
memoryPreference
- the preferred upper memory limitpublic Color getSpectrumAnnotatedPeakColor()
public void setSpectrumAnnotatedPeakColor(Color spectrumAnnotatedPeakColor)
spectrumAnnotatedPeakColor
- the spectrumAnnotatedPeakColor to setpublic Color getSpectrumBackgroundPeakColor()
public void setSpectrumBackgroundPeakColor(Color spectrumBackgroundPeakColor)
spectrumBackgroundPeakColor
- the spectrumBackgroundPeakColor to setpublic Float getSpectrumAnnotatedPeakWidth()
public void setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth)
spectrumAnnotatedPeakWidth
- the spectrumAnnotatedPeakWidth to setpublic Float getSpectrumBackgroundPeakWidth()
public void setSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth)
spectrumBackgroundPeakWidth
- the spectrumBackgroundPeakWidth to setpublic String getSearchGuiPath()
public void setSearchGuiPath(String searchGuiPath)
searchGuiPath
- the path to the SearchGUI installationpublic String getRelimsPath()
public void setRelimsPath(String relimsPath)
relimsPath
- the path to the * installationpublic String getPeptideShakerPath()
public void setPeptideShakerPath(String peptideShakerPath)
peptideShakerPath
- the path to the PeptideShaker installationpublic String getReporterPath()
public void setReporterPath(String reporterPath)
reporterPath
- the path to the PeptideShaker installationpublic static void saveUserPreferences(UtilitiesUserPreferences userPreferences)
userPreferences
- public static UtilitiesUserPreferences loadUserPreferences()
public String getLocalPrideFolder()
public void setLocalPrideFolder(String localPrideFolder)
localPrideFolder
- the localPrideFolder to setpublic File getDbFolder()
public void setDbFolder(File dbFolder)
dbFolder
- the last used database folderpublic ArrayList<File> getFavoriteDBs()
public void checkDbFiles()
public void addFavoriteDB(File dbFile)
dbFile
- the last used databases.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |