setDefaultNodeShapeR Documentation

setDefaultNodeShape

Description

For all CytoscapeWindow's, specify the default node shape.

Usage

setDefaultNodeShape(obj, new.shape, vizmap.style.name = "default")

Arguments

obj a CytoscapeConnectionClass object.
new.shape a String object, one of the permissible values (see getNodeShapes).
vizmap.style.name a String object.

Value

None.

Author(s)

Paul Shannon

See Also

getNodeShapes setDefaultNodeShape setDefaultNodeColor setDefaultNodeSize setDefaultNodeColor setDefaultNodeBorderColor setDefaultNodeBorderWidth setDefaultNodeFontSize setDefaultNodeLabelColor setDefaultEdgeLineWidth setEdgeColorRule setNodeBorderColorRule

Examples

  cw <- new.CytoscapeWindow ('setDefaultNodeShape.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork (cw, 'jgraph-spring')
  legal.shapes <- getNodeShapes (cw)
  # stopifnot ('diamond' %in% legal.shapes)
  setDefaultNodeShape (cw, 'diamond')
  redraw (cw)