Description Usage Arguments Value Author(s) See Also Examples
This method returns the coordinates of the current center of the visible Cytoscape canvas, or drawing surface. The intial values are a little unpredictable, but seem to be on the order of 100 for both x and y.
1 | getCenter(obj)
|
obj |
a |
A names list, x and y.
Paul Shannon
getCenter getZoom setZoom
1 2 3 4 5 6 | window.title = 'getCenter demo'
cw <- new.CytoscapeWindow (window.title, graph=makeSimpleGraph())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw, 'jgraph-spring')
print (getCenter (cw))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.