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


Java CytoPanel.setState方法代码示例

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


在下文中一共展示了CytoPanel.setState方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

示例4: 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


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