Search in sources :

Example 1 with XYPlottingDialog

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());
    }
}
Also used : MouseEvent(java.awt.event.MouseEvent) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog)

Example 2 with XYPlottingDialog

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());
    }
}
Also used : MouseEvent(java.awt.event.MouseEvent) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog)

Example 3 with XYPlottingDialog

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());
    }
}
Also used : ChartMouseEvent(org.jfree.chart.ChartMouseEvent) MouseEvent(java.awt.event.MouseEvent) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog)

Example 4 with XYPlottingDialog

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());
    }
}
Also used : MouseEvent(java.awt.event.MouseEvent) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog)

Example 5 with XYPlottingDialog

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());
    }
}
Also used : MouseEvent(java.awt.event.MouseEvent) XYPlottingDialog(com.compomics.util.gui.XYPlottingDialog)

Aggregations

XYPlottingDialog (com.compomics.util.gui.XYPlottingDialog)6 MouseEvent (java.awt.event.MouseEvent)6 JMenuItem (javax.swing.JMenuItem)1 JPopupMenu (javax.swing.JPopupMenu)1 ChartMouseEvent (org.jfree.chart.ChartMouseEvent)1