ij.ImageJ.getProgressBar()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(145)

本文整理了Java中ij.ImageJ.getProgressBar()方法的一些代码示例,展示了ImageJ.getProgressBar()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.getProgressBar()方法的具体详情如下:
包路径:ij.ImageJ
类名称:ImageJ
方法名:getProgressBar

ImageJ.getProgressBar介绍

暂无

代码示例

代码示例来源:origin: net.imagej/ij

static void init(ImageJ imagej, Applet theApplet) {
  ij = imagej;
  applet = theApplet;
  progressBar = ij.getProgressBar();
}

代码示例来源:origin: imagej/ImageJA

static void init(ImageJ imagej, Applet theApplet) {
  ij = imagej;
  applet = theApplet;
  progressBar = ij.getProgressBar();
}

代码示例来源:origin: net.imagej/ij

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;
}

代码示例来源:origin: net.imagej/ij

if (ij!=null) ij.getProgressBar().setBatchMode(true);
IJ.resetEscape();
if (virtualStack!=null)

代码示例来源:origin: imagej/ImageJA

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;
}

代码示例来源:origin: imagej/ImageJA

if (ij!=null) ij.getProgressBar().setBatchMode(true);
IJ.resetEscape();
if (virtualStack!=null)

代码示例来源:origin: imagej/ImageJA

/** 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;
}

代码示例来源:origin: net.imagej/ij

/** 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;
}

代码示例来源:origin: sc.fiji/Image_5D

ij.getComponent(i).addKeyListener(this);
ij.getProgressBar().addKeyListener(this); // Sub-component of the statusbar

代码示例来源:origin: net.imagej/ij

notifyListeners(UPDATED);
if (ij!=null)
  ip.setProgressBar(ij.getProgressBar());
int stackSize = 1;
boolean dimensionsChanged = width>0 && height>0 && (width!=ip.getWidth() || height!=ip.getHeight());

代码示例来源:origin: imagej/ImageJA

notifyListeners(UPDATED);
if (ij!=null)
  ip.setProgressBar(ij.getProgressBar());
int stackSize = 1;
boolean dimensionsChanged = width>0 && height>0 && (width!=ip.getWidth() || height!=ip.getHeight());

相关文章