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

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

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

ImageJ.getKeyListeners介绍

暂无

代码示例

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

public static boolean removeRegisteredKeyListener() {
  for (KeyListener listener : IJ.getInstance().getKeyListeners())
    if (listener instanceof IJ_Alt_Key_Listener) {
      IJ.getInstance().removeKeyListener(listener);
      return true;
    }
  return false;
}

代码示例来源:origin: mpicbg/mpicbg_

/**
 * Backup old event handlers for restore.
 */
final void backupGui()
{
  canvasKeyListeners = canvas.getKeyListeners();
  windowKeyListeners = window.getKeyListeners();
  ijKeyListeners = IJ.getInstance().getKeyListeners();
  canvasMouseListeners = canvas.getMouseListeners();
  canvasMouseMotionListeners = canvas.getMouseMotionListeners();
  windowMouseWheelListeners = window.getMouseWheelListeners();
  scrollBarAdjustmentListeners = scrollBar.getAdjustmentListeners();
  clearGui();
}

代码示例来源:origin: axtimwalde/mpicbg

/**
 * Backup old event handlers for restore.
 */
final void backupGui()
{
  canvasKeyListeners = canvas.getKeyListeners();
  windowKeyListeners = window.getKeyListeners();
  ijKeyListeners = IJ.getInstance().getKeyListeners();
  canvasMouseListeners = canvas.getMouseListeners();
  canvasMouseMotionListeners = canvas.getMouseMotionListeners();
  windowMouseWheelListeners = window.getMouseWheelListeners();
  scrollBarAdjustmentListeners = scrollBar.getAdjustmentListeners();
  clearGui();
}

相关文章