當前位置: 首頁>>代碼示例>>Java>>正文


Java ResultDisplay.RESULT_DOCK_KEY屬性代碼示例

本文整理匯總了Java中com.rapidminer.gui.processeditor.results.ResultDisplay.RESULT_DOCK_KEY屬性的典型用法代碼示例。如果您正苦於以下問題:Java ResultDisplay.RESULT_DOCK_KEY屬性的具體用法?Java ResultDisplay.RESULT_DOCK_KEY怎麽用?Java ResultDisplay.RESULT_DOCK_KEY使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.rapidminer.gui.processeditor.results.ResultDisplay的用法示例。


在下文中一共展示了ResultDisplay.RESULT_DOCK_KEY屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: restoreDefault

/**
 * 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);
	}
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:44,代碼來源:PerspectiveModel.java

示例2: restoreDefault

/**
 * 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);
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:37,代碼來源:PerspectiveModel.java

示例3: restoreDefault

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);
		}
	}
 
開發者ID:rapidminer,項目名稱:rapidminer-5,代碼行數:55,代碼來源:Perspectives.java


注:本文中的com.rapidminer.gui.processeditor.results.ResultDisplay.RESULT_DOCK_KEY屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。