lockNodeDimensions: lockNodeDimensions

Description Usage Arguments Value Author(s) See Also Examples

Description

Lock the node dimensions. Required for setting the same height and width if the node size is set.

Usage

1
lockNodeDimensions(obj, new.state, visual.style.name='default')

Arguments

obj

a CytoscapeConnectionClass object.

new.state

a boolean object, TRUE or FALSE

visual.style.name

a string object, naming the visual style whose 'locked' you wish to change. Defaults to 'default'.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeSizeDirect setNodeWidthDirect setNodeHeightDirect setNodeSizeRule

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('lockNodeDimensions demo', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  lockNodeDimensions (cw, FALSE) # not required anymore as this function
   # is called by the other functions.
  setNodeWidthDirect (cw, 'A', 100)
  setNodeHeightDirect (cw, 'A', 50)

## End(Not run)

RCy3 documentation built on Nov. 17, 2017, 1:22 p.m.