getZoom: getZoom

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
getZoom(obj)

Arguments

obj

a CytoscapeWindowClass object.

Value

A names list, x and y.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setZoom getCenter setCenter getViewCoordinates fitContent

Examples

 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)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.