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

Method show

ij/src/main/java/ij/plugin/GelAnalyzer.java:485–505  ·  view source on GitHub ↗

Overrides ImagePlus.show().

()

Source from the content-addressed store, hash-verified

483
484 /** Overrides ImagePlus.show(). */
485 public void show() {
486 img = ip.createImage();
487 ImageCanvas ic = new PlotsCanvas(this);
488 win = new ImageWindow(this, ic);
489 IJ.showStatus("");
490 if (ic.getMagnification()==1.0)
491 return;
492 while(ic.getMagnification()<1.0)
493 ic.zoomIn(0,0);
494 Point loc = win.getLocation();
495 int w = getWidth()+20;
496 int h = getHeight()+30;
497 Dimension screen = IJ.getScreenSize();
498 if (loc.x+w>screen.width)
499 w = screen.width-loc.x-20;
500 if (loc.y+h>screen.height)
501 h = screen.height-loc.y-30;
502 win.setSize(w, h);
503 win.validate();
504 repaintWindow();
505 }
506
507}
508

Callers 15

plotLanesMethod · 0.95
runMethod · 0.45
createImageMethod · 0.45
runMethod · 0.45
runMethod · 0.45
mousePressedMethod · 0.45
handlePopupMenuMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
displaySingleImageMethod · 0.45
resultsToImageMethod · 0.45

Calls 11

showStatusMethod · 0.95
getScreenSizeMethod · 0.95
getLocationMethod · 0.80
validateMethod · 0.80
createImageMethod · 0.45
getMagnificationMethod · 0.45
zoomInMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
setSizeMethod · 0.45
repaintWindowMethod · 0.45

Tested by

no test coverage detected