本文整理汇总了Java中com.rapidminer.gui.metadata.MetaDataRendererFactoryRegistry类的典型用法代码示例。如果您正苦于以下问题:Java MetaDataRendererFactoryRegistry类的具体用法?Java MetaDataRendererFactoryRegistry怎么用?Java MetaDataRendererFactoryRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MetaDataRendererFactoryRegistry类属于com.rapidminer.gui.metadata包,在下文中一共展示了MetaDataRendererFactoryRegistry类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCustomComponent
import com.rapidminer.gui.metadata.MetaDataRendererFactoryRegistry; //导入依赖的package包/类
public static Component getCustomComponent(Entry o) {
if (o instanceof IOObjectEntry) {
IOObjectEntry e = (IOObjectEntry) o;
if (!e.willBlock()) {
try {
MetaData metaData = e.retrieveMetaData();
Component renderer = MetaDataRendererFactoryRegistry.getInstance().createRenderer(metaData);
return renderer;
// if ((metaData != null) && (metaData instanceof ExampleSetMetaData)) {
// return ExampleSetMetaDataTableModel.makeTableForToolTip((ExampleSetMetaData)
// metaData);
// }
} catch (Exception ex) {
// LogService.getRoot().log(Level.WARNING, "Error retrieving meta data for " +
// e.getLocation() + ": " + ex, ex);
LogService.getRoot().log(
Level.WARNING,
I18N.getMessage(LogService.getRoot().getResourceBundle(),
"com.rapidminer.repository.gui.ToolTipProviderHelper.retrieving_meta_data_error",
e.getLocation(), ex), ex);
}
}
}
return null;
}
示例2: getCustomComponent
import com.rapidminer.gui.metadata.MetaDataRendererFactoryRegistry; //导入依赖的package包/类
public static Component getCustomComponent(Entry o) {
if (o instanceof IOObjectEntry) {
IOObjectEntry e = (IOObjectEntry) o;
if (!e.willBlock()) {
try {
MetaData metaData = e.retrieveMetaData();
Component renderer = MetaDataRendererFactoryRegistry.getInstance().createRenderer(metaData);
return renderer;
// if ((metaData != null) && (metaData instanceof ExampleSetMetaData)) {
// return ExampleSetMetaDataTableModel.makeTableForToolTip((ExampleSetMetaData) metaData);
// }
} catch (Exception ex) {
//LogService.getRoot().log(Level.WARNING, "Error retrieving meta data for " + e.getLocation() + ": " + ex, ex);
LogService.getRoot().log(Level.WARNING,
I18N.getMessage(LogService.getRoot().getResourceBundle(),
"com.rapidminer.repository.gui.ToolTipProviderHelper.retrieving_meta_data_error",
e.getLocation(), ex),
ex);
}
}
}
return null;
}
示例3: getCustomComponent
import com.rapidminer.gui.metadata.MetaDataRendererFactoryRegistry; //导入依赖的package包/类
@SuppressWarnings("deprecation")
@Override
public Component getCustomComponent(final Object o) {
Port hoveringPort = (Port) o;
MetaData metaData = hoveringPort.getMetaData();
return MetaDataRendererFactoryRegistry.getInstance().createRenderer(metaData);
}
示例4: getCustomComponent
import com.rapidminer.gui.metadata.MetaDataRendererFactoryRegistry; //导入依赖的package包/类
@Override
public Component getCustomComponent(final Object o) {
Port hoveringPort = (Port) o;
MetaData metaData = hoveringPort.getMetaData();
return MetaDataRendererFactoryRegistry.getInstance().createRenderer(metaData);
}