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

Method run

ij/src/main/java/ij/plugin/OverlayLabels.java:24–44  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

22 private boolean bold;
23
24 public void run(String arg) {
25 imp = WindowManager.getCurrentImage();
26 overlay = null;
27 if (imp!=null) {
28 ImageCanvas ic = imp.getCanvas();
29 if (ic!=null)
30 overlay = ic.getShowAllList();
31 if (overlay==null)
32 overlay = imp.getOverlay();
33 }
34 if (overlay==null)
35 overlay = defaultOverlay;
36 showDialog();
37 if (!gd.wasCanceled()) {
38 defaultOverlay.drawLabels(overlay.getDrawLabels());
39 defaultOverlay.drawNames(overlay.getDrawNames());
40 defaultOverlay.drawBackgrounds(overlay.getDrawBackgrounds());
41 defaultOverlay.setLabelColor(overlay.getLabelColor());
42 defaultOverlay.setLabelFont(overlay.getLabelFont());
43 }
44 }
45
46 public void showDialog() {
47 showLabels = overlay.getDrawLabels();

Callers

nothing calls this directly

Calls 15

getCurrentImageMethod · 0.95
getShowAllListMethod · 0.95
showDialogMethod · 0.95
drawNamesMethod · 0.80
getDrawNamesMethod · 0.80
drawBackgroundsMethod · 0.80
getDrawBackgroundsMethod · 0.80
setLabelColorMethod · 0.80
getLabelColorMethod · 0.80
setLabelFontMethod · 0.80
getLabelFontMethod · 0.80
getCanvasMethod · 0.45

Tested by

no test coverage detected