net.sf.taverna.t2.workbench.helper.Helper.showHelpWithinContainer()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(95)

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

Helper.showHelpWithinContainer介绍

[英]Show the help most associated with the specific component within the container.
[中]

代码示例

代码示例来源:origin: net.sf.taverna.t2.workbench/helper

  1. public void actionPerformed(ActionEvent arg0) {
  2. Helper.showHelpWithinContainer(dialog, dialog);
  3. }
  4. }));

代码示例来源:origin: net.sf.taverna.t2.workbench/helper

  1. public void actionPerformed(ActionEvent arg0) {
  2. Helper.showHelpWithinContainer(dialog, dialog);
  3. }
  4. }));

代码示例来源:origin: net.sf.taverna.t2.workbench/helper

  1. public void actionPerformed(ActionEvent arg0) {
  2. Component component = (Component) rootpanecontainer;
  3. Container container = (Container) rootpanecontainer;
  4. logger.info("frame action F1 pressed with source "
  5. + arg0.getSource().getClass().getName());
  6. Point mousePosition = MouseInfo.getPointerInfo().getLocation();
  7. Point framePosition = component.getLocation();
  8. Point relativePosition = (Point) mousePosition.clone();
  9. relativePosition.translate(-framePosition.x, -framePosition.y);
  10. Component c = container.findComponentAt(relativePosition);
  11. if (c != null) {
  12. logger.info("F1 pressed in a " + c.getClass().getName());
  13. }
  14. showHelpWithinContainer(rootpanecontainer, c);
  15. }

代码示例来源:origin: net.sf.taverna.t2.ui-api/helper-api

  1. public void actionPerformed(ActionEvent arg0) {
  2. Component component = (Component) rootpanecontainer;
  3. Container container = (Container) rootpanecontainer;
  4. logger.info("frame action F1 pressed with source "
  5. + arg0.getSource().getClass().getName());
  6. Point mousePosition = MouseInfo.getPointerInfo().getLocation();
  7. Point framePosition = component.getLocation();
  8. Point relativePosition = (Point) mousePosition.clone();
  9. relativePosition.translate(-framePosition.x, -framePosition.y);
  10. Component c = container.findComponentAt(relativePosition);
  11. if (c != null) {
  12. logger.info("F1 pressed in a " + c.getClass().getName());
  13. }
  14. showHelpWithinContainer(rootpanecontainer, c);
  15. }

相关文章