View Javadoc
1   package com.github.celldynamics.quimp.plugin.protanalysis;
2   
3   import java.awt.event.ActionEvent;
4   
5   import com.github.celldynamics.quimp.QParamsQconf;
6   import com.github.celldynamics.quimp.filesystem.QconfLoader;
7   import com.github.celldynamics.quimp.filesystem.StatsCollection;
8   
9   import ij.measure.ResultsTable;
10  
11  /**
12   * Create table with fluorescence features for selected cell and channel.
13   * 
14   * @author p.baniukiewicz
15   *
16   */
17  @SuppressWarnings("serial")
18  public class ActionTableFluo extends ProtAnalysisAbstractAction {
19  
20    /**
21     * Action creator.
22     * 
23     * @param name name
24     * @param desc description
25     * @param ui reference to outer class.
26     */
27    public ActionTableFluo(String name, String desc, ProtAnalysisUi ui) {
28      super(name, desc, ui);
29    }
30  
31    /*
32     * (non-Javadoc)
33     * 
34     * @see
35     * com.github.celldynamics.quimp.plugin.protanalysis.ProtAnalysisAbstractAction#actionPerformed(
36     * java.awt.event.ActionEvent)
37     */
38    @Override
39    public void actionPerformed(ActionEvent e) {
40      QconfLoader qconfLoader = ui.getModel().getQconfLoader();
41      int h = options.selActiveCellPlot.getValue();
42      StatsCollection stats =
43              ((QParamsQconf) qconfLoader.getQp()).getLoadedDataContainer().getStats();
44      ResultsTable rt = new ResultsTable();
45      stats.getStatCollection().get(h).addFluosToResultTable(rt, options.selActiveChannel.intValue());
46      rt.show("Results");
47    }
48  }