Learn R Programming

RCy3 (version 1.2.0)

setTooltipInitialDelay: setTooltipInitialDelay

Description

Specify the number of milliseconds before the tooltip (a small lightweight window) pops up over a node or edge.

Usage

setTooltipInitialDelay(obj, msecs)

Arguments

obj
a CytoscapeConnectionClass object.
msecs
an integer.

Value

None.

See Also

setTooltipDismissDelay, setTooltip, setNodeTooltipRule, setEdgeTooltipRule, setNodeTooltipDirect, setEdgeTooltipDirect

Examples

Run this code
  # WARNING: Method RCy3::setTooltipInitialDelay() is not implemented in RCy3!

  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  window.title = 'setTooltipInitialDelay.demo'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
    # use node type as the tooltip
  setNodeTooltipRule (cw, 'type')
    # and edgeType
  setEdgeTooltipRule (cw, 'edgeType')
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
     # have the tooltips popup right away, as soon as the mouse hovers
     # over a node or edge, and then stay up as long as the mouse
     # remains on top of that node or edge
  setTooltipInitialDelay (cw, 0)
  setTooltipDismissDelay (cw, 0)

Run the code above in your browser using DataLab