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

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

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

ImageJ.pack介绍

暂无

代码示例

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

public void resize() {
  double scale = Prefs.getGuiScale();
  toolbar.init();
  statusLine.setFont(new Font("SansSerif", Font.PLAIN, (int)(13*scale)));
  progressBar.init((int)(ProgressBar.WIDTH*scale), (int)(ProgressBar.HEIGHT*scale));
  pack();
}

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

public void resize() {
  double scale = Prefs.getGuiScale();
  toolbar.init();
  statusLine.setFont(new Font("SansSerif", Font.PLAIN, (int)(13*scale)));
  progressBar.init((int)(ProgressBar.WIDTH*scale), (int)(ProgressBar.HEIGHT*scale));
  pack();
}

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

icons[getNumTools()-2] = null;
ps = new Dimension(buttonWidth*NUM_BUTTONS-(buttonWidth-gapSize)+nExtraTools*buttonWidth, buttonHeight);
IJ.getInstance().pack();
tool = getNumTools()-2;

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

icons[getNumTools()-2] = null;
ps = new Dimension(buttonWidth*NUM_BUTTONS-(buttonWidth-gapSize)+nExtraTools*buttonWidth, buttonHeight);
IJ.getInstance().pack();
tool = getNumTools()-2;

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

public void setVisible(final boolean toggle) {
  if (batchMode) return;
  final ImageJ ij = IJ.getInstance();
  if (ij != null) {
    if (toggle) ij.pack();
    ij.setVisible(toggle);
  }
  // hide/show the legacy ImagePlus instances
  final LegacyImageMap imageMap = legacyService.getImageMap();
  for (final ImagePlus imp : imageMap.getImagePlusInstances()) {
    final ImageWindow window = imp.getWindow();
    if (window != null) window.setVisible(toggle);
  }
}

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

private void removeTools() {
  removeMacroTools();
  setTool(RECTANGLE);
  currentSet = "Startup Macros";
  resetPrefs();
  if (nExtraTools>0) {
    String name = names[getNumTools()-1];
    String icon = icons[getNumTools()-1];
    nExtraTools = 0;
    names[getNumTools()-1] = name;
    icons[getNumTools()-1] = icon;
    ps = new Dimension(buttonWidth*NUM_BUTTONS-(BUTTON_WIDTH-gapSize)+nExtraTools*BUTTON_WIDTH, buttonHeight);
    IJ.getInstance().pack();
  }
}

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

private void removeTools() {
  removeMacroTools();
  setTool(RECTANGLE);
  currentSet = "Startup Macros";
  resetPrefs();
  if (nExtraTools>0) {
    String name = names[getNumTools()-1];
    String icon = icons[getNumTools()-1];
    nExtraTools = 0;
    names[getNumTools()-1] = name;
    icons[getNumTools()-1] = icon;
    ps = new Dimension(buttonWidth*NUM_BUTTONS-(BUTTON_WIDTH-gapSize)+nExtraTools*BUTTON_WIDTH, buttonHeight);
    IJ.getInstance().pack();
  }
}

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

menuBar.add(menus[i]);
ImageJ ij = IJ.getInstance();
ij.pack();
ij.setSize(new java.awt.Dimension(ij.getWidth()

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

setResizable(false);
setAlwaysOnTop(Prefs.alwaysOnTop);
pack();
setVisible(true);
Dimension size = getSize();
    pack();
    if (IJ.debugMode) IJ.log("pack()");
    if (!Prefs.jFileChooserSettingChanged)

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

setResizable(false);
setAlwaysOnTop(Prefs.alwaysOnTop);
pack();
setVisible(true);
Dimension size = getSize();
    pack();
    if (IJ.debugMode) IJ.log("pack()");
    if (!Prefs.jFileChooserSettingChanged)

相关文章