本文整理汇总了Java中org.cytoscape.application.swing.CytoPanelState类的典型用法代码示例。如果您正苦于以下问题:Java CytoPanelState类的具体用法?Java CytoPanelState怎么用?Java CytoPanelState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CytoPanelState类属于org.cytoscape.application.swing包,在下文中一共展示了CytoPanelState类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: ensurePanelVisible
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的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.CytoPanelState; //导入依赖的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.CytoPanelState; //导入依赖的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.CytoPanelState; //导入依赖的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
示例5: actionPerformed
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的package包/类
public void actionPerformed(ActionEvent e) {
// If the state of the cytoPanelWest is HIDE, show it
if (cytoPanelWest.getState() == CytoPanelState.HIDE) {
cytoPanelWest.setState(CytoPanelState.DOCK);
}
// Select my panel
int index = cytoPanelWest.indexOfComponent(myControlPanel);
if (index == -1) {
return;
}
cytoPanelWest.setSelectedIndex(index);
}
开发者ID:DataFusion4NetBio,项目名称:Paper16-SCODE,代码行数:14,代码来源:ControlPanelAction.java
示例6: selectInputPanel
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的package包/类
/**
* Select Cytoscape control panel
*/
public void selectInputPanel() {
// If the state of the cytoPanelWest is HIDE, show it
if (cyPanelWest.getState() == CytoPanelState.HIDE) {
cyPanelWest.setState(CytoPanelState.DOCK);
}
// Select my panel
int index = cyPanelWest.indexOfComponent(controlPanel);
if (index == -1) {
return;
}
cyPanelWest.setSelectedIndex(index);
}
开发者ID:tianye03,项目名称:kddn-cytoscape,代码行数:16,代码来源:KddnMenuAction.java
示例7: getPanel
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的package包/类
public void getPanel() {
cytoPanelEast.setState(CytoPanelState.DOCK);
int index = cytoPanelEast.indexOfComponent(CyActivator.kddnResultsPanel);
if (index == -1) {
return;
}
cytoPanelEast.setSelectedIndex(index);
}
开发者ID:tianye03,项目名称:kddn-cytoscape,代码行数:9,代码来源:KddnResultsPanel.java
示例8: handleEvent
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的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: removePanel
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的package包/类
public static void removePanel(CytoPanelComponent panel) {
serviceRegistrar.unregisterService(panel, CytoPanelComponent.class);
getEastPanel().setState(CytoPanelState.HIDE);
}
开发者ID:juanjoDiaz,项目名称:gfdnet,代码行数:5,代码来源:CySwing.java
示例10: selectPanel
import org.cytoscape.application.swing.CytoPanelState; //导入依赖的package包/类
public static void selectPanel(CytoPanelComponent panel) {
int panelIndex = getEastPanel().indexOfComponent(panel.getComponent());
getEastPanel().setSelectedIndex(panelIndex);
getEastPanel().setState(CytoPanelState.DOCK);
}
开发者ID:juanjoDiaz,项目名称:gfdnet,代码行数:6,代码来源:CySwing.java
注:本文中的org.cytoscape.application.swing.CytoPanelState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论