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 edu.uci.ics.jung.graph.ArchetypeVertex; | |
15 | ||
16 | /** | |
17 | * Returns the specified label for all vertices. Useful for | |
18 | * specifying "no label". | |
19 | * | |
20 | * @author Joshua O'Madadhain | |
21 | */ | |
22 | public class ConstantVertexStringer implements VertexStringer | |
23 | { | |
24 | protected String label; | |
25 | ||
26 | public ConstantVertexStringer(String label) | |
27 | 0 | { |
28 | 0 | this.label = label; |
29 | 0 | } |
30 | ||
31 | /** | |
32 | * @see edu.uci.ics.jung.graph.decorators.VertexStringer#getLabel(ArchetypeVertex) | |
33 | */ | |
34 | public String getLabel(ArchetypeVertex v) | |
35 | { | |
36 | 0 | return label; |
37 | } | |
38 | } |
this report was generated by version 1.0.5 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |