本文整理了Java中ij.ImageJ.getStatusBar()
方法的一些代码示例,展示了ImageJ.getStatusBar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.getStatusBar()
方法的具体详情如下:
包路径:ij.ImageJ
类名称:ImageJ
方法名:getStatusBar
暂无
代码示例来源:origin: net.imagej/imagej-legacy
public Panel getStatusBar() {
if (!hasInstance()) return null;
return IJ.getInstance().getStatusBar();
}
代码示例来源:origin: net.imagej/ij
public void run(String arg) {
ImageJ ij = IJ.getInstance();
ij.setDropTarget(null);
new DropTarget(ij, this);
new DropTarget(Toolbar.getInstance(), this);
new DropTarget(ij.getStatusBar(), this);
}
代码示例来源:origin: imagej/ImageJA
public void run(String arg) {
ImageJ ij = IJ.getInstance();
ij.setDropTarget(null);
new DropTarget(ij, this);
new DropTarget(Toolbar.getInstance(), this);
new DropTarget(ij.getStatusBar(), this);
}
代码示例来源:origin: sc.fiji/imagescience
private void progress() {
if (display()) {
final ImageJ ij = IJ.getInstance();
if (ij != null) { // To avoid exceptions in batch mode
String s = status();
final double min = min();
final double max = max();
final double p = min + percent*(max - min);
if (s == null || p >= 1) s = "";
IJ.showStatus(s);
IJ.showProgress(p);
if (enforce()) {
final Panel sb = ij.getStatusBar();
final JLabel sl = (JLabel)sb.getComponent(0);
sl.setOpaque(true); // Transparent by default
sl.paintImmediately(sl.getBounds());
final ProgressBar pb = (ProgressBar)sb.getComponent(1);
final Graphics pg = pb.getGraphics();
if (pg != null) pb.paint(pg);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!