MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/GelAnalyzer.java:49–144  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

47 static boolean showLaneDialog = true;
48
49 public void run(String arg) {
50 if (arg.equals("options")) {
51 showDialog();
52 return;
53 }
54
55 imp = WindowManager.getCurrentImage();
56 if (imp==null) {
57 IJ.noImage();
58 return;
59 }
60
61 if (arg.equals("reset")) {
62 nLanes = 0;
63 saveNLanes = 0;
64 saveID = 0;
65 if (plotsCanvas!=null)
66 plotsCanvas.reset();
67 ipLanes = null;
68 overlay = null;
69 if (gel!=null) {
70 ImageCanvas ic = gel.getCanvas();
71 if (ic!=null) ic.setDisplayList(null);
72 gel.draw();
73 }
74 return;
75 }
76
77 if (arg.equals("percent") && plotsCanvas!=null) {
78 plotsCanvas.displayPercentages();
79 return;
80 }
81
82 if (arg.equals("label") && plotsCanvas!=null) {
83 if (plotsCanvas.counter==0)
84 show("There are no peak area measurements.");
85 else
86 plotsCanvas.labelPeaks();
87 return;
88 }
89
90 if (imp.getID()!=saveID) {
91 nLanes=0;
92 ipLanes = null;
93 saveID = 0;
94 }
95
96 if (arg.equals("replot")) {
97 if (saveNLanes==0) {
98 show("The data needed to re-plot the lanes is not available");
99 return;
100 }
101 nLanes = saveNLanes;
102 plotLanes(gel, true);
103 return;
104 }
105
106 if (arg.equals("draw")) {

Callers

nothing calls this directly

Calls 15

showDialogMethod · 0.95
getCurrentImageMethod · 0.95
noImageMethod · 0.95
setDisplayListMethod · 0.95
showMethod · 0.95
plotLanesMethod · 0.95
outlineLanesMethod · 0.95
getTypeMethod · 0.95
getBoundsMethod · 0.95
registerMethod · 0.95
selectFirstLaneMethod · 0.95
selectNextLaneMethod · 0.95

Tested by

no test coverage detected