Package org.cytoscape.application.swing

Examples of org.cytoscape.application.swing.CytoPanel


      } else {
        mainPanel = this.mcodeUtil.getMainPanel();
      }

      if (mainPanel != null) {
        CytoPanel cytoPanel = this.mcodeUtil.getControlCytoPanel();
        int index = cytoPanel.indexOfComponent(mainPanel);
        cytoPanel.setSelectedIndex(index);
      }
    }
  }
View Full Code Here


            c = (Cluster)iterator.next();

        }
      }
    }
    CytoPanel cytoPanel = swingApplication.getCytoPanel(CytoPanelName.EAST);
    if (cytoPanel.getCytoPanelComponentCount() == 0)
      cytoPanel.setState(CytoPanelState.HIDE);
    if (getResultPanels().size() == 0)
      mcodeUtil.reset();
  }
View Full Code Here

                      "No Results",
                      2);
                  }
                }

                CytoPanel cytoPanel = AnalyzeAction.this.swingApplication.getCytoPanel(CytoPanelName.EAST);

                if ((resultFound) || ((AnalyzeAction.this.analyze == 3) && (cytoPanel.indexOfComponent(resultsPanel) >= 0)))
                {
                  int index = cytoPanel.indexOfComponent(resultsPanel);
                  cytoPanel.setSelectedIndex(index);

                  if (cytoPanel.getState() == CytoPanelState.HIDE) cytoPanel.setState(CytoPanelState.DOCK);
                }
              }
            };
           
         
View Full Code Here

              ParameterSet curParaSet;
              while(it.hasNext()){
                curParaSet=(ParameterSet)it.next();
                if(checkEqual(curParams,curParaSet)){  //exists
                 
                  CytoPanel panel = swingApplication.getCytoPanel(CytoPanelName.WEST.EAST);
                  //CytoPanel panel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
                  resultIndex=panel.indexOfComponent(resultPanel);
//                 analyze=EXISTS;
//                   interruptedMessage="The result exits";
                    break;
                }
              }
View Full Code Here

      for (ResultPanel panel : resultPanels) {
        panel.discard(false);
      }

      CytoPanel cytoPanel = this.swingApplication.getCytoPanel(CytoPanelName.WEST);

      if (cytoPanel.getCytoPanelComponentCount() == 0)
        cytoPanel.setState(CytoPanelState.HIDE);
    }
  }
View Full Code Here

  /**
   * @return The main panel of the app if it is opened, and null otherwise
   */
  public MainPanel getMainPanel() {
    CytoPanel cytoPanel = getControlCytoPanel();
    int count = cytoPanel.getCytoPanelComponentCount();

    for (int i = 0; i < count; i++) {
      if (cytoPanel.getComponentAt(i) instanceof MainPanel)
        return (MainPanel) cytoPanel.getComponentAt(i);
    }

    return null;
  }
View Full Code Here

  /**
   * @return The result panels of the app if it is opened, or an empty collection otherwise
   */
  public Collection<ResultPanel> getResultPanels() {
    Collection<ResultPanel> panels = new ArrayList<ResultPanel>();
    CytoPanel cytoPanel = getResultsCytoPanel();
    int count = cytoPanel.getCytoPanelComponentCount();

    for (int i = 0; i < count; i++) {
      if (cytoPanel.getComponentAt(i) instanceof ResultPanel)
        panels.add((ResultPanel) cytoPanel.getComponentAt(i));
    }

    return panels;
  }
View Full Code Here

TOP

Related Classes of org.cytoscape.application.swing.CytoPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.