cytoscape.util
Class CyNetworkViewUtil
java.lang.Object
cytoscape.util.CyNetworkViewUtil
public class CyNetworkViewUtil
- extends Object
CyNetworkViewUtil
public CyNetworkViewUtil()
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 oftitle
- the title to use for the viewlayout
- 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.