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

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

public class ConstantEdgeStringer
extends Object
implements EdgeStringer

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

Author:
Joshua O'Madadhain

Field Summary
protected  String label
           
 
Constructor Summary
ConstantEdgeStringer(String label)
           
 
Method Summary
 String getLabel(ArchetypeEdge e)
           
 
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

ConstantEdgeStringer

public ConstantEdgeStringer(String label)
Method Detail

getLabel

public String getLabel(ArchetypeEdge e)
Specified by:
getLabel in interface EdgeStringer