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
13
14
15
16
17 @SuppressWarnings("serial")
18 public class ActionTableGeom extends ProtAnalysisAbstractAction {
19
20
21
22
23
24
25
26
27 public ActionTableGeom(String name, String desc, ProtAnalysisUi ui) {
28 super(name, desc, ui);
29 }
30
31
32
33
34
35
36
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).addStatsToResultTable(rt);
46 rt.show("Results");
47 }
48
49 }