window.title = 'setTooltipDismissDelay demo'
cw <- new.CytoscapeWindow (window.title, graph=makeSimpleGraph())
# use node type as the tooltip
setNodeTooltipRule (cw, 'type')
# and edgeType
setEdgeTooltipRule (cw, 'edgeType')
displayGraph (cw)
redraw (cw)
layoutNetwork(cw, 'jgraph-spring')
# have the tooltips popup after 200 milliseconds, and then
# disappear after 3000 (3 seconds)
setTooltipInitialDelay (cw, 200)
setTooltipDismissDelay (cw, 3000)
Run the code above in your browser using DataLab