weka.core.Utils.getGlobalInfo()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(108)

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

Utils.getGlobalInfo介绍

[英]Utility method for grabbing the global info help (if it exists) from an arbitrary object. Can also append capabilities information if the object is a CapabilitiesHandler.
[中]

代码示例

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Utility method for grabbing the global info help (if it exists) from an
 * arbitrary object
 *
 * @param tempBean the object to grab global info from
 * @return the global help info or null if global info does not exist
 */
public static String getGlobalInfo(Object tempBean) {
 return Utils.getGlobalInfo(tempBean, true);
}

代码示例来源:origin: Waikato/weka-trunk

/**
 * Utility method for grabbing the global info help (if it exists) from an
 * arbitrary object
 *
 * @param tempBean the object to grab global info from
 * @return the global help info or null if global info does not exist
 */
public static String getGlobalInfo(Object tempBean) {
 return Utils.getGlobalInfo(tempBean, true);
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Creates an "about" panel to add to the dialog
 *
 * @param step the step from which to extract help info
 */
protected void createAboutPanel(Step step) {
 String globalFirstSentence = "";
 String globalInfo = Utils.getGlobalInfo(step, false);
 if (globalInfo == null) {
  globalInfo = "No info available";
  globalFirstSentence = globalInfo;
 } else {
  globalInfo = globalInfo.replace("font color=blue", "font color=black");
  try {
   Method gI = step.getClass().getMethod("globalInfo");
   String globalInfoNoHTML = gI.invoke(step).toString();
   globalFirstSentence =
    globalInfoNoHTML.contains(".") ? globalInfoNoHTML.substring(0,
     globalInfoNoHTML.indexOf('.')) : globalInfoNoHTML;
  } catch (Exception ex) {
   ex.printStackTrace();
  }
 }
 createAboutPanel(globalInfo, globalFirstSentence);
}

代码示例来源:origin: Waikato/weka-trunk

/**
 * Creates an "about" panel to add to the dialog
 *
 * @param step the step from which to extract help info
 */
protected void createAboutPanel(Step step) {
 String globalFirstSentence = "";
 String globalInfo = Utils.getGlobalInfo(step, false);
 if (globalInfo == null) {
  globalInfo = "No info available";
  globalFirstSentence = globalInfo;
 } else {
  globalInfo = globalInfo.replace("font color=blue", "font color=black");
  try {
   Method gI = step.getClass().getMethod("globalInfo");
   String globalInfoNoHTML = gI.invoke(step).toString();
   globalFirstSentence =
    globalInfoNoHTML.contains(".") ? globalInfoNoHTML.substring(0,
     globalInfoNoHTML.indexOf('.')) : globalInfoNoHTML;
  } catch (Exception ex) {
   ex.printStackTrace();
  }
 }
 createAboutPanel(globalInfo, globalFirstSentence);
}

代码示例来源:origin: Waikato/weka-trunk

/**
 * Get global "help" info. Returns the global info of the wrapped algorithm
 *
 * @return global "help" info
 */
@Override
public String globalInfo() {
 if (getWrappedAlgorithm() != null) {
  return Utils.getGlobalInfo(getWrappedAlgorithm(), false);
 }
 return super.globalInfo();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Get global "help" info. Returns the global info of the wrapped algorithm
 *
 * @return global "help" info
 */
@Override
public String globalInfo() {
 if (getWrappedAlgorithm() != null) {
  return Utils.getGlobalInfo(getWrappedAlgorithm(), false);
 }
 return super.globalInfo();
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

String globalInfo = Utils.getGlobalInfo(step, false);
if (globalInfo != null) {
 m_toolTipText = globalInfo;

代码示例来源:origin: Waikato/weka-trunk

String globalInfo = Utils.getGlobalInfo(step, false);
if (globalInfo != null) {
 m_toolTipText = globalInfo;

代码示例来源:origin: Waikato/weka-trunk

String toolTip = Utils.getGlobalInfo(alg, true);
if (toolTip != null) {
 child.setToolTipText(toolTip);

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

String toolTip = Utils.getGlobalInfo(alg, true);
if (toolTip != null) {
 child.setToolTipText(toolTip);

相关文章