railo.runtime.chart
Class LabelFormatUtil

java.lang.Object
  extended by railo.runtime.chart.LabelFormatUtil

public class LabelFormatUtil
extends Object


Field Summary
static int LABEL_FORMAT_CURRENCY
           
static int LABEL_FORMAT_DATE
           
static int LABEL_FORMAT_NUMBER
           
static int LABEL_FORMAT_PERCENT
           
 
Constructor Summary
LabelFormatUtil()
           
 
Method Summary
static String format(int labelFormat, double value)
           
static String formatCurrency(PageContext pc, double value)
           
static String formatDate(PageContext pc, double value)
           
static String formatNumber(double value)
           
static String formatPercent(double value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_FORMAT_NUMBER

public static final int LABEL_FORMAT_NUMBER
See Also:
Constant Field Values

LABEL_FORMAT_CURRENCY

public static final int LABEL_FORMAT_CURRENCY
See Also:
Constant Field Values

LABEL_FORMAT_PERCENT

public static final int LABEL_FORMAT_PERCENT
See Also:
Constant Field Values

LABEL_FORMAT_DATE

public static final int LABEL_FORMAT_DATE
See Also:
Constant Field Values
Constructor Detail

LabelFormatUtil

public LabelFormatUtil()
Method Detail

formatDate

public static String formatDate(PageContext pc,
                                double value)

formatNumber

public static String formatNumber(double value)

formatPercent

public static String formatPercent(double value)

formatCurrency

public static String formatCurrency(PageContext pc,
                                    double value)

format

public static String format(int labelFormat,
                            double value)


Copyright © 2012 Railo