use of eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel in project peptide-shaker by compomics.
the class ProteinStructurePanel method initComponents.
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
pdbStructureJPanel = new javax.swing.JPanel();
pdbStructureLayeredPane = new javax.swing.JLayeredPane();
pdbOuterPanel = new javax.swing.JPanel();
pdbLayeredPane = new javax.swing.JLayeredPane();
pdbPanel = new javax.swing.JPanel();
labelsJButton = new javax.swing.JButton();
ribbonJButton = new javax.swing.JButton();
backboneJButton = new javax.swing.JButton();
playJButton = new javax.swing.JButton();
pdbStructureHelpJButton = new javax.swing.JButton();
exportPdbStructureJButton = new javax.swing.JButton();
contextMenuPdbStructureBackgroundPanel = new javax.swing.JPanel();
proteinsJPanel = new javax.swing.JPanel();
proteinsLayeredPane = new javax.swing.JLayeredPane();
proteinsPanel = new javax.swing.JPanel();
proteinScrollPane = new javax.swing.JScrollPane();
proteinTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) proteinTableToolTips.get(realIndex);
return tip;
}
};
}
};
proteinsHelpJButton = new javax.swing.JButton();
exportProteinsJButton = new javax.swing.JButton();
contextMenuProteinsBackgroundPanel = new javax.swing.JPanel();
peptidesJPanel = new javax.swing.JPanel();
peptidesLayeredPane = new javax.swing.JLayeredPane();
peptidesPanel = new javax.swing.JPanel();
peptideScrollPane = new javax.swing.JScrollPane();
peptideTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) peptideTableToolTips.get(realIndex);
return tip;
}
};
}
};
peptidesHelpJButton = new javax.swing.JButton();
exportPeptidesJButton = new javax.swing.JButton();
contextMenuPeptidesBackgroundPanel = new javax.swing.JPanel();
pdbMatchesJPanel = new javax.swing.JPanel();
pdbMatchesLayeredPane = new javax.swing.JLayeredPane();
pdbMatchesPanel = new javax.swing.JPanel();
pdbJScrollPane = new javax.swing.JScrollPane();
pdbMatchesJTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) pdbTableToolTips.get(realIndex);
return tip;
}
};
}
};
pdbMatchesHelpJButton = new javax.swing.JButton();
exportPdbMatchesJButton = new javax.swing.JButton();
contextMenuPdbMatchesBackgroundPanel = new javax.swing.JPanel();
pdbChainsJPanel = new javax.swing.JPanel();
pdbChainsLayeredPane = new javax.swing.JLayeredPane();
pdbChainsPanel = new javax.swing.JPanel();
pdbChainsJScrollPane = new javax.swing.JScrollPane();
pdbChainsJTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) pdbChainsTableToolTips.get(realIndex);
return tip;
}
};
}
};
pdbChainHelpJButton = new javax.swing.JButton();
exportPdbChainsJButton = new javax.swing.JButton();
contextMenuPdbChainsBackgroundPanel = new javax.swing.JPanel();
setBackground(new java.awt.Color(255, 255, 255));
addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentResized(java.awt.event.ComponentEvent evt) {
formComponentResized(evt);
}
});
pdbStructureJPanel.setOpaque(false);
pdbOuterPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("PDB Structure"));
pdbOuterPanel.setOpaque(false);
pdbLayeredPane.addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentResized(java.awt.event.ComponentEvent evt) {
pdbLayeredPaneComponentResized(evt);
}
});
pdbPanel.setLayout(new javax.swing.BoxLayout(pdbPanel, javax.swing.BoxLayout.LINE_AXIS));
pdbPanel.setBounds(0, 0, 435, 440);
pdbLayeredPane.add(pdbPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
labelsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/labels_selected.png")));
labelsJButton.setToolTipText("Hide Modification Labels");
labelsJButton.setBorder(null);
labelsJButton.setBorderPainted(false);
labelsJButton.setContentAreaFilled(false);
labelsJButton.setFocusable(false);
labelsJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
labelsJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
labelsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
labelsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
labelsJButtonMouseExited(evt);
}
});
labelsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
labelsJButtonActionPerformed(evt);
}
});
labelsJButton.setBounds(0, 0, 25, 25);
pdbLayeredPane.add(labelsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
ribbonJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/ribbon_selected.png")));
ribbonJButton.setToolTipText("Ribbon Model");
ribbonJButton.setBorder(null);
ribbonJButton.setBorderPainted(false);
ribbonJButton.setContentAreaFilled(false);
ribbonJButton.setFocusable(false);
ribbonJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
ribbonJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
ribbonJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
ribbonJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
ribbonJButtonMouseExited(evt);
}
});
ribbonJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ribbonJButtonActionPerformed(evt);
}
});
ribbonJButton.setBounds(0, 0, 25, 25);
pdbLayeredPane.add(ribbonJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
backboneJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/backbone.png")));
backboneJButton.setToolTipText("Backbone Model");
backboneJButton.setBorder(null);
backboneJButton.setBorderPainted(false);
backboneJButton.setContentAreaFilled(false);
backboneJButton.setFocusable(false);
backboneJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
backboneJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
backboneJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
backboneJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
backboneJButtonMouseExited(evt);
}
});
backboneJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
backboneJButtonActionPerformed(evt);
}
});
backboneJButton.setBounds(0, 0, 25, 25);
pdbLayeredPane.add(backboneJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
playJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/pause.png")));
playJButton.setToolTipText("Stop Rotation");
playJButton.setBorder(null);
playJButton.setBorderPainted(false);
playJButton.setContentAreaFilled(false);
playJButton.setFocusable(false);
playJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
playJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
playJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
playJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
playJButtonMouseExited(evt);
}
});
playJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
playJButtonActionPerformed(evt);
}
});
playJButton.setBounds(0, 0, 21, 21);
pdbLayeredPane.add(playJButton, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout pdbOuterPanelLayout = new javax.swing.GroupLayout(pdbOuterPanel);
pdbOuterPanel.setLayout(pdbOuterPanelLayout);
pdbOuterPanelLayout.setHorizontalGroup(pdbOuterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 448, Short.MAX_VALUE).addGroup(pdbOuterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pdbOuterPanelLayout.createSequentialGroup().addContainerGap().addComponent(pdbLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 428, Short.MAX_VALUE).addContainerGap())));
pdbOuterPanelLayout.setVerticalGroup(pdbOuterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 463, Short.MAX_VALUE).addGroup(pdbOuterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pdbOuterPanelLayout.createSequentialGroup().addContainerGap().addComponent(pdbLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 441, Short.MAX_VALUE).addContainerGap())));
pdbOuterPanel.setBounds(0, 0, 460, 490);
pdbStructureLayeredPane.add(pdbOuterPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
pdbStructureHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
pdbStructureHelpJButton.setToolTipText("Help");
pdbStructureHelpJButton.setBorder(null);
pdbStructureHelpJButton.setBorderPainted(false);
pdbStructureHelpJButton.setContentAreaFilled(false);
// NOI18N
pdbStructureHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
pdbStructureHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
pdbStructureHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
pdbStructureHelpJButtonMouseExited(evt);
}
});
pdbStructureHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
pdbStructureHelpJButtonActionPerformed(evt);
}
});
pdbStructureHelpJButton.setBounds(440, 0, 10, 19);
pdbStructureLayeredPane.add(pdbStructureHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
exportPdbStructureJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbStructureJButton.setToolTipText("Export");
exportPdbStructureJButton.setBorder(null);
exportPdbStructureJButton.setBorderPainted(false);
exportPdbStructureJButton.setContentAreaFilled(false);
// NOI18N
exportPdbStructureJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbStructureJButton.setEnabled(false);
// NOI18N
exportPdbStructureJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPdbStructureJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPdbStructureJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPdbStructureJButtonMouseExited(evt);
}
});
exportPdbStructureJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPdbStructureJButtonActionPerformed(evt);
}
});
exportPdbStructureJButton.setBounds(430, 0, 10, 19);
pdbStructureLayeredPane.add(exportPdbStructureJButton, javax.swing.JLayeredPane.POPUP_LAYER);
contextMenuPdbStructureBackgroundPanel.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout contextMenuPdbStructureBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPdbStructureBackgroundPanel);
contextMenuPdbStructureBackgroundPanel.setLayout(contextMenuPdbStructureBackgroundPanelLayout);
contextMenuPdbStructureBackgroundPanelLayout.setHorizontalGroup(contextMenuPdbStructureBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 30, Short.MAX_VALUE));
contextMenuPdbStructureBackgroundPanelLayout.setVerticalGroup(contextMenuPdbStructureBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
contextMenuPdbStructureBackgroundPanel.setBounds(420, 0, 30, 19);
pdbStructureLayeredPane.add(contextMenuPdbStructureBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout pdbStructureJPanelLayout = new javax.swing.GroupLayout(pdbStructureJPanel);
pdbStructureJPanel.setLayout(pdbStructureJPanelLayout);
pdbStructureJPanelLayout.setHorizontalGroup(pdbStructureJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbStructureLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE));
pdbStructureJPanelLayout.setVerticalGroup(pdbStructureJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbStructureLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE));
proteinsJPanel.setOpaque(false);
proteinsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Proteins"));
proteinsPanel.setOpaque(false);
proteinScrollPane.setOpaque(false);
proteinTable.setModel(new ProteinTableModel());
proteinTable.setOpaque(false);
proteinTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
proteinTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
proteinTableMouseClicked(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
proteinTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
proteinTableMouseReleased(evt);
}
});
proteinTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
proteinTableMouseMoved(evt);
}
});
proteinTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
proteinTableKeyReleased(evt);
}
});
proteinScrollPane.setViewportView(proteinTable);
javax.swing.GroupLayout proteinsPanelLayout = new javax.swing.GroupLayout(proteinsPanel);
proteinsPanel.setLayout(proteinsPanelLayout);
proteinsPanelLayout.setHorizontalGroup(proteinsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 938, Short.MAX_VALUE).addGroup(proteinsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(proteinsPanelLayout.createSequentialGroup().addContainerGap().addComponent(proteinScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE).addContainerGap())));
proteinsPanelLayout.setVerticalGroup(proteinsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 243, Short.MAX_VALUE).addGroup(proteinsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(proteinsPanelLayout.createSequentialGroup().addContainerGap().addComponent(proteinScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE).addContainerGap())));
proteinsPanel.setBounds(0, 0, 950, 270);
proteinsLayeredPane.add(proteinsPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
proteinsHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
proteinsHelpJButton.setToolTipText("Help");
proteinsHelpJButton.setBorder(null);
proteinsHelpJButton.setBorderPainted(false);
proteinsHelpJButton.setContentAreaFilled(false);
// NOI18N
proteinsHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
proteinsHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
proteinsHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
proteinsHelpJButtonMouseExited(evt);
}
});
proteinsHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
proteinsHelpJButtonActionPerformed(evt);
}
});
proteinsHelpJButton.setBounds(930, 0, 10, 19);
proteinsLayeredPane.add(proteinsHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
exportProteinsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportProteinsJButton.setToolTipText("Copy to File");
exportProteinsJButton.setBorder(null);
exportProteinsJButton.setBorderPainted(false);
exportProteinsJButton.setContentAreaFilled(false);
// NOI18N
exportProteinsJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportProteinsJButton.setEnabled(false);
// NOI18N
exportProteinsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportProteinsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportProteinsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportProteinsJButtonMouseExited(evt);
}
});
exportProteinsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportProteinsJButtonActionPerformed(evt);
}
});
exportProteinsJButton.setBounds(920, 0, 10, 19);
proteinsLayeredPane.add(exportProteinsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
contextMenuProteinsBackgroundPanel.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout contextMenuProteinsBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuProteinsBackgroundPanel);
contextMenuProteinsBackgroundPanel.setLayout(contextMenuProteinsBackgroundPanelLayout);
contextMenuProteinsBackgroundPanelLayout.setHorizontalGroup(contextMenuProteinsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 30, Short.MAX_VALUE));
contextMenuProteinsBackgroundPanelLayout.setVerticalGroup(contextMenuProteinsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
contextMenuProteinsBackgroundPanel.setBounds(920, 0, 30, 19);
proteinsLayeredPane.add(contextMenuProteinsBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout proteinsJPanelLayout = new javax.swing.GroupLayout(proteinsJPanel);
proteinsJPanel.setLayout(proteinsJPanelLayout);
proteinsJPanelLayout.setHorizontalGroup(proteinsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(proteinsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 957, Short.MAX_VALUE));
proteinsJPanelLayout.setVerticalGroup(proteinsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(proteinsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE));
peptidesJPanel.setOpaque(false);
peptidesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Peptides"));
peptidesPanel.setOpaque(false);
peptideScrollPane.setOpaque(false);
peptideTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { " ", " ", "PI", "Sequence", "Start", "PDB", "" }) {
Class[] types = new Class[] { java.lang.Integer.class, java.lang.Boolean.class, java.lang.Integer.class, java.lang.String.class, java.lang.Integer.class, java.lang.Boolean.class, java.lang.Boolean.class };
boolean[] canEdit = new boolean[] { false, true, false, false, false, false, false };
public Class getColumnClass(int columnIndex) {
return types[columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit[columnIndex];
}
});
peptideTable.setOpaque(false);
peptideTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
peptideTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseExited(java.awt.event.MouseEvent evt) {
peptideTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
peptideTableMouseReleased(evt);
}
});
peptideTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
peptideTableMouseMoved(evt);
}
});
peptideTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
peptideTableKeyReleased(evt);
}
});
peptideScrollPane.setViewportView(peptideTable);
javax.swing.GroupLayout peptidesPanelLayout = new javax.swing.GroupLayout(peptidesPanel);
peptidesPanel.setLayout(peptidesPanelLayout);
peptidesPanelLayout.setHorizontalGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 468, Short.MAX_VALUE).addGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(peptidesPanelLayout.createSequentialGroup().addContainerGap().addComponent(peptideScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 448, Short.MAX_VALUE).addContainerGap())));
peptidesPanelLayout.setVerticalGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 133, Short.MAX_VALUE).addGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(peptidesPanelLayout.createSequentialGroup().addContainerGap().addComponent(peptideScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE).addContainerGap())));
peptidesPanel.setBounds(0, 0, 480, 160);
peptidesLayeredPane.add(peptidesPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
peptidesHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
peptidesHelpJButton.setToolTipText("Help");
peptidesHelpJButton.setBorder(null);
peptidesHelpJButton.setBorderPainted(false);
peptidesHelpJButton.setContentAreaFilled(false);
// NOI18N
peptidesHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
peptidesHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
peptidesHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
peptidesHelpJButtonMouseExited(evt);
}
});
peptidesHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
peptidesHelpJButtonActionPerformed(evt);
}
});
peptidesHelpJButton.setBounds(460, 0, 10, 19);
peptidesLayeredPane.add(peptidesHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
exportPeptidesJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPeptidesJButton.setToolTipText("Copy to File");
exportPeptidesJButton.setBorder(null);
exportPeptidesJButton.setBorderPainted(false);
exportPeptidesJButton.setContentAreaFilled(false);
// NOI18N
exportPeptidesJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPeptidesJButton.setEnabled(false);
// NOI18N
exportPeptidesJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPeptidesJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPeptidesJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPeptidesJButtonMouseExited(evt);
}
});
exportPeptidesJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPeptidesJButtonActionPerformed(evt);
}
});
exportPeptidesJButton.setBounds(450, 0, 10, 19);
peptidesLayeredPane.add(exportPeptidesJButton, javax.swing.JLayeredPane.POPUP_LAYER);
contextMenuPeptidesBackgroundPanel.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout contextMenuPeptidesBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPeptidesBackgroundPanel);
contextMenuPeptidesBackgroundPanel.setLayout(contextMenuPeptidesBackgroundPanelLayout);
contextMenuPeptidesBackgroundPanelLayout.setHorizontalGroup(contextMenuPeptidesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 30, Short.MAX_VALUE));
contextMenuPeptidesBackgroundPanelLayout.setVerticalGroup(contextMenuPeptidesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
contextMenuPeptidesBackgroundPanel.setBounds(440, 0, 30, 19);
peptidesLayeredPane.add(contextMenuPeptidesBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout peptidesJPanelLayout = new javax.swing.GroupLayout(peptidesJPanel);
peptidesJPanel.setLayout(peptidesJPanelLayout);
peptidesJPanelLayout.setHorizontalGroup(peptidesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(peptidesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE));
peptidesJPanelLayout.setVerticalGroup(peptidesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(peptidesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE));
pdbMatchesJPanel.setOpaque(false);
pdbMatchesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("PDB Matches"));
pdbMatchesPanel.setOpaque(false);
pdbJScrollPane.setOpaque(false);
pdbMatchesJTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { " ", "PDB", "Title", "Type", "Chains" }) {
Class[] types = new Class[] { java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class };
boolean[] canEdit = new boolean[] { false, false, false, false, false };
public Class getColumnClass(int columnIndex) {
return types[columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit[columnIndex];
}
});
pdbMatchesJTable.setOpaque(false);
pdbMatchesJTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
pdbMatchesJTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseExited(java.awt.event.MouseEvent evt) {
pdbMatchesJTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
pdbMatchesJTableMouseReleased(evt);
}
});
pdbMatchesJTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
pdbMatchesJTableMouseMoved(evt);
}
});
pdbMatchesJTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
pdbMatchesJTableKeyReleased(evt);
}
});
pdbJScrollPane.setViewportView(pdbMatchesJTable);
javax.swing.GroupLayout pdbMatchesPanelLayout = new javax.swing.GroupLayout(pdbMatchesPanel);
pdbMatchesPanel.setLayout(pdbMatchesPanelLayout);
pdbMatchesPanelLayout.setHorizontalGroup(pdbMatchesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 468, Short.MAX_VALUE).addGroup(pdbMatchesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pdbMatchesPanelLayout.createSequentialGroup().addGap(8, 8, 8).addComponent(pdbJScrollPane).addGap(8, 8, 8))));
pdbMatchesPanelLayout.setVerticalGroup(pdbMatchesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 123, Short.MAX_VALUE).addGroup(pdbMatchesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pdbMatchesPanelLayout.createSequentialGroup().addContainerGap().addComponent(pdbJScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE).addContainerGap())));
pdbMatchesPanel.setBounds(0, 0, 480, 150);
pdbMatchesLayeredPane.add(pdbMatchesPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
pdbMatchesHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
pdbMatchesHelpJButton.setToolTipText("Help");
pdbMatchesHelpJButton.setBorder(null);
pdbMatchesHelpJButton.setBorderPainted(false);
pdbMatchesHelpJButton.setContentAreaFilled(false);
// NOI18N
pdbMatchesHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
pdbMatchesHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
pdbMatchesHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
pdbMatchesHelpJButtonMouseExited(evt);
}
});
pdbMatchesHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
pdbMatchesHelpJButtonActionPerformed(evt);
}
});
pdbMatchesHelpJButton.setBounds(460, 0, 10, 19);
pdbMatchesLayeredPane.add(pdbMatchesHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
exportPdbMatchesJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbMatchesJButton.setToolTipText("Copy to File");
exportPdbMatchesJButton.setBorder(null);
exportPdbMatchesJButton.setBorderPainted(false);
exportPdbMatchesJButton.setContentAreaFilled(false);
// NOI18N
exportPdbMatchesJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbMatchesJButton.setEnabled(false);
// NOI18N
exportPdbMatchesJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPdbMatchesJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPdbMatchesJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPdbMatchesJButtonMouseExited(evt);
}
});
exportPdbMatchesJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPdbMatchesJButtonActionPerformed(evt);
}
});
exportPdbMatchesJButton.setBounds(450, 0, 10, 19);
pdbMatchesLayeredPane.add(exportPdbMatchesJButton, javax.swing.JLayeredPane.POPUP_LAYER);
contextMenuPdbMatchesBackgroundPanel.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout contextMenuPdbMatchesBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPdbMatchesBackgroundPanel);
contextMenuPdbMatchesBackgroundPanel.setLayout(contextMenuPdbMatchesBackgroundPanelLayout);
contextMenuPdbMatchesBackgroundPanelLayout.setHorizontalGroup(contextMenuPdbMatchesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 30, Short.MAX_VALUE));
contextMenuPdbMatchesBackgroundPanelLayout.setVerticalGroup(contextMenuPdbMatchesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
contextMenuPdbMatchesBackgroundPanel.setBounds(440, 0, 30, 19);
pdbMatchesLayeredPane.add(contextMenuPdbMatchesBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout pdbMatchesJPanelLayout = new javax.swing.GroupLayout(pdbMatchesJPanel);
pdbMatchesJPanel.setLayout(pdbMatchesJPanelLayout);
pdbMatchesJPanelLayout.setHorizontalGroup(pdbMatchesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbMatchesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE));
pdbMatchesJPanelLayout.setVerticalGroup(pdbMatchesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbMatchesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE));
pdbChainsJPanel.setOpaque(false);
pdbChainsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("PDB Chains"));
pdbChainsPanel.setOpaque(false);
pdbChainsJScrollPane.setOpaque(false);
pdbChainsJTable.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {}, new String[] { " ", "Chain", "PDB-Protein", "Coverage" }) {
Class[] types = new Class[] { java.lang.Integer.class, java.lang.String.class, java.lang.Object.class, java.lang.Double.class };
boolean[] canEdit = new boolean[] { false, false, false, false };
public Class getColumnClass(int columnIndex) {
return types[columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit[columnIndex];
}
});
pdbChainsJTable.setOpaque(false);
pdbChainsJTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
pdbChainsJTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
pdbChainsJTableMouseReleased(evt);
}
});
pdbChainsJTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
pdbChainsJTableKeyReleased(evt);
}
});
pdbChainsJScrollPane.setViewportView(pdbChainsJTable);
javax.swing.GroupLayout pdbChainsPanelLayout = new javax.swing.GroupLayout(pdbChainsPanel);
pdbChainsPanel.setLayout(pdbChainsPanelLayout);
pdbChainsPanelLayout.setHorizontalGroup(pdbChainsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 468, Short.MAX_VALUE).addGroup(pdbChainsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pdbChainsPanelLayout.createSequentialGroup().addContainerGap().addComponent(pdbChainsJScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 448, Short.MAX_VALUE).addContainerGap())));
pdbChainsPanelLayout.setVerticalGroup(pdbChainsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 133, Short.MAX_VALUE).addGroup(pdbChainsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(pdbChainsPanelLayout.createSequentialGroup().addContainerGap().addComponent(pdbChainsJScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE).addContainerGap())));
pdbChainsPanel.setBounds(0, 0, 480, 160);
pdbChainsLayeredPane.add(pdbChainsPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);
// NOI18N
pdbChainHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
pdbChainHelpJButton.setToolTipText("Help");
pdbChainHelpJButton.setBorder(null);
pdbChainHelpJButton.setBorderPainted(false);
pdbChainHelpJButton.setContentAreaFilled(false);
// NOI18N
pdbChainHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
pdbChainHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
pdbChainHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
pdbChainHelpJButtonMouseExited(evt);
}
});
pdbChainHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
pdbChainHelpJButtonActionPerformed(evt);
}
});
pdbChainHelpJButton.setBounds(460, 0, 10, 19);
pdbChainsLayeredPane.add(pdbChainHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
// NOI18N
exportPdbChainsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbChainsJButton.setToolTipText("Copy to File");
exportPdbChainsJButton.setBorder(null);
exportPdbChainsJButton.setBorderPainted(false);
exportPdbChainsJButton.setContentAreaFilled(false);
// NOI18N
exportPdbChainsJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPdbChainsJButton.setEnabled(false);
// NOI18N
exportPdbChainsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPdbChainsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPdbChainsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPdbChainsJButtonMouseExited(evt);
}
});
exportPdbChainsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPdbChainsJButtonActionPerformed(evt);
}
});
exportPdbChainsJButton.setBounds(450, 0, 10, 19);
pdbChainsLayeredPane.add(exportPdbChainsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
contextMenuPdbChainsBackgroundPanel.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout contextMenuPdbChainsBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPdbChainsBackgroundPanel);
contextMenuPdbChainsBackgroundPanel.setLayout(contextMenuPdbChainsBackgroundPanelLayout);
contextMenuPdbChainsBackgroundPanelLayout.setHorizontalGroup(contextMenuPdbChainsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 30, Short.MAX_VALUE));
contextMenuPdbChainsBackgroundPanelLayout.setVerticalGroup(contextMenuPdbChainsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
contextMenuPdbChainsBackgroundPanel.setBounds(440, 0, 30, 19);
pdbChainsLayeredPane.add(contextMenuPdbChainsBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
javax.swing.GroupLayout pdbChainsJPanelLayout = new javax.swing.GroupLayout(pdbChainsJPanel);
pdbChainsJPanel.setLayout(pdbChainsJPanelLayout);
pdbChainsJPanelLayout.setHorizontalGroup(pdbChainsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbChainsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE));
pdbChainsJPanelLayout.setVerticalGroup(pdbChainsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbChainsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(pdbMatchesJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(pdbChainsJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(peptidesJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(pdbStructureJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addComponent(proteinsJPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()));
layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(proteinsJPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addComponent(pdbMatchesJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(pdbChainsJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(peptidesJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addComponent(pdbStructureJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)).addContainerGap()));
pdbStructureJPanel.getAccessibleContext().setAccessibleName("Protein Details");
}
use of eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel in project peptide-shaker by compomics.
the class ProteinStructurePanel method displayResults.
/**
* Displays the results in the result tables.
*/
public void displayResults() {
progressDialog = new ProgressDialogX(peptideShakerGUI, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
progressDialog.setPrimaryProgressCounterIndeterminate(true);
progressDialog.setTitle("Updating Data. Please Wait...");
new Thread(new Runnable() {
public void run() {
try {
progressDialog.setVisible(true);
} catch (IndexOutOfBoundsException e) {
// ignore
}
}
}, "ProgressDialog").start();
new Thread("DisplayThread") {
@Override
public void run() {
try {
peptideShakerGUI.getIdentificationFeaturesGenerator().setProteinKeys(peptideShakerGUI.getMetrics().getProteinKeys());
proteinKeys = peptideShakerGUI.getIdentificationFeaturesGenerator().getProcessedProteinKeys(progressDialog, peptideShakerGUI.getFilterParameters());
setTableProperties();
// update the table model
if (proteinTable.getModel() instanceof ProteinTableModel && ((ProteinTableModel) proteinTable.getModel()).isInstantiated()) {
((ProteinTableModel) proteinTable.getModel()).updateDataModel(peptideShakerGUI.getIdentification(), peptideShakerGUI.getIdentificationFeaturesGenerator(), peptideShakerGUI.getProteinDetailsProvider(), peptideShakerGUI.getSequenceProvider(), peptideShakerGUI.getGeneMaps(), peptideShakerGUI.getDisplayFeaturesGenerator(), proteinKeys);
} else {
ProteinTableModel proteinTableModel = new ProteinTableModel(peptideShakerGUI.getIdentification(), peptideShakerGUI.getIdentificationFeaturesGenerator(), peptideShakerGUI.getProteinDetailsProvider(), peptideShakerGUI.getSequenceProvider(), peptideShakerGUI.getGeneMaps(), peptideShakerGUI.getDisplayFeaturesGenerator(), peptideShakerGUI.getExceptionHandler(), proteinKeys);
proteinTable.setModel(proteinTableModel);
}
setTableProperties();
showSparkLines(peptideShakerGUI.showSparklines());
((DefaultTableModel) proteinTable.getModel()).fireTableDataChanged();
// update spectrum counting column header tooltip
if (peptideShakerGUI.getSpectrumCountingParameters().getSelectedMethod() == SpectrumCountingMethod.EMPAI) {
proteinTableToolTips.set(proteinTable.getColumn("MS2 Quant.").getModelIndex(), "Protein MS2 Quantification - emPAI");
} else if (peptideShakerGUI.getSpectrumCountingParameters().getSelectedMethod() == SpectrumCountingMethod.NSAF) {
proteinTableToolTips.set(proteinTable.getColumn("MS2 Quant.").getModelIndex(), "Protein MS2 Quantification - NSAF");
} else {
proteinTableToolTips.set(proteinTable.getColumn("MS2 Quant.").getModelIndex(), "Protein MS2 Quantification");
}
if (peptideShakerGUI.getDisplayParameters().showScores()) {
proteinTableToolTips.set(proteinTable.getColumnCount() - 2, "Protein Score");
} else {
proteinTableToolTips.set(proteinTable.getColumnCount() - 2, "Protein Confidence");
}
String title = PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Proteins (";
int nValidated = peptideShakerGUI.getIdentificationFeaturesGenerator().getNValidatedProteins();
int nConfident = peptideShakerGUI.getIdentificationFeaturesGenerator().getNConfidentProteins();
int nProteins = proteinTable.getRowCount();
if (nConfident > 0) {
title += nValidated + "/" + nProteins + " - " + nConfident + " confident, " + (nValidated - nConfident) + " doubtful";
} else {
title += nValidated + "/" + nProteins;
}
title += ")" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING;
((TitledBorder) proteinsPanel.getBorder()).setTitle(title);
proteinsPanel.repaint();
updateProteinTableCellRenderers();
// enable the contextual export options
exportProteinsJButton.setEnabled(true);
exportPdbMatchesJButton.setEnabled(true);
exportPdbChainsJButton.setEnabled(true);
exportPeptidesJButton.setEnabled(true);
exportPdbStructureJButton.setEnabled(true);
peptideShakerGUI.setUpdated(PeptideShakerGUI.STRUCTURES_TAB_INDEX, true);
progressDialog.setPrimaryProgressCounterIndeterminate(true);
progressDialog.setTitle("Preparing 3D Structure Tab. Please Wait...");
peptideShakerGUI.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
progressDialog.setRunFinished();
new Thread(new Runnable() {
public void run() {
long proteinKey = peptideShakerGUI.getSelectedProteinKey();
long peptideKey = peptideShakerGUI.getSelectedPeptideKey();
String spectrumFile = peptideShakerGUI.getSelectedSpectrumFile();
String spectrumTitle = peptideShakerGUI.getSelectedSpectrumTitle();
proteinTableMouseReleased(null);
peptideShakerGUI.setSelectedItems(proteinKey, peptideKey, spectrumFile, spectrumTitle);
updateSelection(true);
proteinTable.requestFocus();
}
}, "UpdateSelectionThread").start();
} catch (Exception e) {
progressDialog.setRunFinished();
peptideShakerGUI.catchException(e);
}
}
}.start();
}
use of eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel in project peptide-shaker by compomics.
the class OverviewPanel method clearData.
/**
* Clear all the data.
*/
public void clearData() {
displaySpectrum = true;
displayCoverage = true;
displayProteins = true;
displayPeptidesAndPSMs = true;
proteinKeys = new long[0];
peptideKeys = new long[0];
psmKeys = new long[0];
PsmTableModel psmTableModel = (PsmTableModel) psmTable.getModel();
psmTableModel.reset();
PeptideTableModel peptideTableModel = (PeptideTableModel) peptideTable.getModel();
peptideTableModel.reset();
ProteinTableModel proteinTableModel = (ProteinTableModel) proteinTable.getModel();
proteinTableModel.reset();
psmTableModel.fireTableDataChanged();
peptideTableModel.fireTableDataChanged();
proteinTableModel.fireTableDataChanged();
currentProteinSequence = "";
spectrumPanel = null;
sequenceCoverageInnerPanel.removeAll();
sequencePtmsPanel.removeAll();
sequenceVariationsPanel.removeAll();
fragmentIonsJScrollPane.setViewportView(null);
bubbleJPanel.removeAll();
spectrumJPanel.removeAll();
secondarySpectrumPlotsJPanel.removeAll();
((TitledBorder) proteinsLayeredPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Proteins" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
proteinsLayeredPanel.repaint();
((TitledBorder) peptidesPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Peptides" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
peptidesPanel.repaint();
((TitledBorder) psmsPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Peptide Spectrum Matches" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
psmsPanel.repaint();
((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
spectrumMainPanel.repaint();
((TitledBorder) sequenceCoverageTitledPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Protein Sequence Coverage" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
sequenceCoverageTitledPanel.repaint();
}
use of eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel in project peptide-shaker by compomics.
the class OverviewPanel method initComponents.
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
void initComponents() {
selectJPopupMenu = new javax.swing.JPopupMenu();
selectAllMenuItem = new javax.swing.JMenuItem();
deselectAllMenuItem = new javax.swing.JMenuItem();
sequenceCoverageJPopupMenu = new javax.swing.JPopupMenu();
coverageShowAllPeptidesJRadioButtonMenuItem = new javax.swing.JRadioButtonMenuItem();
coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItem = new javax.swing.JRadioButtonMenuItem();
coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItem = new javax.swing.JRadioButtonMenuItem();
jSeparator1 = new javax.swing.JPopupMenu.Separator();
coverageShowPossiblePeptidesJCheckBoxMenuItem = new javax.swing.JCheckBoxMenuItem();
coveragePeptideTypesButtonGroup = new javax.swing.ButtonGroup();
sequenceCoverageExportPopupMenu = new javax.swing.JPopupMenu();
sequenceCoveragePlotExportMenuItem = new javax.swing.JMenuItem();
sequenceCoverageSequenceExportMenuItem = new javax.swing.JMenuItem();
backgroundLayeredPane = new javax.swing.JLayeredPane();
overviewJPanel = new javax.swing.JPanel();
overviewJSplitPane = new javax.swing.JSplitPane();
proteinsJPanel = new javax.swing.JPanel();
proteinsLayeredPane = new javax.swing.JLayeredPane();
proteinsLayeredPanel = new javax.swing.JPanel();
proteinScrollPane = new javax.swing.JScrollPane();
proteinTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) proteinTableToolTips.get(realIndex);
return tip;
}
};
}
};
proteinsHelpJButton = new javax.swing.JButton();
exportProteinsJButton = new javax.swing.JButton();
hideProteinsJButton = new javax.swing.JButton();
contextMenuProteinsBackgroundPanel = new javax.swing.JPanel();
coverageJSplitPane = new javax.swing.JSplitPane();
sequenceCoverageJPanel = new javax.swing.JPanel();
sequenceCoverageLayeredPane = new javax.swing.JLayeredPane();
sequenceCoverageTitledPanel = new javax.swing.JPanel();
sequencePtmsPanel = new javax.swing.JPanel();
sequenceCoverageInnerPanel = new javax.swing.JPanel();
sequenceVariationsPanel = new javax.swing.JPanel();
sequenceCoveragetHelpJButton = new javax.swing.JButton();
exportSequenceCoverageContextJButton = new javax.swing.JButton();
hideCoverageJButton = new javax.swing.JButton();
sequenceCoverageOptionsJButton = new javax.swing.JButton();
contextMenuSequenceCoverageBackgroundPanel = new javax.swing.JPanel();
peptidesPsmSpectrumFragmentIonsJSplitPane = new javax.swing.JSplitPane();
peptidesPsmJSplitPane = new javax.swing.JSplitPane();
peptidesJPanel = new javax.swing.JPanel();
peptidesLayeredPane = new javax.swing.JLayeredPane();
peptidesPanel = new javax.swing.JPanel();
peptideScrollPane = new javax.swing.JScrollPane();
peptideTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) peptideTableToolTips.get(realIndex);
return tip;
}
};
}
};
peptidesHelpJButton = new javax.swing.JButton();
exportPeptidesJButton = new javax.swing.JButton();
hidePeptideAndPsmsJButton = new javax.swing.JButton();
contextMenuPeptidesBackgroundPanel = new javax.swing.JPanel();
psmJPanel = new javax.swing.JPanel();
psmsLayeredPane = new javax.swing.JLayeredPane();
psmsPanel = new javax.swing.JPanel();
spectraScrollPane = new javax.swing.JScrollPane();
psmTable = new JTable() {
protected JTableHeader createDefaultTableHeader() {
return new JTableHeader(columnModel) {
public String getToolTipText(MouseEvent e) {
java.awt.Point p = e.getPoint();
int index = columnModel.getColumnIndexAtX(p.x);
int realIndex = columnModel.getColumn(index).getModelIndex();
String tip = (String) psmTableToolTips.get(realIndex);
return tip;
}
};
}
};
psmsHelpJButton = new javax.swing.JButton();
exportPsmsJButton = new javax.swing.JButton();
hidePeptideAndPsmsJButton2 = new javax.swing.JButton();
contextMenuPsmsBackgroundPanel = new javax.swing.JPanel();
spectrumMainJPanel = new javax.swing.JPanel();
spectrumLayeredPane = new javax.swing.JLayeredPane();
spectrumMainPanel = new javax.swing.JPanel();
slidersSplitPane = new javax.swing.JSplitPane();
spectrumJTabbedPane = new javax.swing.JTabbedPane();
fragmentIonJPanel = new javax.swing.JPanel();
fragmentIonsJScrollPane = new javax.swing.JScrollPane();
ionTableJToolBar = new javax.swing.JToolBar();
ionTableAnnotationMenuPanel = new javax.swing.JPanel();
bubblePlotTabJPanel = new javax.swing.JPanel();
bubbleJPanel = new javax.swing.JPanel();
bubblePlotJToolBar = new javax.swing.JToolBar();
bubbleAnnotationMenuPanel = new javax.swing.JPanel();
spectrumContainerJPanel = new javax.swing.JPanel();
spectrumJToolBar = new javax.swing.JToolBar();
spectrumAnnotationMenuPanel = new javax.swing.JPanel();
spectrumSplitPane = new javax.swing.JSplitPane();
secondarySpectrumPlotsJPanel = new javax.swing.JPanel();
spectrumOuterJPanel = new javax.swing.JPanel();
spectrumPaddingPanel = new javax.swing.JPanel();
spectrumJPanel = new javax.swing.JPanel();
slidersPanel = new javax.swing.JPanel();
accuracySlider = new javax.swing.JSlider();
intensitySlider = new javax.swing.JSlider();
spectrumHelpJButton = new javax.swing.JButton();
exportSpectrumJButton = new javax.swing.JButton();
hideSpectrumPanelJButton = new javax.swing.JButton();
maximizeSpectrumPanelJButton = new javax.swing.JButton();
contextMenuSpectrumBackgroundPanel = new javax.swing.JPanel();
toolBar = new javax.swing.JToolBar();
showProteinsBeforeSeparator = new javax.swing.JPopupMenu.Separator();
showProteinsJButton = new javax.swing.JButton();
showProteinsAfterSeparator = new javax.swing.JPopupMenu.Separator();
showPeptidesAndPsmsJButton = new javax.swing.JButton();
showPeptidesAfterSeparator = new javax.swing.JPopupMenu.Separator();
showSpectrumJButton = new javax.swing.JButton();
showSpectrumAfterSeparator = new javax.swing.JPopupMenu.Separator();
showCoverageJButton = new javax.swing.JButton();
showCoverageAfterSeparator = new javax.swing.JPopupMenu.Separator();
selectAllMenuItem.setText("Select All");
selectAllMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
selectAllMenuItemActionPerformed(evt);
}
});
selectJPopupMenu.add(selectAllMenuItem);
deselectAllMenuItem.setText("Deselect All");
deselectAllMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deselectAllMenuItemActionPerformed(evt);
}
});
selectJPopupMenu.add(deselectAllMenuItem);
coveragePeptideTypesButtonGroup.add(coverageShowAllPeptidesJRadioButtonMenuItem);
coverageShowAllPeptidesJRadioButtonMenuItem.setSelected(true);
coverageShowAllPeptidesJRadioButtonMenuItem.setText("All Peptides");
coverageShowAllPeptidesJRadioButtonMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
coverageShowAllPeptidesJRadioButtonMenuItemActionPerformed(evt);
}
});
sequenceCoverageJPopupMenu.add(coverageShowAllPeptidesJRadioButtonMenuItem);
coveragePeptideTypesButtonGroup.add(coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItem);
coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItem.setText("Enzymatic Peptides");
coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItemActionPerformed(evt);
}
});
sequenceCoverageJPopupMenu.add(coverageShowEnzymaticPeptidesOnlyJRadioButtonMenuItem);
coveragePeptideTypesButtonGroup.add(coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItem);
coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItem.setText("Non Enzymatic Peptides");
coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItemActionPerformed(evt);
}
});
sequenceCoverageJPopupMenu.add(coverageShowTruncatedPeptidesOnlyJRadioButtonMenuItem);
sequenceCoverageJPopupMenu.add(jSeparator1);
coverageShowPossiblePeptidesJCheckBoxMenuItem.setSelected(true);
coverageShowPossiblePeptidesJCheckBoxMenuItem.setText("Possible Coverage");
coverageShowPossiblePeptidesJCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
coverageShowPossiblePeptidesJCheckBoxMenuItemActionPerformed(evt);
}
});
sequenceCoverageJPopupMenu.add(coverageShowPossiblePeptidesJCheckBoxMenuItem);
sequenceCoveragePlotExportMenuItem.setText("Sequence Coverage Plot");
sequenceCoveragePlotExportMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sequenceCoveragePlotExportMenuItemActionPerformed(evt);
}
});
sequenceCoverageExportPopupMenu.add(sequenceCoveragePlotExportMenuItem);
sequenceCoverageSequenceExportMenuItem.setText("Protein Sequence");
sequenceCoverageSequenceExportMenuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sequenceCoverageSequenceExportMenuItemActionPerformed(evt);
}
});
sequenceCoverageExportPopupMenu.add(sequenceCoverageSequenceExportMenuItem);
setOpaque(false);
addComponentListener(new java.awt.event.ComponentAdapter() {
public void componentResized(java.awt.event.ComponentEvent evt) {
formComponentResized(evt);
}
});
overviewJPanel.setBackground(new java.awt.Color(255, 255, 255));
overviewJPanel.setOpaque(false);
overviewJPanel.setPreferredSize(new java.awt.Dimension(900, 800));
overviewJSplitPane.setBorder(null);
overviewJSplitPane.setDividerLocation(300);
overviewJSplitPane.setDividerSize(0);
overviewJSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
overviewJSplitPane.setResizeWeight(0.5);
proteinsJPanel.setOpaque(false);
// NOI18N
proteinsLayeredPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Proteins", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("sansserif", 1, 14)));
proteinsLayeredPanel.setOpaque(false);
proteinTable.setModel(new ProteinTableModel());
proteinTable.setGridColor(new java.awt.Color(204, 204, 204));
proteinTable.setOpaque(false);
proteinTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
proteinTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
proteinTableMouseMoved(evt);
}
});
proteinTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
proteinTableMouseClicked(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
proteinTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
proteinTableMouseReleased(evt);
}
});
proteinTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
proteinTableKeyReleased(evt);
}
});
proteinScrollPane.setViewportView(proteinTable);
proteinTable.getAccessibleContext().setAccessibleName("ProteinTable");
javax.swing.GroupLayout proteinsLayeredPanelLayout = new javax.swing.GroupLayout(proteinsLayeredPanel);
proteinsLayeredPanel.setLayout(proteinsLayeredPanelLayout);
proteinsLayeredPanelLayout.setHorizontalGroup(proteinsLayeredPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 938, Short.MAX_VALUE).addGroup(proteinsLayeredPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(proteinsLayeredPanelLayout.createSequentialGroup().addContainerGap().addComponent(proteinScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE).addContainerGap())));
proteinsLayeredPanelLayout.setVerticalGroup(proteinsLayeredPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 255, Short.MAX_VALUE).addGroup(proteinsLayeredPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(proteinsLayeredPanelLayout.createSequentialGroup().addContainerGap().addComponent(proteinScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE).addContainerGap())));
proteinsLayeredPane.add(proteinsLayeredPanel);
proteinsLayeredPanel.setBounds(0, 0, 950, 300);
// NOI18N
proteinsHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
proteinsHelpJButton.setToolTipText("Help");
proteinsHelpJButton.setBorder(null);
proteinsHelpJButton.setBorderPainted(false);
proteinsHelpJButton.setContentAreaFilled(false);
// NOI18N
proteinsHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
proteinsHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
proteinsHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
proteinsHelpJButtonMouseExited(evt);
}
});
proteinsHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
proteinsHelpJButtonActionPerformed(evt);
}
});
proteinsLayeredPane.setLayer(proteinsHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
proteinsLayeredPane.add(proteinsHelpJButton);
proteinsHelpJButton.setBounds(930, 0, 10, 19);
// NOI18N
exportProteinsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportProteinsJButton.setToolTipText("Copy to File");
exportProteinsJButton.setBorder(null);
exportProteinsJButton.setBorderPainted(false);
exportProteinsJButton.setContentAreaFilled(false);
// NOI18N
exportProteinsJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportProteinsJButton.setEnabled(false);
// NOI18N
exportProteinsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportProteinsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportProteinsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportProteinsJButtonMouseExited(evt);
}
});
exportProteinsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportProteinsJButtonActionPerformed(evt);
}
});
proteinsLayeredPane.setLayer(exportProteinsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
proteinsLayeredPane.add(exportProteinsJButton);
exportProteinsJButton.setBounds(920, 0, 10, 19);
// NOI18N
hideProteinsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide_grey.png")));
hideProteinsJButton.setToolTipText("Hide Proteins (Shift+Ctrl+P)");
hideProteinsJButton.setBorder(null);
hideProteinsJButton.setBorderPainted(false);
hideProteinsJButton.setContentAreaFilled(false);
// NOI18N
hideProteinsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide.png")));
hideProteinsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
hideProteinsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
hideProteinsJButtonMouseExited(evt);
}
});
hideProteinsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hideProteinsJButtonActionPerformed(evt);
}
});
proteinsLayeredPane.setLayer(hideProteinsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
proteinsLayeredPane.add(hideProteinsJButton);
hideProteinsJButton.setBounds(910, 0, 10, 19);
contextMenuProteinsBackgroundPanel.setOpaque(false);
javax.swing.GroupLayout contextMenuProteinsBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuProteinsBackgroundPanel);
contextMenuProteinsBackgroundPanel.setLayout(contextMenuProteinsBackgroundPanelLayout);
contextMenuProteinsBackgroundPanelLayout.setHorizontalGroup(contextMenuProteinsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 40, Short.MAX_VALUE));
contextMenuProteinsBackgroundPanelLayout.setVerticalGroup(contextMenuProteinsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
proteinsLayeredPane.setLayer(contextMenuProteinsBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
proteinsLayeredPane.add(contextMenuProteinsBackgroundPanel);
contextMenuProteinsBackgroundPanel.setBounds(910, 0, 40, 19);
javax.swing.GroupLayout proteinsJPanelLayout = new javax.swing.GroupLayout(proteinsJPanel);
proteinsJPanel.setLayout(proteinsJPanelLayout);
proteinsJPanelLayout.setHorizontalGroup(proteinsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(proteinsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 960, Short.MAX_VALUE));
proteinsJPanelLayout.setVerticalGroup(proteinsJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(proteinsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE));
overviewJSplitPane.setTopComponent(proteinsJPanel);
coverageJSplitPane.setBorder(null);
coverageJSplitPane.setDividerLocation(350);
coverageJSplitPane.setDividerSize(0);
coverageJSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
coverageJSplitPane.setResizeWeight(1.0);
sequenceCoverageJPanel.setOpaque(false);
sequenceCoverageTitledPanel.setBackground(new java.awt.Color(255, 255, 255));
// NOI18N
sequenceCoverageTitledPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Protein Sequence Coverage", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("sansserif", 1, 14)));
sequenceCoverageTitledPanel.setOpaque(false);
sequencePtmsPanel.setBackground(new java.awt.Color(255, 255, 255));
sequencePtmsPanel.setOpaque(false);
sequencePtmsPanel.setLayout(new javax.swing.BoxLayout(sequencePtmsPanel, javax.swing.BoxLayout.LINE_AXIS));
sequenceCoverageInnerPanel.setOpaque(false);
sequenceCoverageInnerPanel.setLayout(new javax.swing.BoxLayout(sequenceCoverageInnerPanel, javax.swing.BoxLayout.LINE_AXIS));
sequenceVariationsPanel.setBackground(new java.awt.Color(255, 255, 255));
sequenceVariationsPanel.setOpaque(false);
sequenceVariationsPanel.setLayout(new javax.swing.BoxLayout(sequenceVariationsPanel, javax.swing.BoxLayout.LINE_AXIS));
javax.swing.GroupLayout sequenceCoverageTitledPanelLayout = new javax.swing.GroupLayout(sequenceCoverageTitledPanel);
sequenceCoverageTitledPanel.setLayout(sequenceCoverageTitledPanelLayout);
sequenceCoverageTitledPanelLayout.setHorizontalGroup(sequenceCoverageTitledPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(sequenceCoverageTitledPanelLayout.createSequentialGroup().addContainerGap().addGroup(sequenceCoverageTitledPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(sequenceVariationsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(sequenceCoverageInnerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(sequencePtmsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 918, Short.MAX_VALUE)).addContainerGap()));
sequenceCoverageTitledPanelLayout.setVerticalGroup(sequenceCoverageTitledPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(sequenceCoverageTitledPanelLayout.createSequentialGroup().addGap(0, 0, 0).addComponent(sequencePtmsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(2, 2, 2).addComponent(sequenceCoverageInnerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE).addGap(2, 2, 2).addComponent(sequenceVariationsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(0, 0, 0)));
sequenceCoverageLayeredPane.add(sequenceCoverageTitledPanel);
sequenceCoverageTitledPanel.setBounds(0, 0, 950, 230);
// NOI18N
sequenceCoveragetHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
sequenceCoveragetHelpJButton.setToolTipText("Help");
sequenceCoveragetHelpJButton.setBorder(null);
sequenceCoveragetHelpJButton.setBorderPainted(false);
sequenceCoveragetHelpJButton.setContentAreaFilled(false);
// NOI18N
sequenceCoveragetHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
sequenceCoveragetHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
sequenceCoveragetHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
sequenceCoveragetHelpJButtonMouseExited(evt);
}
});
sequenceCoveragetHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sequenceCoveragetHelpJButtonActionPerformed(evt);
}
});
sequenceCoverageLayeredPane.setLayer(sequenceCoveragetHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
sequenceCoverageLayeredPane.add(sequenceCoveragetHelpJButton);
sequenceCoveragetHelpJButton.setBounds(930, 0, 10, 19);
// NOI18N
exportSequenceCoverageContextJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportSequenceCoverageContextJButton.setToolTipText("Export");
exportSequenceCoverageContextJButton.setBorder(null);
exportSequenceCoverageContextJButton.setBorderPainted(false);
exportSequenceCoverageContextJButton.setContentAreaFilled(false);
// NOI18N
exportSequenceCoverageContextJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportSequenceCoverageContextJButton.setEnabled(false);
// NOI18N
exportSequenceCoverageContextJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportSequenceCoverageContextJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportSequenceCoverageContextJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportSequenceCoverageContextJButtonMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
exportSequenceCoverageContextJButtonMouseReleased(evt);
}
});
sequenceCoverageLayeredPane.setLayer(exportSequenceCoverageContextJButton, javax.swing.JLayeredPane.POPUP_LAYER);
sequenceCoverageLayeredPane.add(exportSequenceCoverageContextJButton);
exportSequenceCoverageContextJButton.setBounds(920, 0, 10, 19);
// NOI18N
hideCoverageJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide_grey.png")));
hideCoverageJButton.setToolTipText("Hide Coverage (Shift+Ctrl+E)");
hideCoverageJButton.setBorder(null);
hideCoverageJButton.setBorderPainted(false);
hideCoverageJButton.setContentAreaFilled(false);
// NOI18N
hideCoverageJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide.png")));
hideCoverageJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
hideCoverageJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
hideCoverageJButtonMouseExited(evt);
}
});
hideCoverageJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hideCoverageJButtonActionPerformed(evt);
}
});
sequenceCoverageLayeredPane.setLayer(hideCoverageJButton, javax.swing.JLayeredPane.POPUP_LAYER);
sequenceCoverageLayeredPane.add(hideCoverageJButton);
hideCoverageJButton.setBounds(910, 0, 10, 19);
// NOI18N
sequenceCoverageOptionsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/contextual_menu_gray.png")));
sequenceCoverageOptionsJButton.setToolTipText("Coverage Options");
sequenceCoverageOptionsJButton.setBorder(null);
sequenceCoverageOptionsJButton.setBorderPainted(false);
sequenceCoverageOptionsJButton.setContentAreaFilled(false);
// NOI18N
sequenceCoverageOptionsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/contextual_menu_black.png")));
sequenceCoverageOptionsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
sequenceCoverageOptionsJButtonMouseReleased(evt);
}
public void mouseEntered(java.awt.event.MouseEvent evt) {
sequenceCoverageOptionsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
sequenceCoverageOptionsJButtonMouseExited(evt);
}
});
sequenceCoverageLayeredPane.setLayer(sequenceCoverageOptionsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
sequenceCoverageLayeredPane.add(sequenceCoverageOptionsJButton);
sequenceCoverageOptionsJButton.setBounds(895, 5, 10, 19);
contextMenuSequenceCoverageBackgroundPanel.setOpaque(false);
javax.swing.GroupLayout contextMenuSequenceCoverageBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuSequenceCoverageBackgroundPanel);
contextMenuSequenceCoverageBackgroundPanel.setLayout(contextMenuSequenceCoverageBackgroundPanelLayout);
contextMenuSequenceCoverageBackgroundPanelLayout.setHorizontalGroup(contextMenuSequenceCoverageBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 50, Short.MAX_VALUE));
contextMenuSequenceCoverageBackgroundPanelLayout.setVerticalGroup(contextMenuSequenceCoverageBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
sequenceCoverageLayeredPane.setLayer(contextMenuSequenceCoverageBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
sequenceCoverageLayeredPane.add(contextMenuSequenceCoverageBackgroundPanel);
contextMenuSequenceCoverageBackgroundPanel.setBounds(890, 0, 50, 19);
javax.swing.GroupLayout sequenceCoverageJPanelLayout = new javax.swing.GroupLayout(sequenceCoverageJPanel);
sequenceCoverageJPanel.setLayout(sequenceCoverageJPanelLayout);
sequenceCoverageJPanelLayout.setHorizontalGroup(sequenceCoverageJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(sequenceCoverageLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 960, Short.MAX_VALUE));
sequenceCoverageJPanelLayout.setVerticalGroup(sequenceCoverageJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(sequenceCoverageLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE));
coverageJSplitPane.setRightComponent(sequenceCoverageJPanel);
peptidesPsmSpectrumFragmentIonsJSplitPane.setBorder(null);
peptidesPsmSpectrumFragmentIonsJSplitPane.setDividerLocation(450);
peptidesPsmSpectrumFragmentIonsJSplitPane.setDividerSize(0);
peptidesPsmSpectrumFragmentIonsJSplitPane.setResizeWeight(0.5);
peptidesPsmJSplitPane.setBorder(null);
peptidesPsmJSplitPane.setDividerLocation(175);
peptidesPsmJSplitPane.setDividerSize(0);
peptidesPsmJSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
peptidesPsmJSplitPane.setResizeWeight(0.5);
peptidesJPanel.setOpaque(false);
// NOI18N
peptidesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Peptides", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("sansserif", 1, 14)));
peptidesPanel.setOpaque(false);
peptideTable.setModel(new PeptideTableModel());
peptideTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
peptideTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
peptideTableMouseMoved(evt);
}
});
peptideTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
peptideTableMouseClicked(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
peptideTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
peptideTableMouseReleased(evt);
}
});
peptideTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
peptideTableKeyReleased(evt);
}
});
peptideScrollPane.setViewportView(peptideTable);
javax.swing.GroupLayout peptidesPanelLayout = new javax.swing.GroupLayout(peptidesPanel);
peptidesPanel.setLayout(peptidesPanelLayout);
peptidesPanelLayout.setHorizontalGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 438, Short.MAX_VALUE).addGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(peptidesPanelLayout.createSequentialGroup().addContainerGap().addComponent(peptideScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 418, Short.MAX_VALUE).addContainerGap())));
peptidesPanelLayout.setVerticalGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 125, Short.MAX_VALUE).addGroup(peptidesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(peptidesPanelLayout.createSequentialGroup().addContainerGap().addComponent(peptideScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE).addContainerGap())));
peptidesLayeredPane.add(peptidesPanel);
peptidesPanel.setBounds(0, 0, 450, 170);
// NOI18N
peptidesHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
peptidesHelpJButton.setToolTipText("Help");
peptidesHelpJButton.setBorder(null);
peptidesHelpJButton.setBorderPainted(false);
peptidesHelpJButton.setContentAreaFilled(false);
// NOI18N
peptidesHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
peptidesHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
peptidesHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
peptidesHelpJButtonMouseExited(evt);
}
});
peptidesHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
peptidesHelpJButtonActionPerformed(evt);
}
});
peptidesLayeredPane.setLayer(peptidesHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
peptidesLayeredPane.add(peptidesHelpJButton);
peptidesHelpJButton.setBounds(430, 0, 10, 19);
// NOI18N
exportPeptidesJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPeptidesJButton.setToolTipText("Copy to File");
exportPeptidesJButton.setBorder(null);
exportPeptidesJButton.setBorderPainted(false);
exportPeptidesJButton.setContentAreaFilled(false);
// NOI18N
exportPeptidesJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPeptidesJButton.setEnabled(false);
// NOI18N
exportPeptidesJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPeptidesJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPeptidesJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPeptidesJButtonMouseExited(evt);
}
});
exportPeptidesJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPeptidesJButtonActionPerformed(evt);
}
});
peptidesLayeredPane.setLayer(exportPeptidesJButton, javax.swing.JLayeredPane.POPUP_LAYER);
peptidesLayeredPane.add(exportPeptidesJButton);
exportPeptidesJButton.setBounds(420, 0, 10, 19);
// NOI18N
hidePeptideAndPsmsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide_grey.png")));
hidePeptideAndPsmsJButton.setToolTipText("Hide Peptides & PSMs (Shift+Ctrl+E)");
hidePeptideAndPsmsJButton.setBorder(null);
hidePeptideAndPsmsJButton.setBorderPainted(false);
hidePeptideAndPsmsJButton.setContentAreaFilled(false);
// NOI18N
hidePeptideAndPsmsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide.png")));
hidePeptideAndPsmsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
hidePeptideAndPsmsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
hidePeptideAndPsmsJButtonMouseExited(evt);
}
});
hidePeptideAndPsmsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hidePeptideAndPsmsJButtonActionPerformed(evt);
}
});
peptidesLayeredPane.setLayer(hidePeptideAndPsmsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
peptidesLayeredPane.add(hidePeptideAndPsmsJButton);
hidePeptideAndPsmsJButton.setBounds(410, 0, 10, 19);
contextMenuPeptidesBackgroundPanel.setOpaque(false);
javax.swing.GroupLayout contextMenuPeptidesBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPeptidesBackgroundPanel);
contextMenuPeptidesBackgroundPanel.setLayout(contextMenuPeptidesBackgroundPanelLayout);
contextMenuPeptidesBackgroundPanelLayout.setHorizontalGroup(contextMenuPeptidesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 40, Short.MAX_VALUE));
contextMenuPeptidesBackgroundPanelLayout.setVerticalGroup(contextMenuPeptidesBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
peptidesLayeredPane.setLayer(contextMenuPeptidesBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
peptidesLayeredPane.add(contextMenuPeptidesBackgroundPanel);
contextMenuPeptidesBackgroundPanel.setBounds(400, 0, 40, 19);
javax.swing.GroupLayout peptidesJPanelLayout = new javax.swing.GroupLayout(peptidesJPanel);
peptidesJPanel.setLayout(peptidesJPanelLayout);
peptidesJPanelLayout.setHorizontalGroup(peptidesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(peptidesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE));
peptidesJPanelLayout.setVerticalGroup(peptidesJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(peptidesLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE));
peptidesPsmJSplitPane.setTopComponent(peptidesJPanel);
psmJPanel.setOpaque(false);
// NOI18N
psmsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Peptide Spectrum Matches", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("sansserif", 1, 14)));
psmsPanel.setOpaque(false);
psmTable.setModel(new PsmTableModel());
psmTable.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
psmTableMouseMoved(evt);
}
});
psmTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
psmTableMouseClicked(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
psmTableMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
psmTableMouseReleased(evt);
}
});
psmTable.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
psmTableKeyReleased(evt);
}
});
spectraScrollPane.setViewportView(psmTable);
javax.swing.GroupLayout psmsPanelLayout = new javax.swing.GroupLayout(psmsPanel);
psmsPanel.setLayout(psmsPanelLayout);
psmsPanelLayout.setHorizontalGroup(psmsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 438, Short.MAX_VALUE).addGroup(psmsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(psmsPanelLayout.createSequentialGroup().addContainerGap().addComponent(spectraScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 418, Short.MAX_VALUE).addContainerGap())));
psmsPanelLayout.setVerticalGroup(psmsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 125, Short.MAX_VALUE).addGroup(psmsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(psmsPanelLayout.createSequentialGroup().addContainerGap().addComponent(spectraScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE).addContainerGap())));
psmsLayeredPane.add(psmsPanel);
psmsPanel.setBounds(0, 0, 450, 170);
// NOI18N
psmsHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
psmsHelpJButton.setToolTipText("Help");
psmsHelpJButton.setBorder(null);
psmsHelpJButton.setBorderPainted(false);
psmsHelpJButton.setContentAreaFilled(false);
// NOI18N
psmsHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
psmsHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
psmsHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
psmsHelpJButtonMouseExited(evt);
}
});
psmsHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
psmsHelpJButtonActionPerformed(evt);
}
});
psmsLayeredPane.setLayer(psmsHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
psmsLayeredPane.add(psmsHelpJButton);
psmsHelpJButton.setBounds(430, 0, 10, 19);
// NOI18N
exportPsmsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPsmsJButton.setToolTipText("Copy to File");
exportPsmsJButton.setBorder(null);
exportPsmsJButton.setBorderPainted(false);
exportPsmsJButton.setContentAreaFilled(false);
// NOI18N
exportPsmsJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportPsmsJButton.setEnabled(false);
// NOI18N
exportPsmsJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportPsmsJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportPsmsJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportPsmsJButtonMouseExited(evt);
}
});
exportPsmsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exportPsmsJButtonActionPerformed(evt);
}
});
psmsLayeredPane.setLayer(exportPsmsJButton, javax.swing.JLayeredPane.POPUP_LAYER);
psmsLayeredPane.add(exportPsmsJButton);
exportPsmsJButton.setBounds(420, 0, 10, 19);
// NOI18N
hidePeptideAndPsmsJButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide_grey.png")));
hidePeptideAndPsmsJButton2.setToolTipText("Hide Peptides & PSMs (Shift+Ctrl+E)");
hidePeptideAndPsmsJButton2.setBorder(null);
hidePeptideAndPsmsJButton2.setBorderPainted(false);
hidePeptideAndPsmsJButton2.setContentAreaFilled(false);
// NOI18N
hidePeptideAndPsmsJButton2.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide.png")));
hidePeptideAndPsmsJButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
hidePeptideAndPsmsJButton2MouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
hidePeptideAndPsmsJButton2MouseExited(evt);
}
});
hidePeptideAndPsmsJButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hidePeptideAndPsmsJButton2ActionPerformed(evt);
}
});
psmsLayeredPane.setLayer(hidePeptideAndPsmsJButton2, javax.swing.JLayeredPane.POPUP_LAYER);
psmsLayeredPane.add(hidePeptideAndPsmsJButton2);
hidePeptideAndPsmsJButton2.setBounds(410, 0, 10, 19);
contextMenuPsmsBackgroundPanel.setOpaque(false);
javax.swing.GroupLayout contextMenuPsmsBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuPsmsBackgroundPanel);
contextMenuPsmsBackgroundPanel.setLayout(contextMenuPsmsBackgroundPanelLayout);
contextMenuPsmsBackgroundPanelLayout.setHorizontalGroup(contextMenuPsmsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 40, Short.MAX_VALUE));
contextMenuPsmsBackgroundPanelLayout.setVerticalGroup(contextMenuPsmsBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
psmsLayeredPane.setLayer(contextMenuPsmsBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
psmsLayeredPane.add(contextMenuPsmsBackgroundPanel);
contextMenuPsmsBackgroundPanel.setBounds(400, 0, 40, 19);
javax.swing.GroupLayout psmJPanelLayout = new javax.swing.GroupLayout(psmJPanel);
psmJPanel.setLayout(psmJPanelLayout);
psmJPanelLayout.setHorizontalGroup(psmJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(psmsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE));
psmJPanelLayout.setVerticalGroup(psmJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(psmsLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE));
peptidesPsmJSplitPane.setRightComponent(psmJPanel);
peptidesPsmSpectrumFragmentIonsJSplitPane.setLeftComponent(peptidesPsmJSplitPane);
spectrumMainJPanel.setOpaque(false);
// NOI18N
spectrumMainPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Spectrum & Fragment Ions", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("sansserif", 1, 14)));
spectrumMainPanel.setOpaque(false);
slidersSplitPane.setBackground(new java.awt.Color(51, 51, 51));
slidersSplitPane.setBorder(null);
slidersSplitPane.setDividerLocation(430);
slidersSplitPane.setDividerSize(0);
spectrumJTabbedPane.setBackground(new java.awt.Color(51, 51, 51));
spectrumJTabbedPane.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);
spectrumJTabbedPane.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
spectrumJTabbedPaneStateChanged(evt);
}
});
spectrumJTabbedPane.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
spectrumJTabbedPaneMouseWheelMoved(evt);
}
});
spectrumJTabbedPane.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
spectrumJTabbedPaneMouseEntered(evt);
}
});
fragmentIonJPanel.setOpaque(false);
fragmentIonsJScrollPane.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
fragmentIonsJScrollPaneMouseWheelMoved(evt);
}
});
ionTableJToolBar.setBackground(new java.awt.Color(255, 255, 255));
ionTableJToolBar.setBorder(null);
ionTableJToolBar.setFloatable(false);
ionTableJToolBar.setRollover(true);
ionTableJToolBar.setBorderPainted(false);
ionTableJToolBar.setOpaque(false);
ionTableAnnotationMenuPanel.setLayout(new javax.swing.BoxLayout(ionTableAnnotationMenuPanel, javax.swing.BoxLayout.LINE_AXIS));
ionTableJToolBar.add(ionTableAnnotationMenuPanel);
javax.swing.GroupLayout fragmentIonJPanelLayout = new javax.swing.GroupLayout(fragmentIonJPanel);
fragmentIonJPanel.setLayout(fragmentIonJPanelLayout);
fragmentIonJPanelLayout.setHorizontalGroup(fragmentIonJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, fragmentIonJPanelLayout.createSequentialGroup().addContainerGap().addGroup(fragmentIonJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(fragmentIonsJScrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE).addComponent(ionTableJToolBar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE)).addContainerGap()));
fragmentIonJPanelLayout.setVerticalGroup(fragmentIonJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, fragmentIonJPanelLayout.createSequentialGroup().addContainerGap().addComponent(fragmentIonsJScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(ionTableJToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
spectrumJTabbedPane.addTab("Ion Table", fragmentIonJPanel);
bubblePlotTabJPanel.setBackground(new java.awt.Color(255, 255, 255));
bubblePlotTabJPanel.setOpaque(false);
bubbleJPanel.setOpaque(false);
bubbleJPanel.setLayout(new javax.swing.BoxLayout(bubbleJPanel, javax.swing.BoxLayout.LINE_AXIS));
bubblePlotJToolBar.setBackground(new java.awt.Color(255, 255, 255));
bubblePlotJToolBar.setBorder(null);
bubblePlotJToolBar.setFloatable(false);
bubblePlotJToolBar.setRollover(true);
bubblePlotJToolBar.setBorderPainted(false);
bubblePlotJToolBar.setOpaque(false);
bubbleAnnotationMenuPanel.setLayout(new javax.swing.BoxLayout(bubbleAnnotationMenuPanel, javax.swing.BoxLayout.LINE_AXIS));
bubblePlotJToolBar.add(bubbleAnnotationMenuPanel);
javax.swing.GroupLayout bubblePlotTabJPanelLayout = new javax.swing.GroupLayout(bubblePlotTabJPanel);
bubblePlotTabJPanel.setLayout(bubblePlotTabJPanelLayout);
bubblePlotTabJPanelLayout.setHorizontalGroup(bubblePlotTabJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(bubblePlotTabJPanelLayout.createSequentialGroup().addContainerGap().addComponent(bubblePlotJToolBar, javax.swing.GroupLayout.DEFAULT_SIZE, 405, Short.MAX_VALUE).addContainerGap()).addGroup(bubblePlotTabJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(bubbleJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)));
bubblePlotTabJPanelLayout.setVerticalGroup(bubblePlotTabJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(bubblePlotTabJPanelLayout.createSequentialGroup().addContainerGap(269, Short.MAX_VALUE).addComponent(bubblePlotJToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addGroup(bubblePlotTabJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(bubblePlotTabJPanelLayout.createSequentialGroup().addComponent(bubbleJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE).addGap(25, 25, 25))));
spectrumJTabbedPane.addTab("Bubble Plot", bubblePlotTabJPanel);
spectrumContainerJPanel.setOpaque(false);
spectrumJToolBar.setBackground(new java.awt.Color(255, 255, 255));
spectrumJToolBar.setBorder(null);
spectrumJToolBar.setFloatable(false);
spectrumJToolBar.setRollover(true);
spectrumJToolBar.setBorderPainted(false);
spectrumJToolBar.setOpaque(false);
spectrumAnnotationMenuPanel.setLayout(new javax.swing.BoxLayout(spectrumAnnotationMenuPanel, javax.swing.BoxLayout.LINE_AXIS));
spectrumJToolBar.add(spectrumAnnotationMenuPanel);
spectrumSplitPane.setBorder(null);
spectrumSplitPane.setDividerLocation(80);
spectrumSplitPane.setDividerSize(0);
spectrumSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
secondarySpectrumPlotsJPanel.setMinimumSize(new java.awt.Dimension(0, 80));
secondarySpectrumPlotsJPanel.setOpaque(false);
secondarySpectrumPlotsJPanel.setLayout(new javax.swing.BoxLayout(secondarySpectrumPlotsJPanel, javax.swing.BoxLayout.LINE_AXIS));
spectrumSplitPane.setTopComponent(secondarySpectrumPlotsJPanel);
spectrumOuterJPanel.setOpaque(false);
spectrumPaddingPanel.setOpaque(false);
javax.swing.GroupLayout spectrumPaddingPanelLayout = new javax.swing.GroupLayout(spectrumPaddingPanel);
spectrumPaddingPanel.setLayout(spectrumPaddingPanelLayout);
spectrumPaddingPanelLayout.setHorizontalGroup(spectrumPaddingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
spectrumPaddingPanelLayout.setVerticalGroup(spectrumPaddingPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 17, Short.MAX_VALUE));
spectrumJPanel.setOpaque(false);
spectrumJPanel.setLayout(new java.awt.BorderLayout());
javax.swing.GroupLayout spectrumOuterJPanelLayout = new javax.swing.GroupLayout(spectrumOuterJPanel);
spectrumOuterJPanel.setLayout(spectrumOuterJPanelLayout);
spectrumOuterJPanelLayout.setHorizontalGroup(spectrumOuterJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(spectrumPaddingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addComponent(spectrumJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE));
spectrumOuterJPanelLayout.setVerticalGroup(spectrumOuterJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(spectrumOuterJPanelLayout.createSequentialGroup().addComponent(spectrumPaddingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(spectrumJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 160, Short.MAX_VALUE)));
spectrumSplitPane.setRightComponent(spectrumOuterJPanel);
javax.swing.GroupLayout spectrumContainerJPanelLayout = new javax.swing.GroupLayout(spectrumContainerJPanel);
spectrumContainerJPanel.setLayout(spectrumContainerJPanelLayout);
spectrumContainerJPanelLayout.setHorizontalGroup(spectrumContainerJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(spectrumContainerJPanelLayout.createSequentialGroup().addContainerGap().addComponent(spectrumJToolBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addContainerGap()).addComponent(spectrumSplitPane, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE));
spectrumContainerJPanelLayout.setVerticalGroup(spectrumContainerJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, spectrumContainerJPanelLayout.createSequentialGroup().addComponent(spectrumSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 263, Short.MAX_VALUE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(spectrumJToolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));
spectrumJTabbedPane.addTab("Spectrum", spectrumContainerJPanel);
spectrumJTabbedPane.setSelectedIndex(2);
slidersSplitPane.setLeftComponent(spectrumJTabbedPane);
slidersPanel.setOpaque(false);
accuracySlider.setOrientation(javax.swing.JSlider.VERTICAL);
accuracySlider.setPaintTicks(true);
accuracySlider.setToolTipText("Annotation Accuracy");
accuracySlider.setValue(100);
accuracySlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
accuracySliderStateChanged(evt);
}
});
accuracySlider.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
accuracySliderMouseWheelMoved(evt);
}
});
intensitySlider.setOrientation(javax.swing.JSlider.VERTICAL);
intensitySlider.setPaintTicks(true);
intensitySlider.setToolTipText("Annotation Level");
intensitySlider.setValue(75);
intensitySlider.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
intensitySliderStateChanged(evt);
}
});
intensitySlider.addMouseWheelListener(new java.awt.event.MouseWheelListener() {
public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
intensitySliderMouseWheelMoved(evt);
}
});
javax.swing.GroupLayout slidersPanelLayout = new javax.swing.GroupLayout(slidersPanel);
slidersPanel.setLayout(slidersPanelLayout);
slidersPanelLayout.setHorizontalGroup(slidersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, slidersPanelLayout.createSequentialGroup().addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGroup(slidersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(accuracySlider, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(intensitySlider, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(0, 0, 0)));
slidersPanelLayout.setVerticalGroup(slidersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(slidersPanelLayout.createSequentialGroup().addGap(29, 29, 29).addComponent(accuracySlider, javax.swing.GroupLayout.DEFAULT_SIZE, 86, Short.MAX_VALUE).addGap(29, 29, 29).addComponent(intensitySlider, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE).addGap(66, 66, 66)));
slidersSplitPane.setRightComponent(slidersPanel);
javax.swing.GroupLayout spectrumMainPanelLayout = new javax.swing.GroupLayout(spectrumMainPanel);
spectrumMainPanel.setLayout(spectrumMainPanelLayout);
spectrumMainPanelLayout.setHorizontalGroup(spectrumMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(spectrumMainPanelLayout.createSequentialGroup().addContainerGap().addComponent(slidersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 458, Short.MAX_VALUE).addContainerGap()));
spectrumMainPanelLayout.setVerticalGroup(spectrumMainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(spectrumMainPanelLayout.createSequentialGroup().addComponent(slidersSplitPane).addContainerGap()));
spectrumLayeredPane.add(spectrumMainPanel);
spectrumMainPanel.setBounds(0, 0, 490, 350);
// NOI18N
spectrumHelpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame_grey.png")));
spectrumHelpJButton.setToolTipText("Help");
spectrumHelpJButton.setBorder(null);
spectrumHelpJButton.setBorderPainted(false);
spectrumHelpJButton.setContentAreaFilled(false);
// NOI18N
spectrumHelpJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/help_no_frame.png")));
spectrumHelpJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
spectrumHelpJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
spectrumHelpJButtonMouseExited(evt);
}
});
spectrumHelpJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
spectrumHelpJButtonActionPerformed(evt);
}
});
spectrumLayeredPane.setLayer(spectrumHelpJButton, javax.swing.JLayeredPane.POPUP_LAYER);
spectrumLayeredPane.add(spectrumHelpJButton);
spectrumHelpJButton.setBounds(460, 0, 10, 19);
// NOI18N
exportSpectrumJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportSpectrumJButton.setToolTipText("Export");
exportSpectrumJButton.setBorder(null);
exportSpectrumJButton.setBorderPainted(false);
exportSpectrumJButton.setContentAreaFilled(false);
// NOI18N
exportSpectrumJButton.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame_grey.png")));
exportSpectrumJButton.setEnabled(false);
// NOI18N
exportSpectrumJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/export_no_frame.png")));
exportSpectrumJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
exportSpectrumJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
exportSpectrumJButtonMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
exportSpectrumJButtonMouseReleased(evt);
}
});
spectrumLayeredPane.setLayer(exportSpectrumJButton, javax.swing.JLayeredPane.POPUP_LAYER);
spectrumLayeredPane.add(exportSpectrumJButton);
exportSpectrumJButton.setBounds(450, 0, 10, 19);
// NOI18N
hideSpectrumPanelJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide_grey.png")));
hideSpectrumPanelJButton.setToolTipText("Hide Spectrum (Shift+Ctrl+E)");
hideSpectrumPanelJButton.setBorder(null);
hideSpectrumPanelJButton.setBorderPainted(false);
hideSpectrumPanelJButton.setContentAreaFilled(false);
// NOI18N
hideSpectrumPanelJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/hide.png")));
hideSpectrumPanelJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
hideSpectrumPanelJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
hideSpectrumPanelJButtonMouseExited(evt);
}
});
hideSpectrumPanelJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
hideSpectrumPanelJButtonActionPerformed(evt);
}
});
spectrumLayeredPane.setLayer(hideSpectrumPanelJButton, javax.swing.JLayeredPane.POPUP_LAYER);
spectrumLayeredPane.add(hideSpectrumPanelJButton);
hideSpectrumPanelJButton.setBounds(440, 0, 10, 19);
// NOI18N
maximizeSpectrumPanelJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/maximize_grey.png")));
maximizeSpectrumPanelJButton.setToolTipText("Maximize Spectrum");
maximizeSpectrumPanelJButton.setBorder(null);
maximizeSpectrumPanelJButton.setBorderPainted(false);
maximizeSpectrumPanelJButton.setContentAreaFilled(false);
// NOI18N
maximizeSpectrumPanelJButton.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/maximize.png")));
maximizeSpectrumPanelJButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
maximizeSpectrumPanelJButtonMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
maximizeSpectrumPanelJButtonMouseExited(evt);
}
});
maximizeSpectrumPanelJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
maximizeSpectrumPanelJButtonActionPerformed(evt);
}
});
spectrumLayeredPane.setLayer(maximizeSpectrumPanelJButton, javax.swing.JLayeredPane.POPUP_LAYER);
spectrumLayeredPane.add(maximizeSpectrumPanelJButton);
maximizeSpectrumPanelJButton.setBounds(425, 5, 10, 19);
contextMenuSpectrumBackgroundPanel.setOpaque(false);
javax.swing.GroupLayout contextMenuSpectrumBackgroundPanelLayout = new javax.swing.GroupLayout(contextMenuSpectrumBackgroundPanel);
contextMenuSpectrumBackgroundPanel.setLayout(contextMenuSpectrumBackgroundPanelLayout);
contextMenuSpectrumBackgroundPanelLayout.setHorizontalGroup(contextMenuSpectrumBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 60, Short.MAX_VALUE));
contextMenuSpectrumBackgroundPanelLayout.setVerticalGroup(contextMenuSpectrumBackgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 19, Short.MAX_VALUE));
spectrumLayeredPane.setLayer(contextMenuSpectrumBackgroundPanel, javax.swing.JLayeredPane.POPUP_LAYER);
spectrumLayeredPane.add(contextMenuSpectrumBackgroundPanel);
contextMenuSpectrumBackgroundPanel.setBounds(420, 0, 60, 19);
javax.swing.GroupLayout spectrumMainJPanelLayout = new javax.swing.GroupLayout(spectrumMainJPanel);
spectrumMainJPanel.setLayout(spectrumMainJPanelLayout);
spectrumMainJPanelLayout.setHorizontalGroup(spectrumMainJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(spectrumLayeredPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 510, Short.MAX_VALUE));
spectrumMainJPanelLayout.setVerticalGroup(spectrumMainJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(spectrumLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE));
peptidesPsmSpectrumFragmentIonsJSplitPane.setRightComponent(spectrumMainJPanel);
coverageJSplitPane.setLeftComponent(peptidesPsmSpectrumFragmentIonsJSplitPane);
overviewJSplitPane.setRightComponent(coverageJSplitPane);
javax.swing.GroupLayout overviewJPanelLayout = new javax.swing.GroupLayout(overviewJPanel);
overviewJPanel.setLayout(overviewJPanelLayout);
overviewJPanelLayout.setHorizontalGroup(overviewJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(overviewJPanelLayout.createSequentialGroup().addContainerGap().addComponent(overviewJSplitPane).addContainerGap()));
overviewJPanelLayout.setVerticalGroup(overviewJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(overviewJPanelLayout.createSequentialGroup().addContainerGap().addComponent(overviewJSplitPane).addContainerGap()));
backgroundLayeredPane.add(overviewJPanel);
overviewJPanel.setBounds(0, 0, 980, 720);
toolBar.setBackground(new java.awt.Color(255, 255, 255));
toolBar.setBorder(null);
toolBar.setFloatable(false);
toolBar.setRollover(true);
toolBar.setOpaque(false);
showProteinsBeforeSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
showProteinsBeforeSeparator.setOpaque(true);
toolBar.add(showProteinsBeforeSeparator);
// NOI18N
showProteinsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/list2.gif")));
showProteinsJButton.setText("Proteins");
showProteinsJButton.setToolTipText("Click to Show (Shift+Ctrl+P)");
showProteinsJButton.setFocusable(false);
showProteinsJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
showProteinsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showProteinsJButtonActionPerformed(evt);
}
});
toolBar.add(showProteinsJButton);
showProteinsAfterSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
showProteinsAfterSeparator.setOpaque(true);
toolBar.add(showProteinsAfterSeparator);
// NOI18N
showPeptidesAndPsmsJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/list2.gif")));
showPeptidesAndPsmsJButton.setText("Peptides & PSMs");
showPeptidesAndPsmsJButton.setToolTipText("Click to Show (Shift+Ctrl+E)");
showPeptidesAndPsmsJButton.setFocusable(false);
showPeptidesAndPsmsJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
showPeptidesAndPsmsJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showPeptidesAndPsmsJButtonActionPerformed(evt);
}
});
toolBar.add(showPeptidesAndPsmsJButton);
showPeptidesAfterSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
showPeptidesAfterSeparator.setOpaque(true);
toolBar.add(showPeptidesAfterSeparator);
// NOI18N
showSpectrumJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/spectrum.GIF")));
showSpectrumJButton.setText("Spectrum & Fragment Ions");
showSpectrumJButton.setToolTipText("Click to Show (Shift+Ctrl+S)");
showSpectrumJButton.setFocusable(false);
showSpectrumJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
showSpectrumJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showSpectrumJButtonActionPerformed(evt);
}
});
toolBar.add(showSpectrumJButton);
showSpectrumAfterSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
showSpectrumAfterSeparator.setOpaque(true);
toolBar.add(showSpectrumAfterSeparator);
// NOI18N
showCoverageJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/coverage3.gif")));
showCoverageJButton.setText("Protein Sequence Coverage");
showCoverageJButton.setToolTipText("Click to Show (Shift+Ctrl+C)");
showCoverageJButton.setFocusable(false);
showCoverageJButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
showCoverageJButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
showCoverageJButtonActionPerformed(evt);
}
});
toolBar.add(showCoverageJButton);
showCoverageAfterSeparator.setOrientation(javax.swing.SwingConstants.VERTICAL);
showCoverageAfterSeparator.setOpaque(true);
toolBar.add(showCoverageAfterSeparator);
backgroundLayeredPane.add(toolBar);
toolBar.setBounds(0, 720, 980, 20);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 977, Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(backgroundLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 977, Short.MAX_VALUE)));
layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 742, Short.MAX_VALUE).addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(backgroundLayeredPane, javax.swing.GroupLayout.DEFAULT_SIZE, 742, Short.MAX_VALUE)));
}
use of eu.isas.peptideshaker.gui.tablemodels.ProteinTableModel in project peptide-shaker by compomics.
the class OverviewPanel method updateSpectrumPanelBorderTitle.
/**
* Update the spectrum and fragment ions panel border title with information
* about the currently selected PSM.
*
* @param currentPeptide the current peptide
* @param currentSpectrum the current spectrum
*/
private void updateSpectrumPanelBorderTitle(Spectrum currentSpectrum) {
if (peptideTable.getSelectedRow() != -1 && proteinTable.getSelectedRow() != -1 && psmTable.getSelectedRow() != -1) {
Identification identification = peptideShakerGUI.getIdentification();
int nAA = peptideShakerGUI.getDisplayParameters().getnAASurroundingPeptides();
SequenceProvider sequenceProvider = peptideShakerGUI.getSequenceProvider();
SelfUpdatingTableModel psmTableModel = (SelfUpdatingTableModel) psmTable.getModel();
int psmIndex = psmTableModel.getViewIndex(psmTable.getSelectedRow());
long spectrumMatchKey = psmKeys[psmIndex];
SpectrumMatch spectrumMatch = identification.getSpectrumMatch(spectrumMatchKey);
PeptideAssumption peptideAssumption = spectrumMatch.getBestPeptideAssumption();
SelfUpdatingTableModel peptideTableModel = (SelfUpdatingTableModel) peptideTable.getModel();
int peptideIndex = peptideTableModel.getViewIndex(peptideTable.getSelectedRow());
long peptideKey = peptideKeys[peptideIndex];
PeptideMatch peptideMatch = identification.getPeptideMatch(peptideKey);
Peptide peptide = peptideMatch.getPeptide();
SelfUpdatingTableModel proteinTableModel = (SelfUpdatingTableModel) proteinTable.getModel();
long proteinKey = proteinKeys[proteinTableModel.getViewIndex(proteinTable.getSelectedRow())];
ProteinMatch proteinMatch = identification.getProteinMatch(proteinKey);
String leadingAccession = proteinMatch.getLeadingAccession();
String aaBefore = Arrays.stream(peptide.getProteinMapping().get(leadingAccession)).mapToObj(index -> PeptideUtils.getAaBefore(peptide, leadingAccession, index, nAA, sequenceProvider)).collect(Collectors.joining("|"));
String aaAfter = Arrays.stream(peptide.getProteinMapping().get(leadingAccession)).mapToObj(index -> PeptideUtils.getAaAfter(peptide, leadingAccession, index, nAA, sequenceProvider)).collect(Collectors.joining("|"));
if (!aaBefore.equals("")) {
aaBefore += " - ";
}
if (!aaAfter.equals("")) {
aaAfter = " - " + aaAfter;
}
if (psmTable.getSelectedRowCount() == 1) {
String modifiedSequence = peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(spectrumMatch, false, false, true);
((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions (" + aaBefore + modifiedSequence + aaAfter + " " + Charge.toString(peptideAssumption.getIdentificationCharge()) + " " + Util.roundDouble(currentSpectrum.getPrecursor().mz, 2) + " m/z)" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
} else if (psmTable.getSelectedRowCount() == 2) {
int[] selectedRows = psmTable.getSelectedRows();
psmIndex = psmTableModel.getViewIndex(selectedRows[0]);
spectrumMatchKey = psmKeys[psmIndex];
SpectrumMatch firstSpectrumMatch = identification.getSpectrumMatch(spectrumMatchKey);
String firstModifiedSequence = peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(firstSpectrumMatch, false, false, true);
psmIndex = psmTableModel.getViewIndex(selectedRows[1]);
spectrumMatchKey = psmKeys[psmIndex];
SpectrumMatch secondSpectrumMatch = identification.getSpectrumMatch(spectrumMatchKey);
String secondModifiedSequence = peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(secondSpectrumMatch, false, false, true);
((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions (" + firstModifiedSequence + " vs. " + secondModifiedSequence + ")" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
} else {
PeptideMatch currentPeptideMatch = (PeptideMatch) peptideShakerGUI.getIdentification().retrieveObject(peptideKey);
String peptideSequence = peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(currentPeptideMatch, false, false, true);
((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions (" + peptideSequence + " " + psmTable.getSelectedRowCount() + " PSMs)" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
}
spectrumMainPanel.repaint();
} else {
((TitledBorder) spectrumMainPanel.getBorder()).setTitle(PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING + "Spectrum & Fragment Ions" + PeptideShakerGUI.TITLED_BORDER_HORIZONTAL_PADDING);
spectrumMainPanel.repaint();
}
}
Aggregations