本文整理汇总了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());
}
示例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);
}
示例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());
}
示例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());
}