getCenter: getCenter

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
getCenter(obj)

Arguments

obj

a CytoscapeWindowClass object.

Value

A names list, x and y.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getCenter getZoom setZoom

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 = 'getCenter demo'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  print (getCenter (cw))

## End(Not run)


Search within the RCy3 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.