Learn R Programming

RCytoscape (version 1.22.0)

getZoom: getZoom

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

getZoom(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A names list, x and y.

See Also

setZoom getCenter setCenter getViewCoordinates fitContent

Examples

Run this code
  window.title = 'getZoom demo'
  cw <- new.CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  print (getZoom (cw))

Run the code above in your browser using DataLab