getZoomR Documentation

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.

Author(s)

Paul Shannon

See Also

setZoom getCenter setCenter getViewCoordinates fitContent

Examples

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