setNodeSizeDirect | R Documentation |
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.
setNodeSizeDirect(obj, node.names, new.size)
obj |
a CytoscapeWindowClass object. |
node.names |
one or more String objects. |
new.size |
an integer , in pixel units. |
None.
Paul Shannon
lockNodeDimensions setNodeWidthDirect setNodeHeightDirect
cw <- new.CytoscapeWindow ('setNodeSizeDirect.test', graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork (cw, 'jgraph-spring') setNodeSizeDirect (cw, 'A', 32) redraw (cw)