net.commerce.zocalo
Class NumberDisplay

java.lang.Object
  extended by net.commerce.zocalo.NumberDisplay

public class NumberDisplay
extends java.lang.Object

support for displaying Numbers as prices, quantities, or scores. Understands how to format floating point numbers reasonably.


Constructor Summary
NumberDisplay()
           
 
Method Summary
static java.lang.String printAsPrice(double price)
           
static java.lang.String printAsQuantity(double quant)
           
static java.lang.String printAsScore(double score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberDisplay

public NumberDisplay()
Method Detail

printAsPrice

public static java.lang.String printAsPrice(double price)

printAsQuantity

public static java.lang.String printAsQuantity(double quant)

printAsScore

public static java.lang.String printAsScore(double score)