Cytoscape 2.5.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.util
Class CyNetworkViewUtil

java.lang.Object
  extended by cytoscape.util.CyNetworkViewUtil

public class CyNetworkViewUtil
extends Object


Constructor Summary
CyNetworkViewUtil()
           
 
Method Summary
static CyNetworkView createNetworkView(CyNetwork network, String title, CyLayoutAlgorithm layout, VisualStyle vs)
          Creates a CyNetworkView that is placed placed in a given visual style and rendered with a given layout algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyNetworkViewUtil

public CyNetworkViewUtil()
Method Detail

createNetworkView

public static CyNetworkView createNetworkView(CyNetwork network,
                                              String title,
                                              CyLayoutAlgorithm layout,
                                              VisualStyle vs)
Creates a CyNetworkView that is placed placed in a given visual style and rendered with a given layout algorithm. The CyNetworkView will become the current view and have focus. NOTE: This method may want to be added to Cytoscape.java in the future.

Parameters:
network - the network to create a view of
title - the title to use for the view
layout - the CyLayoutAlgorithm to use for layout. If null, will use the default layout (CyLayouts.getDefaultLayout()).
vs - the VisualStyle in which to render this new network. If null, the default visual style will be used.

www.cytoscape.org