Package cytoscape

Examples of cytoscape.CyNetwork.unselectAllNodes()


    }
  }
 
  private void updateNetworkSelection(List<String> selectedIds){
    CyNetwork network = Cytoscape.getCurrentNetwork();
    network.unselectAllNodes();
    Set<CyNode> cyNodes = new HashSet<CyNode>();
    for (String id : selectedIds){
      cyNodes.add(Cytoscape.getCyNode(id, false))
    }
    network.setSelectedNodeState(cyNodes, true)
View Full Code Here


      }
  }
   
  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());
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.