Coverage details for edu.uci.ics.jung.graph.decorators.ConstantVertexStrokeFunction

LineHitsSource
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.Vertex;
18  
19 /**
20  *
21  * @author Joshua O'Madadhain
22  */
23 public class ConstantVertexStrokeFunction implements VertexStrokeFunction
24 {
25     protected Stroke stroke;
26     
27     public ConstantVertexStrokeFunction(float thickness)
280    {
290        this.stroke = new BasicStroke(thickness);
300    }
31  
32     public ConstantVertexStrokeFunction(Stroke s)
330    {
340        this.stroke = s;
350    }
36     
37     /**
38      * @see edu.uci.ics.jung.graph.decorators.VertexStrokeFunction#getStroke(edu.uci.ics.jung.graph.Vertex)
39      */
40     public Stroke getStroke(Vertex v)
41     {
420        return stroke;
43     }
44  
45 }

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.