public interface CyApplicationManager
Module: application-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>application-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
File |
getCurrentDirectory()
Get the current working directory.
|
CyNetwork |
getCurrentNetwork()
Provides access to the current network.
|
CyNetworkView |
getCurrentNetworkView()
Returns the current network view.
|
NetworkViewRenderer |
getCurrentNetworkViewRenderer()
Returns the NetworkViewRenderer associated with the current
RenderingEngine.
|
RenderingEngine<CyNetwork> |
getCurrentRenderingEngine()
Returns the rendering engine associated with the current network view.
|
CyTable |
getCurrentTable()
Returns the currently active table.
|
NetworkViewRenderer |
getDefaultNetworkViewRenderer()
Returns the NetworkViewRenderer that should be used to create
CyNetworkViews.
|
NetworkViewRenderer |
getNetworkViewRenderer(String rendererId)
Returns the
NetworkViewRenderer that has the passed id or null if it doesn't exist. |
Set<NetworkViewRenderer> |
getNetworkViewRendererSet()
Returns a set with all the
NetworkViewRenderer objects that have been registered. |
List<CyNetwork> |
getSelectedNetworks()
Returns the list of selected networks.
|
List<CyNetworkView> |
getSelectedNetworkViews()
Returns the list of selected network views.
|
void |
reset()
Releases all currently held references and resources.
|
boolean |
setCurrentDirectory(File dir)
Set the current working directory.
|
void |
setCurrentNetwork(CyNetwork net)
Sets the current network to the specified network.
|
void |
setCurrentNetworkView(CyNetworkView netView)
Sets the current network view to the specified network view.
|
void |
setCurrentRenderingEngine(RenderingEngine<CyNetwork> engine)
Sets the current rendering engine.
|
void |
setCurrentTable(CyTable table)
Sets the currently active table.
|
void |
setDefaultNetworkViewRenderer(NetworkViewRenderer renderer)
Sets the
NetworkViewRenderer that should be used to create
CyNetworkViews. |
void |
setSelectedNetworks(List<CyNetwork> nets)
Sets the networks specified as selected.
|
void |
setSelectedNetworkViews(List<CyNetworkView> views)
Sets the specified network views as selected.
|
CyNetwork getCurrentNetwork()
void setCurrentNetwork(CyNetwork net)
SetCurrentNetworkEvent
is fired.
If the passed network is not yet selected, any selected networks are unselected before the passed
one is selected. That means that the SetSelectedNetworksEvent
can also be fired.net
- The network that will become the current network.CyNetworkView getCurrentNetworkView()
void setCurrentNetworkView(CyNetworkView netView)
netView
- The network view to become the current network view.List<CyNetwork> getSelectedNetworks()
List<CyNetworkView> getSelectedNetworkViews()
void setSelectedNetworkViews(List<CyNetworkView> views)
views
- The list of network views to be selected.void setSelectedNetworks(List<CyNetwork> nets)
nets
- The networks to be selected.RenderingEngine<CyNetwork> getCurrentRenderingEngine()
void setCurrentRenderingEngine(RenderingEngine<CyNetwork> engine)
engine
- The rendering engine that should be made current.CyTable getCurrentTable()
CyTable
.void setCurrentTable(CyTable table)
table
- The table that should be made current.void reset()
NetworkViewRenderer getCurrentNetworkViewRenderer()
NetworkViewRenderer getDefaultNetworkViewRenderer()
void setDefaultNetworkViewRenderer(NetworkViewRenderer renderer)
NetworkViewRenderer
that should be used to create
CyNetworkViews.renderer
- the NetworkViewRenderer that should be used by
default.NetworkViewRenderer getNetworkViewRenderer(String rendererId)
NetworkViewRenderer
that has the passed id or null if it doesn't exist.rendererId
- Set<NetworkViewRenderer> getNetworkViewRendererSet()
NetworkViewRenderer
objects that have been registered.File getCurrentDirectory()
boolean setCurrentDirectory(File dir)
dir
- a File object pointing to an existing directoryCopyright 2011-2015 Cytoscape Consortium. All rights reserved.