public class NumberFormatter
extends java.lang.Object
Constructor | Description |
---|---|
NumberFormatter(int sf) |
Modifier and Type | Method | Description |
---|---|---|
int |
getDecimalPlaces() |
Get the number of decimal places to display when formatted.
|
java.lang.String |
getFormattedValue(double value) |
Returns a string containing the current value for this column with
appropriate formatting.
|
int |
getSignificantFigures() |
Get the number of significant figures to display when formatted.
|
void |
setDecimalPlaces(int dp) |
Set the number of decimal places to display when formatted.
|
void |
setSignificantFigures(int sf) |
Set the number of significant figures to display when formatted.
|
public void setSignificantFigures(int sf)
public int getSignificantFigures()
public void setDecimalPlaces(int dp)
public int getDecimalPlaces()
public java.lang.String getFormattedValue(double value)
http://code.google.com/p/jebl2/