Examples of CyLayoutAlgorithm


Examples of cytoscape.layout.CyLayoutAlgorithm

    return ArrayUtils.toPrimitive(ids);
  }
 
  @Override
  public CyLayoutAlgorithm getLayoutAlgorithm() {
    CyLayoutAlgorithm algorithm = CyLayouts.getDefaultLayout();
    if (nodeIds.size() > LAYOUT_NODE_NUMBER){
      CySBML.LOGGER.info(String.format("More than %d nodes, no layout applied.", LAYOUT_NODE_NUMBER));
    } else {
      algorithm = CyLayouts.getLayout("force-directed");
    }
View Full Code Here

Examples of cytoscape.layout.CyLayoutAlgorithm

  /** Applies force-directed layout to the network. */
  protected void applyLayout(CyNetwork network) {
    if (nodeIds.size() > LAYOUT_NODE_NUMBER){
      CySBML.LOGGER.info(String.format("More than %d nodes, no layout applied.", LAYOUT_NODE_NUMBER));
    } else {
      CyLayoutAlgorithm layout = CyLayouts.getLayout("force-directed");
      CyNetworkView view = Cytoscape.getNetworkView(network.getIdentifier());
      view.applyLayout(layout);
    }
  }
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.