edu.uci.ics.jung.graph.decorators
Class ConstantVertexStringer

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.ConstantVertexStringer
All Implemented Interfaces:
VertexStringer

public class ConstantVertexStringer
extends Object
implements VertexStringer

Returns the specified label for all vertices. Useful for specifying "no label".

Author:
Joshua O'Madadhain

Field Summary
protected  String label
           
 
Constructor Summary
ConstantVertexStringer(String label)
           
 
Method Summary
 String getLabel(ArchetypeVertex v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

protected String label
Constructor Detail

ConstantVertexStringer

public ConstantVertexStringer(String label)
Method Detail

getLabel

public String getLabel(ArchetypeVertex v)
Specified by:
getLabel in interface VertexStringer
See Also:
VertexStringer.getLabel(ArchetypeVertex)