getZoom | R Documentation |
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.
getZoom(obj)
obj |
a CytoscapeWindowClass object. |
A names list, x and y.
Paul Shannon
setZoom getCenter setCenter getViewCoordinates fitContent
window.title = 'getZoom demo' cw <- new.CytoscapeWindow (window.title, graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork (cw, 'jgraph-spring') print (getZoom (cw))