Package cytoscape

Examples of cytoscape.CyNetwork


        selectReversibleReactionNodes();
      }
  }
   
  public void selectReversibleReactionNodes(){
    CyNetwork network = Cytoscape.getCurrentNetwork();
    network.unselectAllNodes();
    Collection<CyNode> reversibleReactionNodes = getReversibleReactionNodes();
    network.setSelectedNodeState(reversibleReactionNodes, true);   
    Cytoscape.getCurrentNetworkView().updateView();
   
    String text = String.format("%s reversible reactions", reversibleReactionNodes.size());
    JOptionPane.showMessageDialog(
        Cytoscape.getDesktop(),
View Full Code Here


    }
    updateCurrentDocument();
  }
 
  public void updateCurrentDocument() {
    CyNetwork network = Cytoscape.getCurrentNetwork();
    if (network != null){
      String key = network.getIdentifier();
      if (documentMap.containsKey(key)){
        currentDocument = documentMap.get(key);
        currentNSBToNodeMapping = NSBToNodeMappingMap.get(key);
        currentNodeToNSBMapping = nodeToNSBMappingMap.get(key);
      } else {
View Full Code Here

TOP

Related Classes of cytoscape.CyNetwork

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.