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


Java CytoPanelName类代码示例

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


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

示例1: isOpen

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

示例2: run

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

示例3: bringToFront

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

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
public SlimscapePluginAction(final CyApplicationManager manager, final CyAppAdapter adapter,
                             final CySwingApplication desktopApp, SlimPanel slimPanel) {
    super(MENU_NAME);
    this.adapter = adapter;
    this.manager = manager;
    this.desktopApp = desktopApp;

    setPreferredMenu("Apps");

    this.cytoPanelWest = this.desktopApp.getCytoPanel(CytoPanelName.WEST);
    this.slimPanel = slimPanel;

}
 
开发者ID:passeridae,项目名称:SLiMscape,代码行数:14,代码来源:SlimscapePluginAction.java

示例5: createTaskIterator

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

示例6: ControlPanelAction

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
public ControlPanelAction(CySwingApplication desktopApp,
		MyControlPanel myCytoPanel){
	// Add a menu item -- Apps->sample02
	super("Control Panel");
	setPreferredMenu("Apps.Samples");

	this.desktopApp = desktopApp;
	
	//Note: myControlPanel is bean we defined and registered as a service
	this.cytoPanelWest = this.desktopApp.getCytoPanel(CytoPanelName.WEST);
	this.myControlPanel = myCytoPanel;
}
 
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:13,代码来源:ControlPanelAction.java

示例7: getMainPanel

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

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
public KddnMenuAction(CyApplicationManager cyApplicationManager, final String menuTitle,
		CySwingApplication desktopApp,
		KddnConfigurePanel myControlPanel) {
	
	super(menuTitle);
	setPreferredMenu("Apps.KDDN");
	
	this.name = name;
	this.desktopApp = desktopApp;
	this.cyPanelWest = this.desktopApp.getCytoPanel(CytoPanelName.WEST);
	this.controlPanel = myControlPanel;
}
 
开发者ID:tianye03,项目名称:kddn-cytoscape,代码行数:13,代码来源:KddnMenuAction.java

示例9: handleEvent

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

示例10: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
	return CytoPanelName.SOUTH;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:DataSeriesPanel.java

示例11: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
	return CytoPanelName.EAST;
}
 
开发者ID:cas-bioinf,项目名称:cy-dataseries,代码行数:5,代码来源:SmoothingPreviewPanel.java

示例12: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
    return CytoPanelName.EAST;
}
 
开发者ID:baryshnikova-lab,项目名称:safe-java,代码行数:5,代码来源:SafeCytoPanelComponent.java

示例13: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
	return CytoPanelName.WEST;
}
 
开发者ID:BaderLab,项目名称:AutoAnnotateApp,代码行数:5,代码来源:ClusterPanel.java

示例14: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
public CytoPanelName getCytoPanelName() {
    return CytoPanelName.WEST;
}
 
开发者ID:passeridae,项目名称:SLiMscape,代码行数:4,代码来源:SlimPanel.java

示例15: getCytoPanelName

import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
     return CytoPanelName.EAST;
}
 
开发者ID:juanjoDiaz,项目名称:gfdnet,代码行数:5,代码来源:MainResultsView.java


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