setWindowSize

Description

Control the size of the CytoscapeWindow by specifying a width and height, On a typical screen, there may be 1200 pixels in the width of a full-size window, and 800 pixels in height.

Usage

1

Arguments

obj

a CytoscapeWindowClass object.

width

a numeric object.

height

a numeric object.

Value

None.

Author(s)

Paul Shannon

See Also

getZoom setZoom getCenter setCenter getViewCoordinates fitContent

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  window.title = 'setWindowSize demo'
  cw <- new.CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setWindowSize (cw, 1200, 800)
  fitContent (cw)
  system ('sleep 1')
  setWindowSize (cw, 120, 80)
  fitContent (cw)
  system ('sleep 1')
  setWindowSize (cw, 600, 400)
  fitContent (cw)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.