Package com.compomics.util.gui.protein
Class ModificationProfile
java.lang.Object
com.compomics.util.gui.protein.ModificationProfile
public class ModificationProfile extends Object
A simple modification profile object.
- Author:
- Harald Barsnes
-
Field Summary
Fields Modifier and Type Field Description static int
SCORE_1_ROW_INDEX
The score above the sequence row index.static int
SCORE_2_ROW_INDEX
The score under the sequence row index. -
Constructor Summary
Constructors Constructor Description ModificationProfile()
Empty default constructorModificationProfile(String ptmName, double[][] profile, Color color)
Modification profile constructor. -
Method Summary
Modifier and Type Method Description Color
getColor()
Returns the PTM color.double[][]
getProfile()
Returns the profile.String
getPtmName()
Returns the PTM name.void
setColor(Color color)
Sets the PTM color.void
setProfile(double[][] profile)
Sets the profile.void
setPtmName(String ptmName)
Sets the PTM name.
-
Field Details
-
SCORE_1_ROW_INDEX
public static final int SCORE_1_ROW_INDEXThe score above the sequence row index.- See Also:
- Constant Field Values
-
SCORE_2_ROW_INDEX
public static final int SCORE_2_ROW_INDEXThe score under the sequence row index.- See Also:
- Constant Field Values
-
-
Constructor Details
-
ModificationProfile
public ModificationProfile()Empty default constructor -
ModificationProfile
Modification profile constructor.- Parameters:
ptmName
- the PTM nameprofile
- the PTM profilecolor
- the PTM color
-
-
Method Details
-
getPtmName
Returns the PTM name.- Returns:
- the ptmName
-
setPtmName
Sets the PTM name.- Parameters:
ptmName
- the ptmName to set
-
getProfile
public double[][] getProfile()Returns the profile. Delta scores in the first row and a score in the second row, i.e., [d1][SCORE_1_ROW_INDEX] and [a1][SCORE_2_ROW_INDEX].- Returns:
- the profile
-
setProfile
public void setProfile(double[][] profile)Sets the profile. Delta scores in the first row and a score in the second row, i.e., [d1][SCORE_1_ROW_INDEX] and [a1][SCORE_2_ROW_INDEX].- Parameters:
profile
- the profile to set
-
getColor
Returns the PTM color.- Returns:
- the color
-
setColor
Sets the PTM color.- Parameters:
color
- the color to set
-