Examples of CytoPanel


Examples of cytoscape.view.cytopanels.CytoPanel

  public JEditorPane getTextPane(){
    return textPane;
  }
 
    public void activate(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    int index = cytoPanel.indexOfComponent(CySBML.NAME);
    if (index == -1){
      cytoPanel.add(CySBML.NAME, this);
      cytoPanel.setState(CytoPanelState.DOCK);
    }
    selectNavigationPanel();
    active = true;
  }
View Full Code Here

Examples of cytoscape.view.cytopanels.CytoPanel

    selectNavigationPanel();
    active = true;
  }
 
  public void deactivate(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    int index = cytoPanel.indexOfComponent(CySBML.NAME);
    if (index != -1){
      cytoPanel.remove(index);
    }
    // Test if still other Components, otherwise hide
    if (cytoPanel.getCytoPanelComponentCount() == 0){
      cytoPanel.setState(CytoPanelState.HIDE);
    }
   
    active = false;
  }
View Full Code Here

Examples of cytoscape.view.cytopanels.CytoPanel

  public boolean isActive(){
    return active;
  }
 
  public static void selectNavigationPanel(){
    CytoPanel cytoPanel = Cytoscape.getDesktop().getCytoPanel(SwingConstants.EAST);
    cytoPanel.setSelectedIndex(cytoPanel.indexOfComponent(CySBML.NAME));
  }
View Full Code Here

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

Examples of org.cytoscape.application.swing.CytoPanel

            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

Examples of org.cytoscape.application.swing.CytoPanel

                      "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

Examples of org.cytoscape.application.swing.CytoPanel

              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

Examples of org.cytoscape.application.swing.CytoPanel

      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

Examples of org.cytoscape.application.swing.CytoPanel

  /**
   * @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

Examples of org.cytoscape.application.swing.CytoPanel

  /**
   * @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
Copyright © 2018 www.massapi.com. 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.