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

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

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

ImageJ.quit介绍

[英]Called by ImageJ when the user selects Quit.
[中]当用户选择退出时由ImageJ调用。

代码示例

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

/**
 * Exits ImageJ.imagej instanceimagej instance
 */
public static void exit() {
  IJ.getInstance().quit();
  imagej = null;
  if (verbose && !(imagej instanceof ImageJ)) {
    System.out.println("ImageJ instance ended cleanly");
  }
}

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

public void destroy() {
  ImageJ ij = IJ.getInstance();
  if (ij!=null) ij.quit();
}

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

public void destroy() {
  ImageJ ij = IJ.getInstance();
  if (ij!=null) ij.quit();
}

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

public void windowClosing(WindowEvent e) {
  if (Executer.getListenerCount()>0)
    doCommand("Quit");
  else {
    quit();
    windowClosed = true;
  }
}

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

public void windowClosing(WindowEvent e) {
  if (Executer.getListenerCount()>0)
    doCommand("Quit");
  else {
    quit();
    windowClosed = true;
  }
}

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

/**
   * main() is available in case you want to test this plugin directly.
   * @param args the command line arguments
   */
  public static void main(String[] args) {
    ImageJ imageJ = null;
    try {
      imageJ = new ij.ImageJ();
      IJ.run("Open...");
      Volume_Calculator volume_calculator = new Volume_Calculator();
      volume_calculator.setup("", IJ.getImage());
      volume_calculator.run(volume_calculator.imagePlus.getProcessor());
    } catch (Exception e) {
      e.printStackTrace(System.out);
      IJ.showMessage(e.getLocalizedMessage());
      System.out.println(""+e.getLocalizedMessage());
      imageJ.quit();
    }
  }
}

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

else if (cmd.equals("quit")) {
  ImageJ ij = IJ.getInstance();
  if (ij!=null) ij.quit();
} else if (cmd.equals("startup"))
  openStartupMacros();

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

else if (cmd.equals("quit")) {
  ImageJ ij = IJ.getInstance();
  if (ij!=null) ij.quit();
} else if (cmd.equals("startup"))
  openStartupMacros();

相关文章