use of com.compomics.util.gui.XYPlottingDialog in project peptide-shaker by compomics.
the class OverviewPanel method peptideTableMouseClicked.
// GEN-LAST:event_proteinTableMouseClicked
/**
* Show the statistics popup menu.
*
* @param evt
*/
private void peptideTableMouseClicked(java.awt.event.MouseEvent evt) {
// GEN-FIRST:event_peptideTableMouseClicked
if (evt.getButton() == MouseEvent.BUTTON3 && peptideTable.getRowCount() > 0) {
final MouseEvent event = evt;
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem menuItem = new JMenuItem("Statistics (beta)");
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
new XYPlottingDialog(peptideShakerGUI, peptideTable, peptideTable.getColumnName(peptideTable.columnAtPoint(event.getPoint())), XYPlottingDialog.PlottingDialogPlotType.densityPlot, peptideTableToolTips, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
}
});
popupMenu.add(menuItem);
popupMenu.show(peptideTable, evt.getX(), evt.getY());
}
}
use of com.compomics.util.gui.XYPlottingDialog in project peptide-shaker by compomics.
the class OverviewPanel method psmTableMouseClicked.
// GEN-LAST:event_peptideTableMouseClicked
/**
* Show the statistics popup menu.
*
* @param evt
*/
private void psmTableMouseClicked(java.awt.event.MouseEvent evt) {
// GEN-FIRST:event_psmTableMouseClicked
if (evt.getButton() == MouseEvent.BUTTON3 && psmTable.getRowCount() > 0) {
final MouseEvent event = evt;
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem menuItem = new JMenuItem("Statistics (beta)");
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
new XYPlottingDialog(peptideShakerGUI, psmTable, psmTable.getColumnName(psmTable.columnAtPoint(event.getPoint())), XYPlottingDialog.PlottingDialogPlotType.densityPlot, psmTableToolTips, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
}
});
popupMenu.add(menuItem);
popupMenu.show(psmTable, evt.getX(), evt.getY());
}
}
use of com.compomics.util.gui.XYPlottingDialog in project peptide-shaker by compomics.
the class GOEAPanel method proteinTableMouseClicked.
// GEN-LAST:event_goPlotsTabbedPaneStateChanged
/**
* Show the statistics popup menu.
*
* @param evt
*/
private void proteinTableMouseClicked(java.awt.event.MouseEvent evt) {
// GEN-FIRST:event_proteinTableMouseClicked
if (evt.getButton() == MouseEvent.BUTTON3 && proteinTable.getRowCount() > 0) {
final MouseEvent event = evt;
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem menuItem = new JMenuItem("Statistics (beta)");
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
new XYPlottingDialog(peptideShakerGUI, proteinTable, proteinTable.getColumnName(proteinTable.columnAtPoint(event.getPoint())), PlottingDialogPlotType.densityPlot, proteinTableToolTips, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
}
});
popupMenu.add(menuItem);
popupMenu.show(proteinTable, evt.getX(), evt.getY());
}
}
use of com.compomics.util.gui.XYPlottingDialog in project peptide-shaker by compomics.
the class OverviewPanel method proteinTableMouseClicked.
// GEN-LAST:event_coverageShowPossiblePeptidesJCheckBoxMenuItemActionPerformed
/**
* Show the statistics popup menu.
*
* @param evt
*/
private void proteinTableMouseClicked(java.awt.event.MouseEvent evt) {
// GEN-FIRST:event_proteinTableMouseClicked
if (evt.getButton() == MouseEvent.BUTTON3 && proteinTable.getRowCount() > 0) {
final MouseEvent event = evt;
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem menuItem = new JMenuItem("Statistics (beta)");
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
new XYPlottingDialog(peptideShakerGUI, proteinTable, proteinTable.getColumnName(proteinTable.columnAtPoint(event.getPoint())), XYPlottingDialog.PlottingDialogPlotType.densityPlot, proteinTableToolTips, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
}
});
popupMenu.add(menuItem);
popupMenu.show(proteinTable, evt.getX(), evt.getY());
}
}
use of com.compomics.util.gui.XYPlottingDialog in project peptide-shaker by compomics.
the class ProteinStructurePanel method proteinTableMouseClicked.
// GEN-LAST:event_exportPdbStructureJButtonActionPerformed
/**
* Show the statistics popup menu.
*
* @param evt
*/
private void proteinTableMouseClicked(java.awt.event.MouseEvent evt) {
if (evt.getButton() == MouseEvent.BUTTON3 && proteinTable.getRowCount() > 0) {
final MouseEvent event = evt;
JPopupMenu popupMenu = new JPopupMenu();
JMenuItem menuItem = new JMenuItem("Statistics (beta)");
menuItem.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
new XYPlottingDialog(peptideShakerGUI, proteinTable, proteinTable.getColumnName(proteinTable.columnAtPoint(event.getPoint())), XYPlottingDialog.PlottingDialogPlotType.densityPlot, proteinTableToolTips, Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker.gif")), Toolkit.getDefaultToolkit().getImage(getClass().getResource("/icons/peptide-shaker-orange.gif")), true);
}
});
popupMenu.add(menuItem);
popupMenu.show(proteinTable, evt.getX(), evt.getY());
}
}
Aggregations