Description Usage Arguments Value Author(s) See Also Examples
This method returns the zoom level of the CytoscapeWindow. A value of 1.0 typically renders the graph with an ample margin. A call to fitContent produces a zoom level of about 1.5.
1  | getZoom(obj)
 | 
obj | 
 a   | 
A names list, x and y.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setZoom getCenter setCenter getViewCoordinates fitContent
1 2 3 4 5 6 7 8 9 10 11 12  |   ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  window.title = 'getZoom demo'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  print (getZoom (cw))
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.