public class UtilitiesUserPreferences
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USER_PREFERENCES_FILE
Location of the user preferences file.
|
| Constructor and Description |
|---|
UtilitiesUserPreferences()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFavoriteDB(java.io.File dbFile)
Sets the last used databases.
|
void |
addProteinTreeImportTime(long fileSize,
long importTime)
Adds a protein tree import time.
|
void |
checkDbFiles()
Removes the db files which do not exist anymore.
|
void |
clearProteinTreeImportTimes()
Clears the protein tree import times.
|
java.io.File |
getDbFolder()
Returns the last used database folder.
|
java.util.ArrayList<java.lang.String> |
getDisplayedTips()
Returns the list of displayed tips.
|
java.util.ArrayList<java.io.File> |
getFavoriteDBs()
Returns the last used databases.
|
java.lang.String |
getLocalPrideFolder()
Returns the local PRIDE folder.
|
int |
getMemoryPreference()
Returns the preferred upper memory limit in MB.
|
java.awt.Color |
getPeptideSelected()
Returns the color for a selected peptide.
|
java.lang.String |
getPeptideShakerPath()
Returns the path to the PeptideShaker installation.
|
java.io.File |
getProteinTreeFolder()
Returns the protein tree folder.
|
java.util.HashMap<java.lang.Long,java.util.ArrayList<java.lang.Long>> |
getProteinTreeImportTime()
Returns the protein tree import times in a map: file size -> list of
import sizes.
|
java.util.ArrayList<java.lang.String> |
getReadTweets()
Returns the list of read tweets.
|
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()
Loads the user preferences.
|
static void |
saveUserPreferences(UtilitiesUserPreferences userPreferences)
Convenience method saving the user preferences.
|
void |
setDbFolder(java.io.File dbFolder)
Sets the last used database folder.
|
void |
setDisplayedTips(java.util.ArrayList<java.lang.String> displayedTips)
Set the list of displayed tips.
|
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 |
setProteinTreeFolder(java.io.File proteinTreeFolder)
Sets the protein tree folder.
|
void |
setReadTweets(java.util.ArrayList<java.lang.String> readTweets)
Set the list of read tweets.
|
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.
|
public static final java.lang.String USER_PREFERENCES_FILE
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)
userPreferences - public static UtilitiesUserPreferences loadUserPreferences()
public java.lang.String getLocalPrideFolder()
public void setLocalPrideFolder(java.lang.String localPrideFolder)
localPrideFolder - the localPrideFolder to setpublic java.io.File getDbFolder()
public void setDbFolder(java.io.File dbFolder)
dbFolder - the last used database folderpublic java.util.ArrayList<java.io.File> getFavoriteDBs()
public void checkDbFiles()
public void addFavoriteDB(java.io.File dbFile)
dbFile - the last used databases.public java.io.File getProteinTreeFolder()
public void setProteinTreeFolder(java.io.File proteinTreeFolder)
proteinTreeFolder - the protein tree folderpublic java.util.HashMap<java.lang.Long,java.util.ArrayList<java.lang.Long>> getProteinTreeImportTime()
public void addProteinTreeImportTime(long fileSize,
long importTime)
fileSize - the size of the FASTA fileimportTime - the import timepublic void clearProteinTreeImportTimes()
public java.util.ArrayList<java.lang.String> getReadTweets()
public void setReadTweets(java.util.ArrayList<java.lang.String> readTweets)
readTweets - the readTweets to setpublic java.util.ArrayList<java.lang.String> getDisplayedTips()
public void setDisplayedTips(java.util.ArrayList<java.lang.String> displayedTips)
displayedTips - the displayedTips to setCopyright © 2014. All Rights Reserved.