\name{setEdgeTargetArrowShapeDirect} \alias{setEdgeTargetArrowShapeDirect} \alias{setEdgeTargetArrowShapeDirect,CytoscapeWindowClass-method} \title{setEdgeTargetArrowShapeDirect} \description{ In the specified CytoscapeWindow, set the target arrow shape of the specified edge or edges, using one of the supported shapes. } \usage{ setEdgeTargetArrowShapeDirect(obj, edge.names, new.values) } \arguments{ \item{obj}{a \code{CytoscapeWindowClass} object. } \item{edge.names}{one or more cy2-style edge names, \code{String} objects.} \item{new.values}{one or more \code{String} objects, from the supported set.} } \value{ None. } \author{Paul Shannon} \seealso{ cy2.edge.names getArrowShapes setEdgeTargetArrowRule setEdgeTargetArrowShapeDirect } \examples{ cw <- new.CytoscapeWindow ('setEdgeTargetArrowShapeDirect.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork(cw, 'jgraph-spring') redraw (cw) edges.of.interest = as.character (cy2.edge.names (cw@graph)) supported.arrow.shapes = getArrowShapes (cw) # first try passing three edges and three arrow shapes setEdgeTargetArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [2:5]) redraw (cw) Sys.sleep (1) # now try passing three edges and one arrow.shapes setEdgeTargetArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [6]) redraw (cw) # now loop through all of the arrow.shapes for (shape in supported.arrow.shapes) { setEdgeTargetArrowShapeDirect (cw, edges.of.interest, shape) Sys.sleep (1) redraw (cw) } # restore the default setEdgeTargetArrowShapeDirect (cw, edges.of.interest, 'No Arrow') redraw (cw) } \keyword{graph}