# Coverage details for edu.uci.ics.jung.graph.decorators.ConstantEdgeColorFunction

Line | Hits | Source
--- | --- | ---
1 |  | `/*`
2 |  | `* Created on Jul 16, 2004`
3 |  | `*`
4 |  | `* Copyright (c) 2004, the JUNG Project and the Regents of the University`
5 |  | `* of California`
6 |  | `* All rights reserved.`
7 |  | `*`
8 |  | `* This software is open-source under the BSD license; see either`
9 |  | `* "license.txt" or`
10 |  | `* http://jung.sourceforge.net/license.txt for a description.`
11 |  | `*/`
12 |  | `package edu.uci.ics.jung.graph.decorators;`
13 |  | ``
14 |  | `import java.awt.Color;`
15 |  | ``
16 |  | `import edu.uci.ics.jung.graph.Edge;`
17 |  | ``
18 |  | `/**`
19 |  | `* Returns the same <code>Color</code> for all specified edges.`
20 |  | `*`
21 |  | `* @deprecated Replaced by ConstantEdgePaintFunction.`
22 |  | `* @author Joshua O'Madadhain`
23 |  | `*/`
24 |  | `public class ConstantEdgeColorFunction implements EdgeColorFunction`
25 |  | `{`
26 |  | `private Color color;`
27 |  | ``
28 |  | `public ConstantEdgeColorFunction(Color c)`
29 | 0 | `{`
30 | 0 | `this.color = c;`
31 | 0 | `}`
32 |  | ``
33 |  | `/*`
34 |  | `* @deprecated Should use getPaint`
35 |  | `*/`
36 |  | `public Color getEdgeColor(Edge e) {`
37 | 0 | `return color;`
38 |  | `}`
39 |  | `}`

this report was generated by version 1.0.5 of jcoverage. visit www.jcoverage.com for updates. | copyright © 2003, jcoverage ltd. all rights reserved. Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.