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

Java CytoPanel类代码示例

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

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



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

示例1: ensurePanelVisible

import org.cytoscape.application.swing.CytoPanel; //导入依赖的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


示例2: showPanel

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
public void showPanel() {
    synchronized (panelMutex) {
        if (cytoPanelComponent == null) {
            getPanel();
            setNetworkView(applicationManager.getCurrentNetworkView());
        }

        if (!panelVisible) {
            registrar.registerService(cytoPanelComponent, CytoPanelComponent.class, new Properties());
            panelVisible = true;
        }

        CytoPanel panel = application.getCytoPanel(cytoPanelComponent.getCytoPanelName());
        int index = panel.indexOfComponent(cytoPanelComponent.getIdentifier());

        if (panel.getState() == CytoPanelState.HIDE) {
            panel.setState(CytoPanelState.DOCK);
        }

        if (index != -1) {
            panel.setSelectedIndex(index);
        }
    }
}
 
开发者ID:baryshnikova-lab,项目名称:safe-java,代码行数:25,代码来源:SafeController.java


示例3: isOpen

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
public boolean isOpen() {
	CytoPanel cytoPanel = swingApplication.getCytoPanel(CytoPanelName.WEST);;
	int count = cytoPanel.getCytoPanelComponentCount();
	
	Component c = null;
	for (int i = 0; i < count; i++) {
		final Component comp = cytoPanel.getComponentAt(i);
		
		if (comp instanceof MyControlPanel)
			c = comp;
	}
	
	if (c!=null) {
		return true;
	} else {
		return false;
	}
}
 
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:19,代码来源:OpenTaskFactory.java


示例4: run

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
@Override
public void run(TaskMonitor arg0) throws Exception {
	// TODO Auto-generated method stub
	synchronized (this) {
		MyControlPanel mainPanel = null;
		
		// First we must make sure that the app is not already open
		if (!isOpen()) {
			mainPanel = new MyControlPanel(swingApplication, registrar, appManager);

			registrar.registerService(mainPanel, CytoPanelComponent.class, new Properties());
		} else {
			mainPanel = getMainPanel();
		}

		if (mainPanel != null) {
			CytoPanel cytoPanel = swingApplication.getCytoPanel(CytoPanelName.WEST);;
			int index = cytoPanel.indexOfComponent(mainPanel);
			cytoPanel.setSelectedIndex(index);
		}
	}
	
}
 
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:24,代码来源:OpenTask.java


示例5: bringToFront

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
private void bringToFront(CytoPanelComponent panel) {
	CytoPanelName compassPoint = panel.getCytoPanelName();
	Component component = panel.getComponent();
	CytoPanel cytoPanel = swingApplication.getCytoPanel(compassPoint);
	cytoPanel.setState(CytoPanelState.DOCK);
	int index = cytoPanel.indexOfComponent(component);
	cytoPanel.setSelectedIndex(index);
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:9,代码来源:PanelManagerImpl.java


示例6: createTaskIterator

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
@Override
public TaskIterator createTaskIterator(View<CyEdge> view, CyNetworkView networkView) {
    CytoPanel eastPanel = swingApplication.getCytoPanel(CytoPanelName.EAST);
    eastPanel.setState(CytoPanelState.DOCK);
    int index = eastPanel.indexOfComponent(evidencePanelComponent.getComponent());
    eastPanel.setSelectedIndex(index);

    return new TaskIterator(new NoOpTask());
}
 
开发者ID:jsongraph,项目名称:jgf-app,代码行数:10,代码来源:ShowEvidenceFactory.java


示例7: getMainPanel

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
public MyControlPanel getMainPanel() {
	CytoPanel cytoPanel = swingApplication.getCytoPanel(CytoPanelName.WEST);;
	int count = cytoPanel.getCytoPanelComponentCount();
	MyControlPanel c = null;
	for (int i = 0; i < count; i++) {
		final Component comp = cytoPanel.getComponentAt(i);
		
		if (comp instanceof MyControlPanel)
			c = (MyControlPanel) comp;
	}
	return c;
}
 
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:13,代码来源:CloseTask.java


示例8: handleEvent

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
@Override
public void handleEvent(RowsSetEvent e) {
	CyNetworkView view = App.cyServices.applicationManager.getCurrentNetworkView();
	if(view == null) return;

	final CyNetwork network = view.getModel();
	if (BioPaxUtil.isFromBiopax(network)) {

		if (!network.getDefaultNodeTable().equals(e.getSource()))
			return;

		CytoPanel eastCytoPanel = App.cyServices.cySwingApplication.getCytoPanel(CytoPanelName.EAST);
		if(eastCytoPanel.getState() != CytoPanelState.DOCK)
			App.cyServices.cySwingApplication.getCytoPanel(CytoPanelName.EAST).setState(CytoPanelState.DOCK);

		//east panel will display info about several nodes selected (not all)
		final Collection<CyNode> selected = new ArrayList<CyNode>();
		for (CyNode node : network.getNodeList()) {
			if (network.getRow(node).get(CyNetwork.SELECTED, Boolean.class)) {
				selected.add(node);
			}
		}

		if (!selected.isEmpty()) {
			// Show the details
			updateNodeDetails(network, selected);
			// If legend is showing, show details
			showDetails();
		}
	}
}
 
开发者ID:PathwayCommons,项目名称:CyPath2,代码行数:32,代码来源:EastCytoPanelComponent.java


示例9: getEastPanel

import org.cytoscape.application.swing.CytoPanel; //导入依赖的package包/类
private static CytoPanel getEastPanel() {
    if (eastPanel == null) {
        eastPanel = cySwingApplication.getCytoPanel(CytoPanelName.EAST);
    }
    return eastPanel;
}
 
开发者ID:juanjoDiaz,项目名称:gfdnet,代码行数:7,代码来源:CySwing.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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