|
||||||||||
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 | |
---|---|
Color |
getColor(String familyName)
Returns the color used to code the given modification. |
String |
getFamilyName(String utilitiesName)
Returns the modification family name corresponding to the given utilities name. |
Set<String> |
getFamilyNames()
Returns the modification family names included in this profile. |
HashMap<String,Color> |
getPtmColors()
Returns a mapping of the PeptideShaker names to the colors used. |
String |
getShortName(String familyName)
Returns the short name of the given modification. |
Set<String> |
getUtilitiesNames()
Returns the set of the utilities modification names included in this profile. |
void |
remove(String utilitiesName)
Removes a modification from the profile. |
void |
setColor(String familyName,
Color color)
Sets a new color for the modification. |
void |
setPeptideShakerName(String utilitiesName,
String familyName)
Sets a new family name for the given modification. |
void |
setShortName(String familyName,
String shortName)
Sets a new short name for the given 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 Set<String> getUtilitiesNames()
public Set<String> getFamilyNames()
public String getFamilyName(String utilitiesName)
utilitiesName
- the given utilities name
public String getShortName(String familyName)
familyName
- the PeptideShaker name of the modification
public Color getColor(String familyName)
familyName
- the PeptideShaker name of the given modification
public void setPeptideShakerName(String utilitiesName, String familyName)
utilitiesName
- the utilities name of the modificationfamilyName
- the new family namepublic void setShortName(String familyName, String shortName)
familyName
- the PeptideShaker name of the modificationshortName
- the new short namepublic void setColor(String familyName, Color color)
familyName
- the family name of the modificationcolor
- the new colorpublic void remove(String utilitiesName)
utilitiesName
- the utilities name of the modificationpublic HashMap<String,Color> getPtmColors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |