edu.uci.ics.jung.visualization.decorators
Class ToStringLabeller<V>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.ToStringLabeller<V>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,String>

public class ToStringLabeller<V>
extends Object
implements org.apache.commons.collections15.Transformer<V,String>

Labels vertices by their toString. This class functions as a drop-in replacement for the default StringLabeller method. This class does not guarantee unique labels; or even consistent ones; as a result, getVertexByLabel will always return NULL.

Author:
danyelf

Constructor Summary
ToStringLabeller()
           
 
Method Summary
 String transform(V v)
          Retunrs v.toString()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringLabeller

public ToStringLabeller()
Method Detail

transform

public String transform(V v)
Retunrs v.toString()

Specified by:
transform in interface org.apache.commons.collections15.Transformer<V,String>


Copyright © 2009. All Rights Reserved.