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

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

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

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

相关文章