本文整理汇总了Java中com.rapidminer.gui.processeditor.results.ResultDisplay类的典型用法代码示例。如果您正苦于以下问题:Java ResultDisplay类的具体用法?Java ResultDisplay怎么用?Java ResultDisplay使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ResultDisplay类属于com.rapidminer.gui.processeditor.results包,在下文中一共展示了ResultDisplay类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getResultDisplay
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
public ResultDisplay getResultDisplay() {
if (OperatorService.isLocalMode()) {
return resultDisplay;
} else if (OperatorService.isRemoteMode()) {
return remoteDisplay;
} else {
throw new IllegalArgumentException("illegal client mode");
}
}
示例2: actionPerformed
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
ResultDisplay display = RapidMinerGUI.getMainFrame().getResultDisplay();
IOObject object = map.get(key);
if (object != null) {
IOContainer objectContainer = new IOContainer(object);
display.showData(objectContainer, key);
} else {
LogService.getRoot().log(Level.WARNING, "Could not open '" + key + "', entry does not exist.");
}
}
示例3: restoreDefault
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
/**
* Restores the default layout of the perspectives. This method only works for predefined
* perspectives (like {@link #DESIGN} and {@link #RESULT}).
*
* @param perspectiveName
* the name of the perspective which should be restored
*
* @throws IllegalAccessException
* if the perspective is not known
*/
public void restoreDefault(String perspectiveName) {
WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
WSDockKey operatorHelpKey = new WSDockKey(OperatorDocumentationBrowser.OPERATOR_HELP_DOCK_KEY);
if (DESIGN.equals(perspectiveName)) {
Perspective designPerspective = getPerspective(DESIGN);
WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
designDesktop.clear();
designDesktop.addDockable(processPanelKey);
designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);
designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
designDesktop.split(processPanelKey, repositoryKey, DockingConstants.SPLIT_LEFT, 0.25);
designDesktop.split(repositoryKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.5);
} else if (RESULT.equals(perspectiveName)) {
Perspective resultPerspective = getPerspective(RESULT);
WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
resultsDesktop.clear();
resultsDesktop.addDockable(resultsKey);
resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
} else if (REMOTE.equals(perspectiveName)) {
Perspective remotePerspective = getPerspective(REMOTE);
WSDesktop remoteDesktop = remotePerspective.getWorkspace().getDesktop(0);
WSDockKey remoteKey = new WSDockKey(RemoteResultDisplay.REMOTE_DOCK_KEY);
remoteDesktop.clear();
remoteDesktop.addDockable(remoteKey);
remoteDesktop.split(remoteKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
} else {
throw new IllegalArgumentException("Not a predefined view: " + perspectiveName);
}
}
示例4: loggedActionPerformed
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
@Override
public void loggedActionPerformed(ActionEvent e) {
ResultDisplay display = RapidMinerGUI.getMainFrame().getResultDisplay();
IOObject object = map.get(key);
if (object != null) {
object.setSource(key);
IOContainer objectContainer = new IOContainer(object);
display.showData(objectContainer, key);
} else {
LogService.getRoot().log(Level.WARNING, "Could not open '" + key + "', entry does not exist.");
}
}
示例5: restoreDefault
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
/**
* Restores the default layout of the perspectives. This method only works for predefined
* perspectives (like {@link #DESIGN} and {@link #RESULT}).
*
* @param perspectiveName
* the name of the perspective which should be restored
*
* @throws IllegalAccessException
* if the perspective is not known
*/
public void restoreDefault(String perspectiveName) {
WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
WSDockKey operatorHelpKey = new WSDockKey(OperatorDocumentationBrowser.OPERATOR_HELP_DOCK_KEY);
if (DESIGN.equals(perspectiveName)) {
Perspective designPerspective = getPerspective(DESIGN);
WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
designDesktop.clear();
designDesktop.addDockable(processPanelKey);
designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);
designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
designDesktop.split(processPanelKey, repositoryKey, DockingConstants.SPLIT_LEFT, 0.25);
designDesktop.split(repositoryKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.5);
} else if (RESULT.equals(perspectiveName)) {
Perspective resultPerspective = getPerspective(RESULT);
WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
resultsDesktop.clear();
resultsDesktop.addDockable(resultsKey);
resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
} else {
throw new IllegalArgumentException("Not a predefined view: " + perspectiveName);
}
}
示例6: fill
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
private void fill() {
removeAll();
DockableState[] dockables = dockingContext.getDesktopList().get(0).getDockables();
List<DockableState> sorted = new LinkedList<>();
sorted.addAll(Arrays.asList(dockables));
Collections.sort(sorted, new Comparator<DockableState>() {
@Override
public int compare(DockableState o1, DockableState o2) {
return o1.getDockable().getDockKey().getName().compareTo(o2.getDockable().getDockKey().getName());
}
});
for (final DockableState state : sorted) {
if (state.getDockable() instanceof DummyDockable) {
continue;
}
DockKey dockKey = state.getDockable().getDockKey();
boolean cont = false;
for (String prefix : HIDE_IN_DOCKABLE_MENU_PREFIX_REGISTRY) {
if (dockKey.getKey().startsWith(prefix)) {
cont = true;
break;
}
}
if (cont) {
continue;
}
String description = null;
if (dockKey instanceof ResourceDockKey) {
description = ((ResourceDockKey) dockKey).getShortDescription();
}
description = description != null ? description : "";
String text = dockKey.getName();
if (SystemInfoUtilities.getOperatingSystem() != OperatingSystem.OSX) {
// OS X cannot use html in menus so only do it for other OS
text = "<html><p style='margin-left:5'><b>" + dockKey.getName() + "</b><br/>" + description + "</p></html>";
}
JCheckBoxMenuItem item = new JCheckBoxMenuItem(text, dockKey.getIcon());
item.setSelected(!state.isClosed());
item.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (state.isClosed()) {
dockingContext.getDesktopList().get(0).addDockable(state.getDockable());
} else {
dockingContext.getDesktopList().get(0).close(state.getDockable());
}
}
});
// special handling for results overview dockable in Results perspective
// this dockable is not allowed to be closed so we disable this item while in said
// perspective
if (RapidMinerGUI.getMainFrame().getPerspectiveController().getModel().getSelectedPerspective().getName()
.equals(PerspectiveModel.RESULT)
&& ResultDisplay.RESULT_DOCK_KEY.equals(state.getDockable().getDockKey().getKey())) {
item.setEnabled(false);
}
add(item);
}
}
示例7: getResultDisplay
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
public ResultDisplay getResultDisplay() {
return resultDisplay;
}
示例8: restoreDefault
import com.rapidminer.gui.processeditor.results.ResultDisplay; //导入依赖的package包/类
protected void restoreDefault(String perspectiveName) {
WSDockKey processPanelKey = new WSDockKey(ProcessPanel.PROCESS_PANEL_DOCK_KEY);
WSDockKey propertyTableKey = new WSDockKey(OperatorPropertyPanel.PROPERTY_EDITOR_DOCK_KEY);
WSDockKey messageViewerKey = new WSDockKey(LoggingViewer.LOG_VIEWER_DOCK_KEY);
WSDockKey resultsKey = new WSDockKey(ResultDisplay.RESULT_DOCK_KEY);
WSDockKey repositoryKey = new WSDockKey(RepositoryBrowser.REPOSITORY_BROWSER_DOCK_KEY);
WSDockKey newOperatorEditorKey = new WSDockKey(NewOperatorEditor.NEW_OPERATOR_DOCK_KEY);
WSDockKey errorTableKey = new WSDockKey(ErrorTable.ERROR_TABLE_DOCK_KEY);
WSDockKey xmlEditorKey = new WSDockKey(XMLEditor.XML_EDITOR_DOCK_KEY);
WSDockKey commentEditorKey = new WSDockKey(CommentEditor.COMMENT_EDITOR_DOCK_KEY);
WSDockKey operatorHelpKey = new WSDockKey(OperatorDocViewer.OPERATOR_HELP_DOCK_KEY);
WSDockKey processContextEditorKey = new WSDockKey(ProcessContextProcessEditor.PROCESS_CONTEXT_DOCKKEY);
WSDockKey welcomeKey = new WSDockKey(WelcomeScreen.WELCOME_SCREEN_DOCK_KEY);
//WSDockKey overviewKey = new WSDockKey(OverviewPanel.OVERVIEW_DOCK_KEY);
if ("design".equals(perspectiveName)) {
Perspective designPerspective = getPerspective("design");
WSDesktop designDesktop = designPerspective.getWorkspace().getDesktop(0);
designDesktop.clear();
designDesktop.addDockable(processPanelKey);
designDesktop.split(processPanelKey, propertyTableKey, DockingConstants.SPLIT_RIGHT, 0.8);
designDesktop.split(propertyTableKey, operatorHelpKey, DockingConstants.SPLIT_BOTTOM, .66);
designDesktop.createTab(propertyTableKey, processContextEditorKey, 1);
designDesktop.createTab(operatorHelpKey, commentEditorKey, 1);
// designDesktop.split(processPanelKey, overviewKey, DockingConstants.SPLIT_LEFT, 0.25);
// designDesktop.split(overviewKey, newOperatorEditorKey, DockingConstants.SPLIT_BOTTOM, 0.2);
// designDesktop.createTab(newOperatorEditorKey, repositoryKey, 1);
designDesktop.split(processPanelKey, newOperatorEditorKey, DockingConstants.SPLIT_LEFT, 0.25);
designDesktop.split(newOperatorEditorKey, repositoryKey, DockingConstants.SPLIT_BOTTOM, 0.5);
//designDesktop.createTab(newOperatorEditorKey, repositoryKey, 1);
designDesktop.split(processPanelKey, errorTableKey, DockingConstants.SPLIT_BOTTOM, 0.8);
designDesktop.createTab(errorTableKey, messageViewerKey, 1);
designDesktop.createTab(processPanelKey, xmlEditorKey, 1);
} else if ("result".equals(perspectiveName)) {
Perspective resultPerspective = getPerspective("result");
WSDesktop resultsDesktop = resultPerspective.getWorkspace().getDesktop(0);
resultsDesktop.clear();
resultsDesktop.addDockable(resultsKey);
resultsDesktop.split(resultsKey, messageViewerKey, DockingConstants.SPLIT_BOTTOM, 0.8);
resultsDesktop.split(messageViewerKey, new WSDockKey(SystemMonitor.SYSTEM_MONITOR_DOCK_KEY), DockingConstants.SPLIT_RIGHT, 0.8);
resultsDesktop.split(resultsKey, repositoryKey, DockingConstants.SPLIT_RIGHT, 0.8);
} else if ("welcome".equals(perspectiveName)) {
Perspective welcomePerspective = getPerspective("welcome");
WSDesktop welcomeDesktop = welcomePerspective.getWorkspace().getDesktop(0);
welcomeDesktop.clear();
welcomeDesktop.addDockable(welcomeKey);
} else {
throw new IllegalArgumentException("Not a predevined perspective: "+perspectiveName);
}
}