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

Java RowsSetListener类代码示例

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

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



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

示例1: start

import org.cytoscape.model.events.RowsSetListener; //导入依赖的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


示例2: start

import org.cytoscape.model.events.RowsSetListener; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {

    CyApplicationManager applicationManager = getService(context, CyApplicationManager.class);
    CyNetworkViewManager networkViewManager = getService(context, CyNetworkViewManager.class);
    CyServiceRegistrar registrar = getService(context, CyServiceRegistrar.class);
    CySwingApplication application = getService(context, CySwingApplication.class);
    DialogTaskManager taskManager = getService(context, DialogTaskManager.class);
    CyTableManager tableManager = getService(context, CyTableManager.class);
    CyTableFactory tableFactory = getService(context, CyTableFactory.class);

    VisualMappingManager visualMappingManager = getService(context, VisualMappingManager.class);
    VisualStyleFactory visualStyleFactory = getService(context, VisualStyleFactory.class);

    VisualMappingFunctionFactory continuousMappingFactory = getService(context, VisualMappingFunctionFactory.class,
                                                                       "(mapping.type=continuous)");

    VisualMappingFunctionFactory passthroughMappingFactory = getService(context, VisualMappingFunctionFactory.class,
                                                                        "(mapping.type=passthrough)");

    StyleFactory styleFactory = new StyleFactory(visualStyleFactory, continuousMappingFactory,
                                                 passthroughMappingFactory);

    EventService eventService = new DefaultEventService();

    AttributeBrowserController attributeBrowser = new AttributeBrowserController(visualMappingManager, styleFactory,
                                                                                 eventService, taskManager);

    AnnotationChooserController annotationChooser = new AnnotationChooserController(application, taskManager);

    ImportPanelController importPanel = new ImportPanelController(taskManager, attributeBrowser, annotationChooser,
                                                                  eventService);

    DomainBrowserController domainBrowser = new DomainBrowserController(visualMappingManager, styleFactory,
                                                                        taskManager, eventService);

    CompositeMapController compositeMapPanel = new CompositeMapController(taskManager, domainBrowser, eventService);

    SafeSessionSerializer serializer = new SafeSessionSerializer(tableManager, tableFactory);

    SelectionTracker selectionTracker = new SelectionTracker(eventService);

    RedrawTracker redrawTracker = new RedrawTracker(eventService);

    SafeController safeController = new SafeController(registrar, application, applicationManager, importPanel,
                                                       attributeBrowser, compositeMapPanel, domainBrowser,
                                                       eventService, serializer, selectionTracker);

    Map<String, String> safeActionProperties = new MapBuilder().put("inMenuBar", "true")
                                                               .put("preferredMenu", ServiceProperties.APPS_MENU)
                                                               .build();
    SafeAction safeAction = new SafeAction(safeActionProperties, applicationManager, networkViewManager,
                                           safeController);
    safeAction.putValue(CyAction.NAME, "SAFE");

    registerService(context, safeAction, CyAction.class);
    registerService(context, safeController, SetCurrentNetworkViewListener.class,
                    NetworkViewAboutToBeDestroyedListener.class, ColumnCreatedListener.class,
                    ColumnDeletedListener.class, ColumnNameChangedListener.class, SessionLoadedListener.class,
                    SessionAboutToBeSavedListener.class);
    registerService(context, selectionTracker, RowsSetListener.class);
    registerService(context, redrawTracker, UpdateNetworkPresentationListener.class);
}
 
开发者ID:baryshnikova-lab,项目名称:safe-java,代码行数:64,代码来源:CyActivator.java


示例3: start

import org.cytoscape.model.events.RowsSetListener; //导入依赖的package包/类
/**
 * Upon bundle activation (install or startup).
 */
public void start(BundleContext bc) {
    // Manager services.
    //CySwingApplication desktopManager = getService(bc, CySwingApplication.class);
    
    // Basic access to current and/or currently selected networks, 
    // views and rendering engines in an instance of Cytoscape.
    CyApplicationManager applicationManager = getService(bc, CyApplicationManager.class);
    
    // Access to all root networks
    CyRootNetworkManager rootNetworkManager = getService(bc, CyRootNetworkManager.class);
    
    // Access to all networks
    CyNetworkManager networkManager = getService(bc, CyNetworkManager.class);
    
    // This object manages mapping from view model to VisualStyle. 
    // User objects can access all VisualStyles and VisualMappingFunctions through this class.
    VisualMappingManager visualMappingManager = getService(bc, VisualMappingManager.class);
    
    // The CyGroupManager maintains information about all of the groups an instance of Cytoscape.
    CyGroupManager groupManager = getService(bc, CyGroupManager.class);
    
    // An interface describing a factory used for creating CyGroup objects.
    CyGroupFactory groupFactory = getService(bc, CyGroupFactory.class);
    
    TaskManager taskManager = getService(bc, TaskManager.class);
    
    // Action, the group viewer
    ViewerAction viewerAction =
            new ViewerAction(applicationManager,
                             visualMappingManager,
                             groupManager,
                             groupFactory);
    
    // Action, the group selector
    /*GroupsFromColumnsAction groupsAction =
            new GroupsFromColumnsAction(applicationManager,
                                        groupManager,
                                        groupFactory);*/
    
    // The eXamine control panel
    ControlPanel controlPanel = new ControlPanel(networkManager, rootNetworkManager, 
    		applicationManager, groupManager, groupFactory, taskManager);

    // Register it as a service.
    registerService(bc, viewerAction, CyAction.class, new Properties());
    //registerService(bc, groupsAction, CyAction.class, new Properties());
    registerService(bc, controlPanel, CytoPanelComponent.class, new Properties());
    registerService(bc, controlPanel, SetCurrentNetworkListener.class, new Properties());
    registerService(bc, controlPanel, RowsSetListener.class, new Properties());
    registerService(bc, controlPanel, ColumnNameChangedListener.class, new Properties());
    registerService(bc, controlPanel, ColumnDeletedListener.class, new Properties());
    registerService(bc, controlPanel, ColumnCreatedListener.class, new Properties());
    registerService(bc, controlPanel, NetworkDestroyedListener.class, new Properties());
    registerService(bc, controlPanel, SessionLoadedListener.class, new Properties());
}
 
开发者ID:ls-cwi,项目名称:eXamine,代码行数:59,代码来源:CyActivator.java


示例4: start

import org.cytoscape.model.events.RowsSetListener; //导入依赖的package包/类
@Override
public void start(BundleContext bc) throws Exception {
	
	CyApplicationManager cyApplicationManager = getService(bc,CyApplicationManager.class);

	CyServiceRegistrar serviceRegistrar = getService(bc, CyServiceRegistrar.class);		

	DataSeriesMappingManagerImpl mappingManager = new DataSeriesMappingManagerImpl(bc);
	registerAllServices(bc, mappingManager, new Properties());

	DataSeriesManagerImpl dataSeriesManager = new DataSeriesManagerImpl(bc, mappingManager);
	registerAllServices(bc, dataSeriesManager, new Properties());

	DataSeriesStorageManager storageManager = new DataSeriesStorageManagerImpl(bc, serviceRegistrar.getService(CyNetworkManager.class), dataSeriesManager, mappingManager);
	registerAllServices(bc, storageManager, new Properties());

	registerService(bc, new TimeSeriesStorageProviderImpl(), DataSeriesStorageProvider.class, new Properties());
	registerService(bc, new NamedDoubleDataSeriesStorageProviderImpl(), DataSeriesStorageProvider.class, new Properties());

	SmoothingService smoothingService = new SmoothingServiceImpl(); 
	registerService(bc, smoothingService, SmoothingService.class, new Properties());
	
	registerService(bc, new TabularFileImportParametersGUIHandlerFactory(), GUITunableHandlerFactory.class, new Properties());
	registerService(bc, new SoftFileImportParametersGUIHandlerFactory(), GUITunableHandlerFactory.class, new Properties());
	
	registerService(bc, new TimeSeriesImportProviderImpl(), DataSeriesImportProvider.class, new Properties());
	registerService(bc, new NamedDoubleDataSeriesImportProviderImpl(), DataSeriesImportProvider.class, new Properties());

	registerService(bc, new DataSeriesFactoryImpl(), DataSeriesFactory.class, new Properties());

	registerService(bc, new MappingManipulationServiceImpl(serviceRegistrar), MappingManipulationService.class, new Properties());
	
	DataSeriesImportManager importManager = new DataSeriesImportManagerImpl(bc);
	registerService(bc, importManager, DataSeriesImportManager.class, new Properties());
	
	
	ImportDataSeriesTaskFactory importTaskFactory = new ImportDataSeriesTaskFactory(serviceRegistrar);
	registerMenuItem(bc, "File.Import.Data Series", "From tabular file (.csv,.tsv, etc.) ...", importTaskFactory);
	ImportSoftFileTaskFactory importSoftTaskFactory = new ImportSoftFileTaskFactory(serviceRegistrar);
	registerMenuItem(bc, "File.Import.Data Series", "From SOFT file...", importSoftTaskFactory);

	registerMenuItem(bc, "File.Export", "Data Series...", new ExportDataSeriesTaskFactory(dataSeriesManager, storageManager));

	registerMenuItem(bc, "Remove Data Series", new RemoveDataSeriesTaskFactory(dataSeriesManager));

	MapColumnTaskFactory mapColumnTaskFactory = new MapColumnTaskFactory(serviceRegistrar);
	//registerMenuItem(bc, "Map Column to Series", mapColumnTaskFactory);

	//registerMenuItem(bc, "Remove Column Mapping", new RemoveColumnMappingTaskFactory(mappingManager));

	registerMenuItem(bc, "Manage Column Mappings", new ManageMappingsTaskFactory(serviceRegistrar));

	registerMenuItem(bc, DEFAULT_MENU + ".Advanced smoothing", "Linear kernel", new SmoothDataSeriesTaskFactory(serviceRegistrar));

	registerMenuItem(bc, "Exponentiate Data Series", new ExponentiateDataSeriesTaskFactory(dataSeriesManager));
	
	SmoothInteractiveShowUITaskFactory smoothInteractiveTaskFactory = new SmoothInteractiveShowUITaskFactory(serviceRegistrar);
	registerMenuItem(bc, "Interactive smoothing", smoothInteractiveTaskFactory);
	
	DataSeriesPanel panel = new DataSeriesPanel(serviceRegistrar);
	registerService(bc, panel, CytoPanelComponent.class, new Properties());
	registerService(bc, panel, DataSeriesListener.class, new Properties());
	
	DataSeriesVisualPanel visualPanel = new DataSeriesVisualPanel(cyApplicationManager, dataSeriesManager, mappingManager);
	registerService(bc, visualPanel, CytoPanelComponent.class, new Properties());
	registerService(bc, visualPanel, RowsSetListener.class, new Properties());
	registerService(bc, visualPanel, DataSeriesListener.class, new Properties());
	registerService(bc, visualPanel, DataSeriesMappingListener.class, new Properties());
	
	registerService(bc, new DataSeriesPublicTasksImpl(importTaskFactory, importSoftTaskFactory, mapColumnTaskFactory, smoothInteractiveTaskFactory), DataSeriesPublicTasks.class, new Properties());
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:72,代码来源:CyActivator.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java RMZKUtils类代码示例发布时间:2022-05-22
下一篇:
Java ItemStackDataLists类代码示例发布时间: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