setNodeSizeDirect: setNodeSizeDirect

Description Usage Arguments Value Author(s) See Also Examples

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

1
setNodeSizeDirect(obj, node.names, new.sizes)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

new.sizes

one or more integers, in pixel units.

Value

None.

Author(s)

Paul Shannon

See Also

lockNodeDimensions setNodeWidthDirect setNodeHeightDirect

Examples

1
2
3
4
5
6
  cw <- new.CytoscapeWindow ('setNodeSizeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeSizeDirect (cw, 'A', 32)
  redraw (cw)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.