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

Method paint

ij/src/main/java/ij/gui/ImageWindow.java:456–464  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

454 }
455
456 @AstroImageJ(reason = "Disable final check for extra width, disables drawing of border rectangle", modified = true)
457 public void paint(Graphics g) {
458 drawInfo(g);
459 Rectangle r = ic.getBounds();
460 int extraWidth = MIN_WIDTH - r.width;
461 int extraHeight = MIN_HEIGHT - r.height;
462 /*if (extraWidth<=0 && extraHeight<=0 && !Prefs.noBorder && !IJ.isLinux())
463 g.drawRect(r.x-1, r.y-1, r.width+1, r.height+1);*/
464 }
465
466 /** Removes this window from the window list and disposes of it.
467 Returns false if the user cancels the "save changes" dialog. */

Callers

nothing calls this directly

Calls 2

drawInfoMethod · 0.95
getBoundsMethod · 0.65

Tested by

no test coverage detected