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

LineHitsSource
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 edu.uci.ics.jung.graph.Vertex;
15  
16  
17 public class ConstantVertexAspectRatioFunction
18     implements VertexAspectRatioFunction
19 {
20     private float ratio;
21     
22     public ConstantVertexAspectRatioFunction(float ratio)
230    {
240        this.ratio = ratio;
250    }
26     
27     public float getAspectRatio(Vertex v)
28     {
290        return ratio;
30     }
31 }

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.