Cytoscape 3.0.0-beta1 API

org.cytoscape.view.model
Interface CyNetworkViewFactory


public interface CyNetworkViewFactory

Factory for CyNetworkView objects. Modules which need to create view models should import this as a service.


Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.

Method Summary
 CyNetworkView createNetworkView(CyNetwork network)
          Create a CyNetworkView from a CyNetwork object.
 CyNetworkView createNetworkView(CyNetwork network, Boolean useThreshold)
          Creates view with or without using viewThreshold property.
 

Method Detail

createNetworkView

CyNetworkView createNetworkView(CyNetwork network)
Create a CyNetworkView from a CyNetwork object. This method always checks viewThreshold property value and returns empty view if number of graph objects (nodes and edges) is above the threshold.

Parameters:
network - for which the CyNetworkView is to be created
Returns:
the view model for the network data model

createNetworkView

CyNetworkView createNetworkView(CyNetwork network,
                                Boolean useThreshold)
Creates view with or without using viewThreshold property.

Parameters:
network - network data model for this view.
useThreshold - if false, this factory creates actual view model by ignoring threshold.
Returns:
View model for the given data model.

Cytoscape 3.0.0-beta1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.