/**
* Creates a new SequenceFragmentationPanel.
*
* @param aSequence String with the Modified Sequence of a peptide
* identification.
* @param profiles ArrayList with the modification profiles.
* @param boolModifiedSequence boolean describing the sequence. This
* constructor can be used to enter a ModifiedSequence or a normal sequence.
* @param score1Name the name of the score above of the sequence
* @param score2Name the name of the score under the sequence
* @throws java.awt.HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
* @see java.awt.GraphicsEnvironment#isHeadless
* @see javax.swing.JComponent#getDefaultLocale
*/
public SequenceModificationPanel(String aSequence, ArrayList<ModificationProfile> profiles, boolean boolModifiedSequence, String score1Name, String score2Name) throws HeadlessException {
super();
this.score1Name = score1Name;
this.score2Name = score2Name;
isModifiedSequence = boolModifiedSequence;
iSequenceComponents = parseSequenceIntoComponents(aSequence);
this.profiles = profiles;
this.setPreferredSize(new Dimension(estimateWidth(), estimateHeight()));
this.setMaximumSize(new Dimension(estimateWidth(), estimateHeight()));
fragmentIonRectangles = new HashMap<String, Rectangle>();
addMouseMotionListener(new MouseMotionAdapter() {
public void mouseMoved(MouseEvent me) {
mouseMovedHandler(me);
}
});
}
SequenceModificationPanel.java 文件源码
java
阅读 45
收藏 0
点赞 0
评论 0
项目:compomics-utilities
作者:
评论列表
文章目录