| Line | Hits | Source |
|---|---|---|
| 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 | */ | |
| 29 | 0 | public EdgeColorToEdgePaintFunctionConverter(EdgeColorFunction ecf) { |
| 30 | 0 | this.ecf = ecf; |
| 31 | 0 | } |
| 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) { | |
| 37 | 0 | return ecf.getEdgeColor(e); |
| 38 | } | |
| 39 | } |
|
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |