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


Java CyNetworkManager类代码示例

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


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

示例1: MapColumnTask

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

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Before
public void setUp(CyNetworkFactory networkFactory, CyNetworkManager networkManager) {
	networkView = NetworkTestUtil.createNetwork(networkFactory, networkManager);
	CyNetwork network = networkView.getModel();
	
	nodes = new HashMap<>();
	nodes.put("n1", createNode(network, "n1", "cluster_1"));
	nodes.put("n2", createNode(network, "n2", "cluster_1"));
	nodes.put("n3", createNode(network, "n3", "cluster_1"));
	
	nodes.put("n4", createNode(network, "n4", "cluster_2"));
	nodes.put("n5", createNode(network, "n5", "cluster_2"));
	
	nodes.put("n6", createNode(network, "n6", "cluster_3"));
	
	nodes.put("n7", createNode(network, "n7", null));
	nodes.put("n8", createNode(network, "n8", null));
	nodes.put("n9", createNode(network, "n9", null));
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:20,代码来源:TestCreateAnnotationSetTask.java

示例3: setUp

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Before
public void setUp(CyNetworkFactory networkFactory, CyNetworkManager networkManager) {
	networkView = NetworkTestUtil.createNetwork(networkFactory, networkManager);
	CyNetwork network = networkView.getModel();
	
	nodes = new HashMap<>();
	nodes.put("n1", createNode(network, "n1", "cluster_1"));
	nodes.put("n2", createNode(network, "n2", "cluster_1"));
	nodes.put("n3", createNode(network, "n3", "cluster_1"));
	
	nodes.put("n4", createNode(network, "n4", "cluster_2"));
	nodes.put("n5", createNode(network, "n5", "cluster_2"));
	
	nodes.put("n6", createNode(network, "n6", "cluster_3"));
	
	nodes.put("n7", createNode(network, "n7", "cluster_4"));
	nodes.put("n8", createNode(network, "n8", "cluster_5"));
	nodes.put("n9", createNode(network, "n9", "cluster_6"));
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:20,代码来源:TestCreateAnnotationSetLimitTask.java

示例4: setUp

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Before
public void setUp(CyNetworkFactory networkFactory, CyNetworkManager networkManager) {
	networkView = NetworkTestUtil.createNetwork(networkFactory, networkManager);
	CyNetwork network = networkView.getModel();
	
	createNode(network, "n1", "cluster_1");
	createNode(network, "n2", "cluster_1");
	createNode(network, "n3", "cluster_1");
	
	createNode(network, "n4", "cluster_2");
	createNode(network, "n5", "cluster_2");
	
	createNode(network, "n6", "cluster_3");
	
	createNode(network, "n7", "cluster_4");
	createNode(network, "n8", "cluster_5");
	createNode(network, "n9", "cluster_6");
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:19,代码来源:TestSummaryNetworkAction.java

示例5: configureTest

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Override
protected void configureTest() {
	TableTestSupport tableTestSupport = new TableTestSupport();
	NetworkViewTestSupport networkViewTestSupport = new NetworkViewTestSupport();
	
	bind(CyNetworkFactory.class).toInstance(networkViewTestSupport.getNetworkFactory());
	bind(CyNetworkTableManager.class).toInstance(networkViewTestSupport.getNetworkTableManager());
	bind(CyNetworkManager.class).toInstance(networkViewTestSupport.getNetworkManager());
	bind(CyTableFactory.class).toInstance(tableTestSupport.getTableFactory());
	bind(CyNetworkViewFactory.class).toInstance(networkViewTestSupport.getNetworkViewFactory());
	
	TypeLiteral<TaskManager<?,?>> taskManager = new TypeLiteral<TaskManager<?,?>>(){};
	bind(taskManager).annotatedWith(Names.named("sync")).to(SerialTestTaskManager.class);
	bind(taskManager).annotatedWith(Names.named("dialog")).to(SerialTestTaskManager.class);
	bind(LabelMakerManager.class).toInstance(mock(LabelMakerManager.class));
	bind(IconManager.class).toInstance(mock(IconManager.class));
	// Bind all AssistedInjection factories
	install(ApplicationModule.createFactoryModule());
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:20,代码来源:NetworkTestUtil.java

示例6: getNetworkList

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public void getNetworkList(CyAppAdapter adapter){

		netlist	= new ArrayList<CyNetwork>();
		netNames = new  ArrayList<String>();
		CyNetworkManager netmanager = adapter.getCyNetworkManager();	
		Set<CyNetwork> setnet = netmanager.getNetworkSet();
		//System.out.println("NETWORKS :"+setnet);
		//creating list of networks out of the set and list of networks' names


		for (CyNetwork net:setnet){
			//System.out.println(net);
			String name =net.getRow(net).get("name", String.class);
			if (!(name.equals("null"))){

				netlist.add(net);
				//System.out.println("sel net" + name);
				netNames.add(name);
			}
		}

	}
 
开发者ID:sysbio-curie,项目名称:DeDaL,代码行数:23,代码来源:DedalMethods.java

示例7: AdjNetworkReaderFactory

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public AdjNetworkReaderFactory(final CyFileFilter adjFileFilter, final CyApplicationManager appMgr,
        final CyNetworkViewFactory cyNetworkViewFactory, final CyNetworkFactory cyNetworkFactory,
        final CyNetworkManager cyNetworkManager, final CyNetworkViewManager cyNetworkViewManager,
        final CyRootNetworkManager cyRootNetworkManager, final CyTableFactory cyTableFactory,
        final CyTableManager cyTableManager, final VisualMappingManager visMgr,
        final CyEventHelper eventHelper) {
    this.adjFileFilter = adjFileFilter;
    this.appMgr = appMgr;
    this.cyNetworkFactory = cyNetworkFactory;
    this.cyNetworkViewFactory = cyNetworkViewFactory;
    this.cyNetworkManager = cyNetworkManager;
    this.cyNetworkViewManager = cyNetworkViewManager;
    this.cyRootNetworkManager = cyRootNetworkManager;
    this.cyTableFactory = cyTableFactory;
    this.cyTableManager = cyTableManager;
    this.visMgr = visMgr;
    this.eventHelper = eventHelper;
}
 
开发者ID:srikanthBezawada,项目名称:AdjacencyMatrixExporter,代码行数:19,代码来源:AdjNetworkReaderFactory.java

示例8: AdjNetworkReader

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public AdjNetworkReader(InputStream inputStream, String inputName,
        CyApplicationManager appMgr, CyNetworkViewFactory networkViewFactory,
        CyNetworkFactory networkFactory, CyNetworkManager networkMgr,
        CyNetworkViewManager networkViewMgr, CyRootNetworkManager rootNetworkMgr, 
        CyTableFactory tableFactory, CyTableManager tableMgr, 
        VisualMappingManager visMgr, CyEventHelper eventHelper) {
    super(inputStream, networkViewFactory, networkFactory, networkMgr, rootNetworkMgr);
    this.inputStream = inputStream;
    this.inputName = inputName;
    this.appMgr = appMgr;
    this.networkMgr = networkMgr;
    this.networkViewMgr = networkViewMgr;
    this.tableFactory = tableFactory;
    this.tableMgr = tableMgr;
    this.visMgr = visMgr;
    this.eventHelper = eventHelper;
    this.networkFactory = networkFactory;
    this.networkViewFactory = networkViewFactory;
}
 
开发者ID:srikanthBezawada,项目名称:AdjacencyMatrixExporter,代码行数:20,代码来源:AdjNetworkReader.java

示例9: start

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
	CyApplicationManager manager = getService(context, CyApplicationManager.class);
	CySwingAppAdapter adapter = getService(context, CySwingAppAdapter.class);
	CySwingApplication desktopApp = adapter.getCySwingApplication();
       OpenBrowser openBrowser = getService(context,OpenBrowser.class);
       CyEventHelper eventHelper = getService(context, CyEventHelper.class);
       CyNetworkFactory networkFactory = getService(context, CyNetworkFactory.class);
       CyNetworkManager networkManager = getService(context, CyNetworkManager.class);
       CyNetworkViewFactory networkViewFactory = getService(context, CyNetworkViewFactory.class);
       CyNetworkViewManager networkViewManager = getService(context, CyNetworkViewManager.class);
       VisualMappingManager visualMappingManager = getService(context,VisualMappingManager.class);

	Properties properties = new Properties();

	SlimPanel slimPanel = new SlimPanel(manager, adapter, openBrowser, eventHelper, networkFactory, networkManager,
               networkViewFactory, networkViewManager, visualMappingManager);
	registerService(context, slimPanel, CytoPanelComponent.class, properties);

	SlimscapePluginAction slimscapePluginAction = new SlimscapePluginAction(manager, adapter, desktopApp, slimPanel);
	registerService(context, slimscapePluginAction, CyAction.class, properties);
}
 
开发者ID:passeridae,项目名称:SLiMscape,代码行数:23,代码来源:CyActivator.java

示例10: JGFNetworkReaderFactory

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public JGFNetworkReaderFactory(final CyFileFilter cyFileFilter, final CyApplicationManager appMgr,
        final CyNetworkViewFactory cyNetworkViewFactory, final CyNetworkFactory cyNetworkFactory,
        final CyNetworkManager cyNetworkManager, final CyNetworkViewManager cyNetworkViewManager,
        final CyRootNetworkManager cyRootNetworkManager, final CyTableFactory cyTableFactory,
        final CyTableManager cyTableManager, final VisualMappingManager visMgr,
        final CyEventHelper eventHelper, final GraphReader graphReader,
        final GraphConverter belGraphConverter, final BELEvidenceMapper belEvidenceMapper) {

    this.cyFileFilter = cyFileFilter;
    this.appMgr = appMgr;
    this.cyNetworkFactory = cyNetworkFactory;
    this.cyNetworkViewFactory = cyNetworkViewFactory;
    this.cyNetworkManager = cyNetworkManager;
    this.cyNetworkViewManager = cyNetworkViewManager;
    this.cyRootNetworkManager = cyRootNetworkManager;
    this.cyTableFactory = cyTableFactory;
    this.cyTableManager = cyTableManager;
    this.visMgr = visMgr;
    this.eventHelper = eventHelper;
    this.graphReader = graphReader;
    this.belGraphConverter = belGraphConverter;
    this.belEvidenceMapper = belEvidenceMapper;
}
 
开发者ID:jsongraph,项目名称:jgf-app,代码行数:24,代码来源:JGFNetworkReaderFactory.java

示例11: start

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
	
	CyApplicationManager cyApplicationManager = getService(context, CyApplicationManager.class);
	CySwingApplication cySwingApplication = getService(context, CySwingApplication.class);
	CyNetworkFactory cyNetworkFactory = getService(context, CyNetworkFactory.class);
	CyNetworkManager cyNetMgr = getService(context,CyNetworkManager.class);
	CyTableFactory tableFactory = getService(context, CyTableFactory.class);
	CyNetworkViewManager cyNetViewMgr = getService(context, CyNetworkViewManager.class);
	DialogTaskManager diagTaskManager = getService(context, DialogTaskManager.class);
	CyNetworkViewFactory cyNetworkViewFactory = getService(context, CyNetworkViewFactory.class);
	CyLayoutAlgorithmManager cyLayoutAlgorithmMgr = getService(context,CyLayoutAlgorithmManager.class);
	VisualMappingManager visualMappingMgr = getService(context,VisualMappingManager.class);
	
	plugin = new Plugin(cyApplicationManager,cySwingApplication,cyNetworkFactory,tableFactory,cyNetMgr,cyNetViewMgr,diagTaskManager,cyNetworkViewFactory,cyLayoutAlgorithmMgr,visualMappingMgr);
			
	ConnectInstanceMenuAction connectAction = new ConnectInstanceMenuAction(cyApplicationManager,plugin);	
	SyncUpMenuAction syncUpAction = new SyncUpMenuAction(cyApplicationManager, plugin);
	SyncDownMenuAction syncDownAction = new SyncDownMenuAction(cyApplicationManager, plugin);
	
	registerAllServices(context, connectAction, new Properties());
	registerAllServices(context, syncUpAction, new Properties());
	registerAllServices(context, syncDownAction, new Properties());
	
}
 
开发者ID:gsummer,项目名称:cyNeo4j,代码行数:26,代码来源:CyActivator.java

示例12: SyncDownTaskFactory

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public SyncDownTaskFactory(CyNetworkManager cyNetworkMgr,
		boolean mergeInCurrent, CyNetworkFactory cyNetworkFactory,
		String instanceLocation, String cypherURL,
		String auth,
		CyNetworkViewManager cyNetworkViewMgr,
		CyNetworkViewFactory cyNetworkViewFactory,
		CyLayoutAlgorithmManager cyLayoutAlgorithmMgr,
		VisualMappingManager visualMappingMgr) {
	super();
	this.cyNetworkMgr = cyNetworkMgr;
	this.mergeInCurrent = mergeInCurrent;
	this.cyNetworkFactory = cyNetworkFactory;
	this.instanceLocation = instanceLocation;
	this.cypherURL = cypherURL;
	this.auth = auth;
	this.cyNetworkViewMgr = cyNetworkViewMgr;
	this.cyNetworkViewFactory = cyNetworkViewFactory;
	this.cyLayoutAlgorithmMgr = cyLayoutAlgorithmMgr;
	this.visualMappingMgr = visualMappingMgr;
}
 
开发者ID:gsummer,项目名称:cyNeo4j,代码行数:21,代码来源:SyncDownTaskFactory.java

示例13: SyncDownTask

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public SyncDownTask(boolean mergeInCurrent, String cypherURL,
		String instanceLocation, 
		String auth,
		CyNetworkFactory cyNetworkFactory,
		CyNetworkManager cyNetworkMgr,
		CyNetworkViewManager cyNetworkViewMgr,
		CyNetworkViewFactory cyNetworkViewFactory,
		CyLayoutAlgorithmManager cyLayoutAlgorithmMgr,
		VisualMappingManager visualMappingMgr) {
	super();
	this.mergeInCurrent = mergeInCurrent;
	this.cypherURL = cypherURL;
	this.instanceLocation = instanceLocation;
	this.auth = auth;
	this.cyNetworkFactory = cyNetworkFactory;
	this.cyNetworkMgr = cyNetworkMgr;
	this.cyNetworkViewMgr = cyNetworkViewMgr;
	this.cyNetworkViewFactory = cyNetworkViewFactory;
	this.cyLayoutAlgorithmMgr = cyLayoutAlgorithmMgr;
	this.visualMappingMgr = visualMappingMgr;
}
 
开发者ID:gsummer,项目名称:cyNeo4j,代码行数:22,代码来源:SyncDownTask.java

示例14: isReady

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
@Override
public boolean isReady() {
	if (registrar.getService(CyNetworkManager.class).getNetworkSet().isEmpty())
	{
		return false;
	}
	return  !registrar.getService(DataSeriesManager.class).getAllDataSeries().isEmpty();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:9,代码来源:MapColumnTaskFactory.java

示例15: DataSeriesStorageManagerImpl

import org.cytoscape.model.CyNetworkManager; //导入依赖的package包/类
public DataSeriesStorageManagerImpl(BundleContext bc, CyNetworkManager networkManager, DataSeriesManagerImpl dataSeriesManager, DataSeriesMappingManagerImpl mappingManager) {
	this.dataSeriesManager = dataSeriesManager;
	this.mappingManager = mappingManager;
	this.networkManager = networkManager;
	providerTracker = new ServiceTracker(bc, DataSeriesStorageProvider.class.getName(), null);
	providerTracker.open();
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:8,代码来源:DataSeriesStorageManagerImpl.java


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