Examples of nodesList()


Examples of cytoscape.CyNetwork.nodesList()

  }
 
  public static void saveLayoutOfViewInFile(CyNetworkView view, File file){
    CyNetwork network = view.getNetwork();
      @SuppressWarnings("unchecked")
    List<CyNode> nodes = network.nodesList();
      List<CySBMLBoundingBox> boxes = new LinkedList<CySBMLBoundingBox>();
      for (CyNode node : nodes){
        NodeView nodeView = view.getNodeView(node);
       
        String nodeId = node.getIdentifier();
View Full Code Here

Examples of cytoscape.CyNetwork.nodesList()

     
      HashMap<String, CySBMLBoundingBox> boxesMap = XMLInterface.readLayoutFromXML(file);
      if (boxesMap != null){
     
        @SuppressWarnings("unchecked")
      List<CyNode> nodes = network.nodesList();
        for (CyNode node : nodes){
          // if position is stored
          String nodeId = node.getIdentifier();
          if (boxesMap.containsKey(nodeId)){
            CySBMLBoundingBox box = boxesMap.get(nodeId);
View Full Code Here

Examples of cytoscape.CyNetwork.nodesList()

    layout.setId(layoutId);
    layout.setName(layoutId);
   
    CyNetwork network = view.getNetwork();
      @SuppressWarnings("unchecked")
    List<CyNode> nodes = network.nodesList();
      CyAttributes nodeAttributes = Cytoscape.getNodeAttributes();
     
      for (CyNode node : nodes){
        NodeView nodeView = view.getNodeView(node);
        // Test if reaction or species node
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.