本文整理了Java中ij.ImageJ.quit()
方法的一些代码示例,展示了ImageJ.quit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.quit()
方法的具体详情如下:
包路径:ij.ImageJ
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!