edu.uci.ics.jung.visualization.decorators
Class NumberFormattingTransformer<T>
java.lang.Object
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
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 |
NumberFormattingTransformer
public NumberFormattingTransformer(org.apache.commons.collections15.Transformer<T,? extends Number> values)
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.