\name{setEdgeSourceArrowColorRule}
\alias{setEdgeSourceArrowColorRule}
\alias{setEdgeSourceArrowColorRule,CytoscapeWindowClass-method}
\title{Specify Rule for the Source Arrow Color}
\description{
Specify how edge attributes -- that is, data values of the specified edge
attribute -- control the color of the source arrow, found at the end of an edge, where it connects to the
  source node.}

\usage{
setEdgeSourceArrowColorRule(obj, edge.attribute.name, attribute.values, colors, default.color='#000000')
}

\arguments{
  \item{obj}{a \code{CytoscapeWindowClass} object. }
  \item{edge.attribute.name}{the edge attribute whose values will, when this
ColorRule is applied, determine the color of the source arrow for each edge.}
  \item{attribute.values}{A list of scalar, discrete values. For
  instance, interaction types:  'phosphorylates', 'ubiquinates',
  'represses', 'activates' }
\item{colors}{A color for each of the attribute.values}
\item{default.color}{The color to use when an explicit mapping is not
  provided.  (Note: this is broken in Cytoscape 2.7)}

}

\value{
None.
}
\author{Paul Shannon}

\seealso{ \code{\link{setEdgeSourceArrowColorRule}}}

\examples{
  cw <- new.CytoscapeWindow ('setEdgeSourceArrowColorRule.test', graph=makeSimpleGraph())
  colors <- c ("#AA00AA", "#AAAA00", "#AA0000")
  edgeType.values <- c ('phosphorylates', 'synthetic lethal', 'undefined')
  setEdgeSourceArrowColorRule (cw, 'edgeType', edgeType.values, colors)
}

\keyword{graph}