(String arg)
| 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")) { |
nothing calls this directly
no test coverage detected