edu.uci.ics.jung.visualization.decorators
Class NumberFormattingTransformer<T>

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

public class NumberFormattingTransformer<T>
extends Object
implements org.apache.commons.collections15.Transformer<T,String>

Transforms inputs to String representations by chaining an input Number-generating Transformer with an internal NumberFormat instance.

Author:
Joshua O'Madadhain

Constructor Summary
NumberFormattingTransformer(org.apache.commons.collections15.Transformer<T,? extends Number> values)
           
 
Method Summary
 String transform(T input)
          Returns a formatted string for the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberFormattingTransformer

public NumberFormattingTransformer(org.apache.commons.collections15.Transformer<T,? extends Number> values)
Method Detail

transform

public String transform(T input)
Returns a formatted string for the input.

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


Copyright © 2009. All Rights Reserved.