org.faceless.graph.formatter
Class CurrencyFormatter

java.lang.Object
  extended by org.faceless.graph.formatter.Formatter
      extended by org.faceless.graph.formatter.CurrencyFormatter

public class CurrencyFormatter
extends Formatter

The CurrencyFormatter formats a value according to the currency format of the specified locale.


Field Summary
 
Fields inherited from class org.faceless.graph.formatter.Formatter
MINIMAL, NORMAL, SPARSE
 
Constructor Summary
CurrencyFormatter()
          Create a new CurrencyFormatter with the format of the current locale
CurrencyFormatter(Locale loc)
          Create a new CurrencyFormatter with the format of the specified locale
 
Method Summary
 String format(double in)
          Return a String that is the formatted version of the input parameter.
 
Methods inherited from class org.faceless.graph.formatter.Formatter
isDiscrete, setDensity, setFixedEnds, steps
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyFormatter

public CurrencyFormatter()
Create a new CurrencyFormatter with the format of the current locale


CurrencyFormatter

public CurrencyFormatter(Locale loc)
Create a new CurrencyFormatter with the format of the specified locale

Method Detail

format

public String format(double in)
Description copied from class: Formatter
Return a String that is the formatted version of the input parameter.

Specified by:
format in class Formatter


Copyright © 2001-2012 Big Faceless Organization