public interface CyNetworkViewManager
Module: viewmodel-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>viewmodel-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
addNetworkView(CyNetworkView view)
Registers a network view with the network view manager and sets the new view as current.
|
void |
addNetworkView(CyNetworkView view,
boolean setCurrent)
Registers a network view with the network view manager.
|
void |
destroyNetworkView(CyNetworkView view)
Destroys a network view.
|
Collection<CyNetworkView> |
getNetworkViews(CyNetwork network)
Returns a collection of network views corresponding to the specified network, if found.
|
Set<CyNetworkView> |
getNetworkViewSet()
Provides the set of network views that are currently known to the network
manager.
|
void |
reset()
Releases all currently held references and resources.
|
boolean |
viewExists(CyNetwork network)
Determines whether a network view for the specified network is known to
the network view manager.
|
Set<CyNetworkView> getNetworkViewSet()
Collection<CyNetworkView> getNetworkViews(CyNetwork network)
network
- The network we're requesting a view of.boolean viewExists(CyNetwork network)
network
- The network for which we want to know whether a view exists.void destroyNetworkView(CyNetworkView view)
view
- a non-null network viewvoid addNetworkView(CyNetworkView view)
addNetworkView(view, true)
;view
- a non-null network viewvoid addNetworkView(CyNetworkView view, boolean setCurrent)
view
- a non-null network viewsetCurrent
- if true, also sets the new view as currentvoid reset()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.