本文整理汇总了Java中ij.gui.Roi.removeRoiListener方法的典型用法代码示例。如果您正苦于以下问题:Java Roi.removeRoiListener方法的具体用法?Java Roi.removeRoiListener怎么用?Java Roi.removeRoiListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ij.gui.Roi
的用法示例。
在下文中一共展示了Roi.removeRoiListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: kill
import ij.gui.Roi; //导入方法依赖的package包/类
/** Clean up and close the editor */
@Override
public void kill() {
ij.log().debug("Closing ROI editor");
if (active && (!locked) && changed
&& JOptionPane.showConfirmDialog(this, "Save changes?",
"ROI Editor", JOptionPane.YES_NO_OPTION)
== JOptionPane.YES_OPTION) {
saveRois();
writeRois();
}
Roi.removeRoiListener(this);
synchronized (this) {
active = false;
setVisible(false);
if (imageWindow != null && imageWindow.isVisible()) {
imageWindow.close();
imageWindow.dispose();
}
roiManager.close();
dispose();
notifyAll();
}
}
示例2: setup
import ij.gui.Roi; //导入方法依赖的package包/类
/**
* Called at the beginning of the process to know if the plugin can be run
* with current image, and at the end to finalize.
*/
public int setup(String arg, ImagePlus imp)
{
if( null == imp )
return DONE;
// Special case of plugin called to finalize the process
if ( arg.equals("final") ) {
// replace the preview image by the original image
imagePlus.setProcessor( baseImage );
imagePlus.draw();
if( null != result )
{
// Create a new ImagePlus with the filter result
String newName = createResultImageName( imagePlus );
ImagePlus resPlus = new ImagePlus( newName, result );
resPlus.copyScale( imagePlus );
resPlus.show();
}
Roi.removeRoiListener( listener );
return DONE;
}
return flags;
}
示例3: setup
import ij.gui.Roi; //导入方法依赖的package包/类
/**
* Called at the beginning of the process to know if the plugin can be run
* with current image, and at the end to finalize.
*/
public int setup( String arg, ImagePlus imp )
{
if( null == imp )
return DONE;
// Special case of plugin called to finalize the process
if ( arg.equals("final") ) {
// replace the preview image by the original image
imagePlus.setProcessor( baseImage );
imagePlus.draw();
if( null != result )
{
// Create a new ImagePlus with the filter result
String newName = createResultImageName( imagePlus );
ImagePlus resPlus = new ImagePlus( newName, result );
resPlus.copyScale( imagePlus );
resPlus.show();
}
Roi.removeRoiListener( listener );
return DONE;
}
return flags;
}