Learn R Programming

RCy3 (version 1.2.0)

lockNodeDimensions: lockNodeDimensions

Description

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

Usage

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.

See Also

setNodeSizeDirect setNodeWidthDirect setNodeHeightDirect setNodeSizeRule

Examples

Run this code
  # 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)

Run the code above in your browser using DataLab