Line | Hits | Source |
---|---|---|
1 | /* | |
2 | * Created on Jul 18, 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.BasicStroke; | |
15 | import java.awt.Stroke; | |
16 | ||
17 | import edu.uci.ics.jung.graph.Edge; | |
18 | ||
19 | /** | |
20 | * | |
21 | * @author Joshua O'Madadhain | |
22 | */ | |
23 | public class ConstantEdgeStrokeFunction implements EdgeStrokeFunction | |
24 | { | |
25 | protected Stroke stroke; | |
26 | ||
27 | public ConstantEdgeStrokeFunction(Stroke s) | |
28 | 0 | { |
29 | 0 | this.stroke = s; |
30 | 0 | } |
31 | ||
32 | public ConstantEdgeStrokeFunction(float thickness) | |
33 | 0 | { |
34 | 0 | this.stroke = new BasicStroke(thickness); |
35 | 0 | } |
36 | ||
37 | /** | |
38 | * @see edu.uci.ics.jung.graph.decorators.EdgeStrokeFunction#getStroke(edu.uci.ics.jung.graph.Edge) | |
39 | */ | |
40 | public Stroke getStroke(Edge e) | |
41 | { | |
42 | 0 | return stroke; |
43 | } | |
44 | ||
45 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |