本文整理汇总了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;
}
}
示例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);
}
}
}
示例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);
}
示例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;
}
示例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());
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
}
}
示例10: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
return CytoPanelName.SOUTH;
}
示例11: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
return CytoPanelName.EAST;
}
示例12: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
return CytoPanelName.EAST;
}
示例13: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
return CytoPanelName.WEST;
}
示例14: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
public CytoPanelName getCytoPanelName() {
return CytoPanelName.WEST;
}
示例15: getCytoPanelName
import org.cytoscape.application.swing.CytoPanelName; //导入依赖的package包/类
@Override
public CytoPanelName getCytoPanelName() {
return CytoPanelName.EAST;
}