Ejemplo n.º 1
0
    /**
     * Respond to a popup trigger event.
     *
     * @param e the event we're responding to
     */
    @SuppressWarnings("serial")
    private void popupTriggered(MouseEvent e) {
      JPopupMenu popupMenu = new JPopupMenu(this.getFitQtlResult().toString());

      popupMenu.add(new ShowFitQtlResultsAction(this.getFitQtlResult()));
      popupMenu.addSeparator();
      popupMenu.add(
          new SafeDeleteAction(
              this.getFitQtlResult().toString(), e.getComponent(), QTL.getInstance().getDesktop()) {
            /** {@inheritDoc} */
            @Override
            public void delete() {
              FitResultsTreeNode.this.delete();
            }
          });

      popupMenu.show((Component) e.getSource(), e.getX(), e.getY());
    }
Ejemplo n.º 2
0
    /**
     * Respond to a popup trigger event.
     *
     * @param e the event we're responding to
     */
    @SuppressWarnings("serial")
    private void popupTriggered(MouseEvent e) {
      Cross cross = this.getCross();

      JPopupMenu popupMenu = new JPopupMenu(cross.toString());
      popupMenu.add(new ShowCrossSummaryAction(cross));
      popupMenu.add(new RunJittermapAction(cross));
      popupMenu.addSeparator();
      popupMenu.add(
          new SafeDeleteAction(
              this.getCross().toString(), e.getComponent(), QTL.getInstance().getDesktop()) {
            /** {@inheritDoc} */
            @Override
            public void delete() {
              CrossTreeNode.this.delete();
            }
          });

      popupMenu.show((Component) e.getSource(), e.getX(), e.getY());
    }
Ejemplo n.º 3
0
  /**
   * Constructor
   *
   * @param parent the parent for this dialog
   * @param graphToEdit the graph that we're editing
   */
  public ScanOneSettingsDialog(Frame parent, ScanOneGraph graphToEdit) {
    super(parent, "One QTL Scan Plot Settings", true);

    this.scanOneIntervalPanel =
        new ScanOneIntervalPanel(graphToEdit.getScanOneIntervalCommandBuilder());
    this.graphVisualSettingsPanel = new GraphVisualSettingsPanel(graphToEdit);

    this.initComponents();

    if (graphToEdit.getScanOneResult().getPermutationsWereCalculated()) {
      this.scanOneThresholdPanel = new ScanOneThresholdPanel(graphToEdit);
      this.mainContentPanel.addTab("Thresholds", this.scanOneThresholdPanel);
    } else {
      this.scanOneThresholdPanel = null;
    }

    // initialize the help stuff
    HelpSet hs = QTL.getInstance().getMenubar().getHelpSet();
    CSH.setHelpIDString(this.helpButton, HELP_ID_STRING);
    this.helpButton.addActionListener(
        new CSH.DisplayHelpFromSource(hs, SecondaryWindow.class.getName(), null));
  }