Class SequenceModificationPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.compomics.util.gui.protein.SequenceModificationPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SequenceModificationPanel extends JPanel
A panel for displaying modification profiles. (Based on the SequenceFragmentationPanel.)
Author:
Harald Barsnes, Kenny Helsens, Lennart Martens
See Also:
  • Constructor Details

    • SequenceModificationPanel

      public SequenceModificationPanel()
      Empty default constructor
    • SequenceModificationPanel

      public SequenceModificationPanel(String aSequence, ArrayList<ModificationProfile> profiles, boolean boolModifiedSequence, String score1Name, String score2Name) throws HeadlessException
      Creates a new SequenceFragmentationPanel.
      Parameters:
      aSequence - String with the Modified Sequence of a peptide identification.
      profiles - ArrayList with the modification profiles.
      boolModifiedSequence - boolean describing the sequence. This constructor can be used to enter a ModifiedSequence or a normal sequence.
      score1Name - the name of the score above of the sequence
      score2Name - the name of the score under the sequence
      Throws:
      HeadlessException - if GraphicsEnvironment.isHeadless() returns true.
      See Also:
  • Method Details

    • paint

      public void paint(Graphics g)
      Paints the SequenceModificationPanel. Based on the given ModifiedSequence Components and Modification profile, a visualisation is drawn on a Graphics object showing the profile above the sequence.
      Overrides:
      paint in class JComponent
      Parameters:
      g - the specified Graphics window
      See Also:
    • setSequence

      public void setSequence(String lSequence, boolean boolModifiedSequence)
      Set the Sequence for the SequenceFragmentationPanel.
      Parameters:
      lSequence - String with peptide sequence.
      boolModifiedSequence - Boolean whether lSequence is a Modified Sequence "NH2-K<Ace>KENNY-COOH" or a Flat Sequence "KENNY".