setNodeSizeDirectR Documentation

setNodeSizeDirect

Description

In the specified CytoscapeWindow, set the size of the specified node. Not that the node dimensions (size and size) must be locked (the default state) for this to work. Node height and width change together.

Usage

setNodeSizeDirect(obj, node.names, new.size)

Arguments

obj a CytoscapeWindowClass object.
node.names one or more String objects.
new.size an integer, in pixel units.

Value

None.

Author(s)

Paul Shannon

See Also

lockNodeDimensions setNodeWidthDirect setNodeHeightDirect

Examples

  cw <- new.CytoscapeWindow ('setNodeSizeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork (cw, 'jgraph-spring')
  setNodeSizeDirect (cw, 'A', 32)
  redraw (cw)