|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.preferences.ModificationProfile
public class ModificationProfile
This class stores the information about the modification preferences (colors, Names) used for the selected project.
Constructor Summary | |
---|---|
ModificationProfile()
Constructor. |
Method Summary | |
---|---|
void |
addFixedModification(PTM modification)
Adds a fixed modification. |
void |
addVariableModification(PTM modification)
Adds a variable modification. |
void |
compatibilityCheck()
Checks the compatibility with older versions of the class and makes the necessary changes. |
Set<String> |
getBackedUpPtms()
Returns the names of the backed-up PTMs |
Color |
getColor(String modification)
Returns the color used to code the given modification. |
ArrayList<String> |
getFixedModifications()
Returns the searched fixed modifications names |
PTM |
getPtm(String modName)
Returns the back-ed up PTM with the given name |
HashMap<String,Color> |
getPtmColors()
Returns a mapping of the expected modifications names to the colors used. |
String |
getShortName(String modification)
Returns the short name of the given modification. |
ArrayList<String> |
getVariableModifications()
Returns the expected variable modification names included in this profile. |
void |
setColor(String expectedModification,
Color color)
Sets a new color for the given expected modification. |
void |
setShortName(String expectedModification,
String shortName)
Sets a new short name for the given expected modification. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModificationProfile()
Method Detail |
---|
public ArrayList<String> getVariableModifications()
public ArrayList<String> getFixedModifications()
public String getShortName(String modification)
modification
- the name of the expected modification
public Color getColor(String modification)
modification
- the name of the given expected modification
public void addVariableModification(PTM modification)
modification
- The modification to addpublic void addFixedModification(PTM modification)
modification
- The modification to addpublic void setShortName(String expectedModification, String shortName)
expectedModification
- the name of the expected modificationshortName
- the new short namepublic void setColor(String expectedModification, Color color)
expectedModification
- the name of the expected modificationcolor
- the new colorpublic HashMap<String,Color> getPtmColors()
public void compatibilityCheck()
public Set<String> getBackedUpPtms()
public PTM getPtm(String modName)
modName
- the name of the PTM of interest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |