nct.visualization.cytoscape
Class CytoscapeConverter

java.lang.Object
  extended by nct.visualization.cytoscape.CytoscapeConverter

public class CytoscapeConverter
extends java.lang.Object

A utility class for converting an NCT graph into a CyNetwork.


Constructor Summary
CytoscapeConverter()
           
 
Method Summary
static Graph<java.lang.String,java.lang.Double> convert(cytoscape.CyNetwork network, Monitor monitor)
           
static cytoscape.CyNetwork convert(Graph<java.lang.String,java.lang.Double> nctGraph, java.lang.String title, Monitor monitor)
          Converts an NCT graph into a CyNetwork.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CytoscapeConverter

public CytoscapeConverter()
Method Detail

convert

public static Graph<java.lang.String,java.lang.Double> convert(cytoscape.CyNetwork network,
                                                               Monitor monitor)

convert

public static cytoscape.CyNetwork convert(Graph<java.lang.String,java.lang.Double> nctGraph,
                                          java.lang.String title,
                                          Monitor monitor)
Converts an NCT graph into a CyNetwork.

Parameters:
nctGraph - The NCT graph to be converted.
title - The title of the new Cytoscape graph
monitor - Monitor that will tell if convert() needs to terminate prematurely. Monitor will not be informed of any progress. Pass null if no monitoring is needed.
Returns:
A new CyNetwork based on the input graph.