• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CyServiceRegistrar类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: MapColumnTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public MapColumnTask(CyServiceRegistrar registrar) {
	this.applicationManager = registrar.getService(CyApplicationManager.class);
	this.mappingManager = registrar.getService(DataSeriesMappingManager.class);
	
	DataSeriesManager dataSeriesManager = registrar.getService(DataSeriesManager.class);
	CyNetworkManager networkManager = registrar.getService(CyNetworkManager.class);
	
	targetClass = new ListSingleSelection<>(new TargetClassInfo("Nodes", CyNode.class), new TargetClassInfo("Edges", CyEdge.class));
	dataSeries = new ListSingleSelection<>(dataSeriesManager.getAllDataSeries());
	existingColumnForMapping = new ListSingleSelection<>();
	mapRowNamesWithColumn = new ListSingleSelection<>();
	
	targetNetwork = new ListSingleSelection<>(networkManager.getNetworkSet().stream().toArray(CyNetwork[]::new));
	if(applicationManager.getCurrentNetwork() != null)
	{
		targetNetwork.setSelectedValue(applicationManager.getCurrentNetwork());
	}
	
	updateExistingColumnForMapping(CyNode.class);
	updateMapRowNamesWithColumn(CyNode.class);
	
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:23,代码来源:MapColumnTask.java


示例2: AbstractImportTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public AbstractImportTask(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
	this.dataSeriesManager = registrar.getService(DataSeriesManager.class);
	
	DataSeriesImportManager importManager = registrar.getService(DataSeriesImportManager.class);
	
	this.provider = new ListSingleSelection<>(importManager.getAllImportProviders().stream()
			.map(x -> new ProviderDisplay(x))
			.collect(Collectors.toList()));
	
	Optional<ProviderDisplay> timeSeriesDisplay = provider.getPossibleValues().stream()
			.filter(x -> 
				x.getProvider().getImportedClass() != null && TimeSeries.class.isAssignableFrom(x.getProvider().getImportedClass()))
			.findAny();
	
	if(timeSeriesDisplay.isPresent())
	{
		provider.setSelectedValue(timeSeriesDisplay.get());
	}
	
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:23,代码来源:AbstractImportTask.java


示例3: ensurePanelVisible

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public static void ensurePanelVisible(CyServiceRegistrar registrar, CytoPanelComponent panel)
{
	CytoPanel cytoPanel = registrar.getService(CySwingApplication.class).getCytoPanel(panel.getCytoPanelName());
	if(cytoPanel.getState() == CytoPanelState.HIDE)
	{
		cytoPanel.setState(CytoPanelState.DOCK);
	}
	
	SwingUtilities.invokeLater(() -> {
		int index = cytoPanel.indexOfComponent(panel.getComponent());
		if(index >= 0)
		{
			cytoPanel.setSelectedIndex(index);;
		}
		
	});
	
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:19,代码来源:UIUtils.java


示例4: SafeController

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SafeController(CyServiceRegistrar registrar,
                      CySwingApplication application,
                      CyApplicationManager applicationManager,
                      ImportPanelController importPanel,
                      AttributeBrowserController attributeBrowser,
                      CompositeMapController compositeMapPanel,
                      DomainBrowserController domainBrowser,
                      EventService eventService,
                      SafeSessionSerializer serializer,
                      SelectionTracker selectionTracker) {

    this.registrar = registrar;
    this.application = application;
    this.applicationManager = applicationManager;

    this.importPanel = importPanel;
    this.attributeBrowser = attributeBrowser;
    this.compositeMapPanel = compositeMapPanel;
    this.domainBrowser = domainBrowser;
    this.eventService = eventService;
    this.serializer = serializer;
    this.selectionTracker = selectionTracker;

    sessionsBySuid = new LongObjectHashMap<>();
}
 
开发者ID:baryshnikova-lab,项目名称:safe-java,代码行数:26,代码来源:SafeController.java


示例5: start

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
    CyApplicationManager applicationManager = getService(context, CyApplicationManager.class);
    CySwingApplication swingApplication = getService(context, CySwingApplication.class);
    CyServiceRegistrar serviceRegistrar = getService(context, CyServiceRegistrar.class);
    VisualMappingManager visualMappingManager = getService(context, VisualMappingManager.class);
    VizmapReaderManager vizmapReaderManager = getService(context, VizmapReaderManager.class);
    TaskManager taskManager = getService(context, TaskManager.class);
    
    CySwing.init(swingApplication, serviceRegistrar); 
    NetworkController.init(applicationManager, visualMappingManager);
    
    // UI controls
    MenuAction menuAction = new MenuAction(taskManager);
    registerService(context, menuAction, CyAction.class, new Properties());


    taskManager.execute(new TaskIterator(new ImportGFDNetVisualStylesTask(visualMappingManager, vizmapReaderManager)));
    
    serviceRegistrar.registerService(new ClickOnViewListener(), RowsSetListener.class, new Properties());
    serviceRegistrar.registerService(new NetworkClosedListener(), NetworkAboutToBeDestroyedListener.class, new Properties());
}
 
开发者ID:juanjoDiaz,项目名称:gfdnet,代码行数:23,代码来源:GFDnet.java


示例6: SmoothInteractivePerformTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SmoothInteractivePerformTask(CyServiceRegistrar registrar, TimeSeries sourceTimeSeries,
		double[] estimateX, SingleParameterSmoothingProvider provider, double parameter, Map<String, List<Integer>> rowGrouping, SmoothingPreviewPanel sourcePanel) {
	super();
	this.registrar = registrar;
	this.sourceTimeSeries = sourceTimeSeries;
	this.estimateX = estimateX;
	this.provider = provider;
	this.parameter = parameter;
	this.sourcePanel = sourcePanel;
	this.rowGrouping = rowGrouping;
	outputParameters = new SmoothingOutputParameters();
	outputParameters.resultName = sourceTimeSeries + "_Smooth";
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:14,代码来源:SmoothInteractivePerformTask.java


示例7: SmoothDataSeriesTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SmoothDataSeriesTask(CyServiceRegistrar registrar) {
	this.dataSeriesManager = registrar.getService(DataSeriesManager.class);
	this.smoothingService = registrar.getService(SmoothingService.class);
	this.registrar = registrar;
	timeSeries = new ListSingleSelection<>(dataSeriesManager.getDataSeriesByType(TimeSeries.class));
	outputParameters = new SmoothingOutputParameters();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:8,代码来源:SmoothDataSeriesTask.java


示例8: MappingManagerPanel

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
/**
 * Create the panel.
 */
public MappingManagerPanel(CyServiceRegistrar registrar) {
	this.registrar = registrar;
	setLayout(new FormLayout(new ColumnSpec[] {
			FormSpecs.RELATED_GAP_COLSPEC,
			ColumnSpec.decode("default:grow"),
			FormSpecs.RELATED_GAP_COLSPEC,
			FormSpecs.DEFAULT_COLSPEC,},
		new RowSpec[] {
			FormSpecs.RELATED_GAP_ROWSPEC,
			RowSpec.decode("default:grow"),
			FormSpecs.RELATED_GAP_ROWSPEC,
			FormSpecs.DEFAULT_ROWSPEC,
			FormSpecs.RELATED_GAP_ROWSPEC,}));
	
	JScrollPane scrollPane = new JScrollPane();
	add(scrollPane, "2, 2, 3, 1, fill, fill");
	
	table = new JTable();
	table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
	scrollPane.setViewportView(table);
	table.setMinimumSize(new Dimension(100, 100));
	
	JButton btnAddMapping = new JButton("Add");
	btnAddMapping.addActionListener(e -> addClicked());
	add(btnAddMapping, "2, 4");
	
	JButton btnRemoveMapping = new JButton("Remove Selected");
	btnRemoveMapping.addActionListener(e -> removeClicked());
	add(btnRemoveMapping, "4, 4");
	
	updateContents();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:36,代码来源:MappingManagerPanel.java


示例9: configure

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
@Override
protected void configure() {
	// Bind cytoscape OSGi services
	bindService(CyServiceRegistrar.class);
	bindService(CyApplicationManager.class);
	bindService(CySwingApplication.class);
	bindService(CyNetworkManager.class);
	bindService(CyNetworkViewFactory.class);
	bindService(CyNetworkViewManager.class);
	bindService(CyNetworkFactory.class);
	bindService(IconManager.class);
	bindService(CyLayoutAlgorithmManager.class);
	bindService(CyGroupManager.class);
	bindService(CyGroupFactory.class);
	bindService(CyGroupAggregationManager.class);
	bindService(CyGroupSettingsManager.class);
	bindService(AvailableCommands.class);
	bindService(CommandExecutorTaskFactory.class);
	bindService(CySessionManager.class);
	bindService(CyEventHelper.class);
	bindService(OpenBrowser.class);
	bindService(VisualMappingManager.class);
	bindService(CyNetworkTableManager.class);
	bindService(CyTableManager.class);
	bindService(CyTableFactory.class);
	bindService(FileUtil.class);
	bindService(CyRootNetworkManager.class);
	
	bindService(DialogTaskManager.class);
	TypeLiteral<SynchronousTaskManager<?>> synchronousManager = new TypeLiteral<SynchronousTaskManager<?>>(){};
	bind(synchronousManager).toProvider(service(synchronousManager).single());
	
	bindService(AnnotationManager.class);
	TypeLiteral<AnnotationFactory<ShapeAnnotation>> shapeFactory = new TypeLiteral<AnnotationFactory<ShapeAnnotation>>(){};
	bind(shapeFactory).toProvider(service(shapeFactory).filter(ldap("(type=ShapeAnnotation.class)")).single());
	TypeLiteral<AnnotationFactory<TextAnnotation>> textFactory = new TypeLiteral<AnnotationFactory<TextAnnotation>>(){};
	bind(textFactory).toProvider(service(textFactory).filter(ldap("(type=TextAnnotation.class)")).single());
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:39,代码来源:CytoscapeServiceModule.java


示例10: start

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
	networkFactory = getService(context, CyNetworkFactory.class);
	networkManager = getService(context, CyNetworkManager.class);
	networkNaming = getService(context, CyNetworkNaming.class);
	networkViewFactory = getService(context, CyNetworkViewFactory.class);
	networkViewManager = getService(context, CyNetworkViewManager.class);
	serviceRegistrar = getService(context, CyServiceRegistrar.class);
	
	//Set up tabbed panel in Control Panel
	CySwingApplication cytoscapeDesktopService = getService(context,CySwingApplication.class);
	
	
	CyApplicationManager appManager = getService(context, CyApplicationManager.class);
	
	OpenTaskFactory openTaskFactory = new OpenTaskFactory(cytoscapeDesktopService, serviceRegistrar, appManager);
	Properties openTaskFactoryProps = new Properties();
	openTaskFactoryProps.setProperty("preferredMenu", "Apps.SCODE");
	openTaskFactoryProps.setProperty("title", "Open SCODE");
	openTaskFactoryProps.setProperty("menuGravity","1.0");
	
	registerService(context, openTaskFactory, TaskFactory.class, openTaskFactoryProps);
	
	CloseTaskFactory closeTaskFactory = new CloseTaskFactory(cytoscapeDesktopService, serviceRegistrar);
	Properties closeTaskFactoryProps = new Properties();
	closeTaskFactoryProps.setProperty("preferredMenu", "Apps.SCODE");
	closeTaskFactoryProps.setProperty("title", "Close SCODE");
	closeTaskFactoryProps.setProperty("menuGravity","2.0");
	
	registerService(context, closeTaskFactory, TaskFactory.class, closeTaskFactoryProps);

}
 
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:33,代码来源:CyActivator.java


示例11: SmoothInteractiveShowUITaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SmoothInteractiveShowUITaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:SmoothInteractiveShowUITaskFactory.java


示例12: MapColumnTaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public MapColumnTaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:MapColumnTaskFactory.java


示例13: SmoothDataSeriesTaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SmoothDataSeriesTaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
	dataSeriesManager = registrar.getService(DataSeriesManager.class);
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:6,代码来源:SmoothDataSeriesTaskFactory.java


示例14: SmoothInteractiveShowUITask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public SmoothInteractiveShowUITask(CyServiceRegistrar registrar) {
	this.registrar = registrar;
	timeSeries = new ListSingleSelection<>(registrar.getService(DataSeriesManager.class).getDataSeriesByType(TimeSeries.class));
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:SmoothInteractiveShowUITask.java


示例15: ManageMappingsTaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ManageMappingsTaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ManageMappingsTaskFactory.java


示例16: ManageMappingsTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ManageMappingsTask(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ManageMappingsTask.java


示例17: ImportSoftFileTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ImportSoftFileTask(CyServiceRegistrar registrar) {
	super(registrar);
	this.importParameters = new SoftFileImportParameters();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ImportSoftFileTask.java


示例18: ImportDataSeriesTask

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ImportDataSeriesTask(CyServiceRegistrar registrar) {
	super(registrar);
	this.importParameters = new TabularFileImportParameters();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ImportDataSeriesTask.java


示例19: ImportSoftFileTaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ImportSoftFileTaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ImportSoftFileTaskFactory.java


示例20: ImportDataSeriesTaskFactory

import org.cytoscape.service.util.CyServiceRegistrar; //导入依赖的package包/类
public ImportDataSeriesTaskFactory(CyServiceRegistrar registrar) {
	super();
	this.registrar = registrar;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:ImportDataSeriesTaskFactory.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GMSSRandom类代码示例发布时间:2022-05-22
下一篇:
Java PajekNetReader类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap