\name{setNodeWidthDirect} \alias{setNodeWidthDirect} \alias{setNodeWidthDirect,CytoscapeWindowClass-method} \title{setNodeWidthDirect} \description{ In the specified CytoscapeWindow, set the width of the specified node. Not that the node dimensions (width and width) must be unlocked for this to work. If they ARE locked, then node and width change together, as specified by a node size rule, or the setNodeSize method } \usage{ setNodeWidthDirect(obj, node.names, new.widths) } \arguments{ \item{obj}{a \code{CytoscapeWindowClass} object. } \item{node.names}{one or more \code{String} objects.} \item{new.widths}{one or more \code{integer} objects, in pixel units.} } \value{ None. } \author{Paul Shannon} \seealso{ setNodeWidthRule lockNodeDimensions setNodeSizeDirect setNodeHeightDirect } \examples{ cw <- new.CytoscapeWindow ('setNodeWidthDirect.test', graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork(cw, 'jgraph-spring') lockNodeDimensions (cw, 'default', FALSE) setNodeWidthDirect (cw, 'A', 32) redraw (cw) } \keyword{graph}