Package cytoscape.view.cytopanels

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


    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

  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

TOP

Related Classes of cytoscape.view.cytopanels.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.