Coverage details for edu.uci.ics.jung.visualization.EdgeColorToEdgePaintFunctionConverter

LineHitsSource
1 /*
2  * Copyright (c) 2005, the JUNG Project and the Regents of the University
3  * of California
4  * All rights reserved.
5  *
6  * This software is open-source under the BSD license; see either
7  * "license.txt" or
8  * http://jung.sourceforge.net/license.txt for a description.
9  */
10 package edu.uci.ics.jung.visualization;
11  
12 import java.awt.Paint;
13  
14 import edu.uci.ics.jung.graph.Edge;
15 import edu.uci.ics.jung.graph.decorators.AbstractEdgePaintFunction;
16 import edu.uci.ics.jung.graph.decorators.EdgeColorFunction;
17  
18 /**
19  * @author danyelf
20  * @deprecated This utility class converts an EdgeColorFunction into an EdgePaintFunction
21  */
22 public class EdgeColorToEdgePaintFunctionConverter extends AbstractEdgePaintFunction {
23  
24     private EdgeColorFunction ecf;
25  
26     /**
27      * @param ecf
28      */
290    public EdgeColorToEdgePaintFunctionConverter(EdgeColorFunction ecf) {
300        this.ecf = ecf;
310    }
32  
33     /**
34      * @see edu.uci.ics.jung.graph.decorators.EdgePaintFunction#getDrawPaint(edu.uci.ics.jung.graph.Edge)
35      */
36     public Paint getDrawPaint(Edge e) {
370        return ecf.getEdgeColor(e);
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.