static void init(ImageJ imagej, Applet theApplet) { ij = imagej; applet = theApplet; progressBar = ij.getProgressBar(); }
static void init(ImageJ imagej, Applet theApplet) { ij = imagej; applet = theApplet; progressBar = ij.getProgressBar(); }
void showProgress() { ImageJ ij = IJ.getInstance(); ij.gui.ProgressBar progressBar = ij!=null?ij.getProgressBar():null; interp.getLeftParen(); double arg1 = interp.getExpression(); if (interp.nextToken()==',') { interp.getComma(); double arg2 = interp.getExpression(); if (progressBar!=null) progressBar.show((arg1+1.0)/arg2, true); } else if (progressBar!=null) progressBar.show(arg1, true); interp.getRightParen(); interp.showingProgress = true; }
if (ij!=null) ij.getProgressBar().setBatchMode(true); IJ.resetEscape(); if (virtualStack!=null)
void showProgress() { ImageJ ij = IJ.getInstance(); ij.gui.ProgressBar progressBar = ij!=null?ij.getProgressBar():null; interp.getLeftParen(); double arg1 = interp.getExpression(); if (interp.nextToken()==',') { interp.getComma(); double arg2 = interp.getExpression(); if (progressBar!=null) progressBar.show((arg1+1.0)/arg2, true); } else if (progressBar!=null) progressBar.show(arg1, true); interp.getRightParen(); interp.showingProgress = true; }
if (ij!=null) ij.getProgressBar().setBatchMode(true); IJ.resetEscape(); if (virtualStack!=null)
/** Returns a reference to the current ImageProcessor. If there is no ImageProcessor, it creates one. Returns null if this ImagePlus contains no ImageProcessor and no AWT Image. Sets the line width to the current line width and sets the calibration table if the image is density calibrated. */ public ImageProcessor getProcessor() { if (ip==null) return null; if (roi!=null && roi.isArea()) ip.setRoi(roi.getBounds()); else ip.resetRoi(); if (!compositeImage) ip.setLineWidth(Line.getWidth()); if (ij!=null) ip.setProgressBar(ij.getProgressBar()); Calibration cal = getCalibration(); if (cal.calibrated()) ip.setCalibrationTable(cal.getCTable()); else ip.setCalibrationTable(null); if (Recorder.record) { Recorder recorder = Recorder.getInstance(); if (recorder!=null) recorder.imageUpdated(this); } return ip; }
/** Returns a reference to the current ImageProcessor. If there is no ImageProcessor, it creates one. Returns null if this ImagePlus contains no ImageProcessor and no AWT Image. Sets the line width to the current line width and sets the calibration table if the image is density calibrated. */ public ImageProcessor getProcessor() { if (ip==null) return null; if (roi!=null && roi.isArea()) ip.setRoi(roi.getBounds()); else ip.resetRoi(); if (!compositeImage) ip.setLineWidth(Line.getWidth()); if (ij!=null) ip.setProgressBar(ij.getProgressBar()); Calibration cal = getCalibration(); if (cal.calibrated()) ip.setCalibrationTable(cal.getCTable()); else ip.setCalibrationTable(null); if (Recorder.record) { Recorder recorder = Recorder.getInstance(); if (recorder!=null) recorder.imageUpdated(this); } return ip; }
ij.getComponent(i).addKeyListener(this); ij.getProgressBar().addKeyListener(this); // Sub-component of the statusbar
notifyListeners(UPDATED); if (ij!=null) ip.setProgressBar(ij.getProgressBar()); int stackSize = 1; boolean dimensionsChanged = width>0 && height>0 && (width!=ip.getWidth() || height!=ip.getHeight());
notifyListeners(UPDATED); if (ij!=null) ip.setProgressBar(ij.getProgressBar()); int stackSize = 1; boolean dimensionsChanged = width>0 && height>0 && (width!=ip.getWidth() || height!=ip.getHeight());