Package cytoscape.view.cytopanels

Examples of cytoscape.view.cytopanels.CytoPanel.indexOfComponent()


    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();
View Full Code Here


    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){
View Full Code Here

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

  public void setText(String text){
    textPane.setText(text);
  }
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.