Class DisplayParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
eu.isas.peptideshaker.preferences.DisplayParameters
- All Implemented Interfaces:
Serializable
public class DisplayParameters
extends com.compomics.util.experiment.personalization.ExperimentObject
This class contains the display preferences for the current project.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe text displayed in the cell of a table in case the data is not loaded.Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list containing the names of the PTMs to display.intReturns the number of amino acids surrounding a peptide sequence (1 by default).booleanisDisplayedPTM(String ptmName) Indicates whether a PTM shall be displayed on the interface.voidsetDefaultSelection(ArrayList<String> modifications) Set the list of visible modifications.voidsetDisplayedModification(String ptmName, boolean displayed) Sets whether a PTM shall be displayed on the sequences or not.voidsetIntensityIonTable(boolean intensityIonTable) Set if the intensity or m/z ion table should be shown.voidsetnAASurroundingPeptides(int nAASurroundingPeptides) Sets the number of amino acids surrounding a peptide sequence.voidsetShowBars(boolean showBars) Set if the bars in the bubble plot are to be shown or not.booleanshowBars()If true, bars are shown in the bubble plot highlighting the ions.booleanReturns whether hidden proteins should be displayed.voidshowHiddenProteins(boolean showHiddenProteins) Sets whether hidden proteins should be displayed.booleanReturns whether scores should be displayed.voidshowScores(boolean showScores) Sets whether scores should be displayed.booleanReturns whether only the validated proteins should be displayed.voidshowValidatedProteinsOnly(boolean showValidatedProteinsOnly) Sets whether only the validated proteins should be displayed.booleanIf true, the ion table is shown as an intensity version, false displays the standard Mascot version.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Field Details
-
LOADING_MESSAGE
The text displayed in the cell of a table in case the data is not loaded.- See Also:
-
-
Constructor Details
-
DisplayParameters
public DisplayParameters()Constructor.
-
-
Method Details
-
showHiddenProteins
public void showHiddenProteins(boolean showHiddenProteins) Sets whether hidden proteins should be displayed.- Parameters:
showHiddenProteins- a boolean indicating whether hidden proteins should be displayed
-
showHiddenProteins
public boolean showHiddenProteins()Returns whether hidden proteins should be displayed.- Returns:
- true if the hidden proteins should be displayed
-
showScores
public void showScores(boolean showScores) Sets whether scores should be displayed.- Parameters:
showScores- a boolean indicating whether scores should be displayed
-
showScores
public boolean showScores()Returns whether scores should be displayed.- Returns:
- true if the scores are to be displayed
-
showValidatedProteinsOnly
public void showValidatedProteinsOnly(boolean showValidatedProteinsOnly) Sets whether only the validated proteins should be displayed.- Parameters:
showValidatedProteinsOnly- a boolean indicating whether only the validated proteins should be displayed
-
showValidatedProteinsOnly
public boolean showValidatedProteinsOnly()Returns whether only the validated proteins should be displayed.- Returns:
- true if only the validated proteins are to be displayed
-
getnAASurroundingPeptides
public int getnAASurroundingPeptides()Returns the number of amino acids surrounding a peptide sequence (1 by default).- Returns:
- the number of amino acids surrounding a peptide sequence
-
setnAASurroundingPeptides
public void setnAASurroundingPeptides(int nAASurroundingPeptides) Sets the number of amino acids surrounding a peptide sequence.- Parameters:
nAASurroundingPeptides- the number of amino acids surrounding a peptide sequence
-
setDisplayedModification
Sets whether a PTM shall be displayed on the sequences or not.- Parameters:
ptmName- the name of the PTMdisplayed- a boolean indicating whether the PTM shall be displayed
-
isDisplayedPTM
Indicates whether a PTM shall be displayed on the interface.- Parameters:
ptmName- the name of the PTM- Returns:
- a boolean indicating whether the PTM shall be displayed
-
setDefaultSelection
Set the list of visible modifications.- Parameters:
modifications- the modifications to display
-
getDisplayedModifications
Returns a list containing the names of the PTMs to display.- Returns:
- a list containing the names of the PTMs to display
-
showBars
public boolean showBars()If true, bars are shown in the bubble plot highlighting the ions.- Returns:
- true if bars are to be shown in the bubble plot
-
setShowBars
public void setShowBars(boolean showBars) Set if the bars in the bubble plot are to be shown or not.- Parameters:
showBars- if the bars in the bubble plot are to be shown
-
useIntensityIonTable
public boolean useIntensityIonTable()If true, the ion table is shown as an intensity version, false displays the standard Mascot version.- Returns:
- if true, the ion table is shown as an intensity version, false displays the standard Mascot version
-
setIntensityIonTable
public void setIntensityIonTable(boolean intensityIonTable) Set if the intensity or m/z ion table should be shown.- Parameters:
intensityIonTable- if the intensity or m/z ion table should be shown
-