当前位置: 首页>>代码示例>>Java>>正文


Java ColourManager类代码示例

本文整理汇总了Java中org.apache.taverna.workbench.configuration.colour.ColourManager的典型用法代码示例。如果您正苦于以下问题:Java ColourManager类的具体用法?Java ColourManager怎么用?Java ColourManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ColourManager类属于org.apache.taverna.workbench.configuration.colour包,在下文中一共展示了ColourManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: GraphController

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public GraphController(Workflow workflow, Profile profile,
		boolean interactive, Component componentForPopups,
		Alignment alignment, PortStyle portStyle, EditManager editManager,
		MenuManager menuManager, ColourManager colourManager) {
	this.workflow = workflow;
	this.profile = profile;
	this.interactive = interactive;
	this.componentForPopups = componentForPopups;
	this.alignment = alignment;
	this.portStyle = portStyle;
	this.editManager = editManager;
	this.colourManager = colourManager;
	this.graphEventManager = new DefaultGraphEventManager(this,
			componentForPopups, menuManager);
	graph = generateGraph();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:17,代码来源:GraphController.java

示例2: saveColoursForDummyColourable

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
@Test
public void saveColoursForDummyColourable() {
	String dummy = "";
	ColourManager manager=new ColourManagerImpl(configurationManager);
	manager.setProperty(dummy.getClass().getCanonicalName(), "#000000");

	File f = new File(System.getProperty("java.io.tmpdir"));
	File d = new File(f, UUID.randomUUID().toString());
	d.mkdir();
	configurationManager.setBaseConfigLocation(d);
	try {
		configurationManager.store(manager);
	} catch (Exception e1) {
		e1.printStackTrace();
	}

	try {
		configurationManager.populate(manager);
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}


}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:26,代码来源:ConfigurationManagerTest.java

示例3: DataflowActivityContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public DataflowActivityContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, MenuManager menuManager,
		ActivityIconManager activityIconManager, ColourManager colourManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry,
		WorkbenchConfiguration workbenchConfiguration, SelectionManager selectionManager) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.menuManager = menuManager;
	this.activityIconManager = activityIconManager;
	this.colourManager = colourManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.workbenchConfiguration = workbenchConfiguration;
	this.selectionManager = selectionManager;
	addEditButtons();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:17,代码来源:DataflowActivityContextualView.java

示例4: ImportWorkflowWizard

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public ImportWorkflowWizard(Frame parentFrame, EditManager editManager,
		FileManager fileManager, MenuManager menuManager, ColourManager colourManager,
		WorkbenchConfiguration workbenchConfiguration, SelectionManager selectionManager) {
	super(parentFrame, "Import workflow", true, null);
	this.selectionManager = selectionManager;
	destinationWorkflow = selectionManager.getSelectedWorkflow();
	destinationProfile = selectionManager.getSelectedProfile();
	destinationWorkflowBundle = selectionManager.getSelectedWorkflowBundle();

	this.editManager = editManager;
	this.fileManager = fileManager;
	this.menuManager = menuManager;
	this.colourManager = colourManager;
	this.workbenchConfiguration = workbenchConfiguration;

	setSize(600, 600);
	add(makeContentPane(), BorderLayout.CENTER);
	// Add some space
	add(new JPanel(), BorderLayout.WEST);
	add(new JPanel(), BorderLayout.NORTH);
	add(new JPanel(), BorderLayout.SOUTH);
	add(new JPanel(), BorderLayout.EAST);
	findChosenDataflow(this, true);
	updateAll();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:26,代码来源:ImportWorkflowWizard.java

示例5: WSDLActivityContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public WSDLActivityContextualView(Activity activity, EditManager editManager, FileManager fileManager,
		SelectionManager selectionManager, ActivityIconManager activityIconManager,
		ColourManager colourManager, CredentialManager credentialManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry) {
	super(activity, editManager, selectionManager, colourManager);
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.credentialManager = credentialManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:11,代码来源:WSDLActivityContextualView.java

示例6: AbstractXMLSplitterActionView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public AbstractXMLSplitterActionView(Activity activity, EditManager editManager,
		SelectionManager selectionManager, ColourManager colourManager) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.selectionManager = selectionManager;
	if (getActivity().getType().equals(WSDLServiceDescription.OUTPUT_SPLITTER_TYPE)) {
		splitterAction = new AddXMLOutputSplitterAction(getActivity(),
				null, editManager, selectionManager);
	} else if (getActivity().getType().equals(WSDLServiceDescription.INPUT_SPLITTER_TYPE)) {
		splitterAction = new AddXMLInputSplitterAction(getActivity(),
				null, editManager, selectionManager);
	}
	super.initView();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:15,代码来源:AbstractXMLSplitterActionView.java

示例7: RESTActivityMainContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public RESTActivityMainContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ActivityIconManager activityIconManager,
		ColourManager colourManager, ServiceDescriptionRegistry serviceDescriptionRegistry,
		ServiceRegistry serviceRegistry) {
	this.activity = activity;
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.colourManager = colourManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.serviceRegistry = serviceRegistry;
	initView();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:14,代码来源:RESTActivityMainContextualView.java

示例8: BeanshellContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public BeanshellContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ActivityIconManager activityIconManager,
		ColourManager colourManager, ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.applicationConfiguration = applicationConfiguration;
	init();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:13,代码来源:BeanshellContextualView.java

示例9: ExternalToolActivityContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public ExternalToolActivityContextualView(Activity<?> activity, EditManager editManager,
		FileManager fileManager, ColourManager colourManager, ActivityIconManager activityIconManager) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:8,代码来源:ExternalToolActivityContextualView.java

示例10: SpreadsheetImportContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public SpreadsheetImportContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ActivityIconManager activityIconManager,
		ColourManager colourManager, ServiceDescriptionRegistry serviceDescriptionRegistry, ServiceRegistry serviceRegistry) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.serviceRegistry = serviceRegistry;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:11,代码来源:SpreadsheetImportContextualView.java

示例11: LocalworkerActivityContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public LocalworkerActivityContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ColourManager colourManager,
		ActivityIconManager activityIconManager,
		ServiceDescriptionRegistry serviceDescriptionRegistry,
		ApplicationConfiguration applicationConfiguration) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
	this.applicationConfiguration = applicationConfiguration;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench-common-activities,代码行数:13,代码来源:LocalworkerActivityContextualView.java

示例12: DisabledContextualView

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public DisabledContextualView(Activity activity, EditManager editManager,
		FileManager fileManager, ReportManager reportManager, ColourManager colourManager,
		ActivityIconManager activityIconManager, ServiceDescriptionRegistry serviceDescriptionRegistry) {
	super(activity, colourManager);
	this.editManager = editManager;
	this.fileManager = fileManager;
	this.reportManager = reportManager;
	this.activityIconManager = activityIconManager;
	this.serviceDescriptionRegistry = serviceDescriptionRegistry;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:11,代码来源:DisabledContextualView.java

示例13: SVGGraphController

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
public SVGGraphController(Workflow dataflow, Profile profile,
		boolean interactive, JSVGCanvas svgCanvas, EditManager editManager,
		MenuManager menuManager, ColourManager colourManager,
		WorkbenchConfiguration workbenchConfiguration) {
	super(dataflow, profile, interactive, svgCanvas, editManager,
			menuManager, colourManager);
	this.svgCanvas = svgCanvas;
	this.workbenchConfiguration = workbenchConfiguration;
	installUpdateManager();
	layoutSVGDocument(svgCanvas.getBounds());
	svgCanvas.setDocument(getSVGDocument());
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:13,代码来源:SVGGraphController.java

示例14: testConfigurableness

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
@Test
public void testConfigurableness() throws Exception {
	ColourManager manager = new ColourManagerImpl(configurationManager);
	assertTrue(manager instanceof Configurable);

	assertEquals("wrong category", "colour", manager.getCategory());
	assertEquals("wrong name", "Colour Management", manager.getDisplayName());
	assertEquals("wrong UUID", "a2148420-5967-11dd-ae16-0800200c9a66",
			manager.getUUID());
	assertNotNull("there is no default property map", manager
			.getDefaultPropertyMap());
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:13,代码来源:ColourManagerTest.java

示例15: saveAsWrongArrayType

import org.apache.taverna.workbench.configuration.colour.ColourManager; //导入依赖的package包/类
@Test
public void saveAsWrongArrayType() throws Exception {
	String dummy = "";
	ColourManager manager = new ColourManagerImpl(configurationManager);
	manager.setProperty(dummy.getClass().getCanonicalName(), "#ffffff");

	File baseLoc = File.createTempFile("test", "scratch");
	baseLoc.delete();
	assertTrue("Could not make directory " + baseLoc, baseLoc.mkdir());
	configurationManager.setBaseConfigLocation(baseLoc);
	configurationManager.store(manager);
	configurationManager.populate(manager);
	manager.getPreferredColour(dummy);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:15,代码来源:ColourManagerTest.java


注:本文中的org.apache.taverna.workbench.configuration.colour.ColourManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。