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:
Serialized Form
  • Constructor Details

  • 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:
      Component.update(java.awt.Graphics)
    • 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".