/** Calls draw to draw the image and also repaints the image window to force the information displayed above the image (dimension, type, size) to be updated. */ public void repaintWindow() { if (win!=null) { draw(); win.repaint(); } }
/** Calls updateAndDraw to update from the pixel data and draw the image, and also repaints the image window to force the information displayed above the image (dimension, type, size) to be updated. */ public void updateAndRepaintWindow() { if (win!=null) { updateAndDraw(); win.repaint(); } }
/** Calls updateAndDraw to update from the pixel data and draw the image, and also repaints the image window to force the information displayed above the image (dimension, type, size) to be updated. */ public void updateAndRepaintWindow() { if (win!=null) { updateAndDraw(); win.repaint(); } }
/** Calls draw to draw the image and also repaints the image window to force the information displayed above the image (dimension, type, size) to be updated. */ public void repaintWindow() { if (win!=null) { draw(); win.repaint(); } }
public void setImage(ImagePlus imp2) { ImageCanvas ic = getCanvas(); if (ic==null || imp2==null) return; imp = imp2; imp.setWindow(this); ic.updateImage(imp); ic.setImageUpdated(); ic.repaint(); repaint(); }
/** Repaints all open image windows. */ public synchronized static void repaintImageWindows() { int[] list = getIDList(); if (list==null) return; for (int i=0; i<list.length; i++) { ImagePlus imp2 = getImage(list[i]); if (imp2!=null) { imp2.setTitle(imp2.getTitle()); // update "(G)" flag (global calibration) ImageWindow win = imp2.getWindow(); if (win!=null) win.repaint(); } } }
/** Repaints all open image windows. */ public synchronized static void repaintImageWindows() { int[] list = getIDList(); if (list==null) return; for (int i=0; i<list.length; i++) { ImagePlus imp2 = getImage(list[i]); if (imp2!=null) { imp2.setTitle(imp2.getTitle()); // update "(G)" flag (global calibration) ImageWindow win = imp2.getWindow(); if (win!=null) win.repaint(); } } }
public void setImage(ImagePlus imp2) { ImageCanvas ic = getCanvas(); if (ic==null || imp2==null) return; imp = imp2; imp.setWindow(this); ic.updateImage(imp); ic.setImageUpdated(); ic.repaint(); repaint(); }
public void updateImage(ImagePlus imp) { if (imp!=this.imp) throw new IllegalArgumentException("imp!=this.imp"); this.imp = imp; ic.updateImage(imp); setLocationAndSize(true); if (this instanceof StackWindow) { StackWindow sw = (StackWindow)this; int stackSize = imp.getStackSize(); int nScrollbars = sw.getNScrollbars(); if (stackSize==1 && nScrollbars>0) sw.removeScrollbars(); else if (stackSize>1 && nScrollbars==0) sw.addScrollbars(imp); } pack(); repaint(); maxBounds = getMaximumBounds(); setMaximizedBounds(maxBounds); setMaxBoundsTime = System.currentTimeMillis(); }
public void updateImage(ImagePlus imp) { if (imp!=this.imp) throw new IllegalArgumentException("imp!=this.imp"); this.imp = imp; ic.updateImage(imp); setLocationAndSize(true); if (this instanceof StackWindow) { StackWindow sw = (StackWindow)this; int stackSize = imp.getStackSize(); int nScrollbars = sw.getNScrollbars(); if (stackSize==1 && nScrollbars>0) sw.removeScrollbars(); else if (stackSize>1 && nScrollbars==0) sw.addScrollbars(imp); } pack(); repaint(); maxBounds = getMaximumBounds(); setMaximizedBounds(maxBounds); setMaxBoundsTime = System.currentTimeMillis(); }
channelImage.show(); channelImage.setCalibration(oc); channelImage.getWindow().repaint();