|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjebl.util.NumberFormatter
public class NumberFormatter
An interface for a numerical column in a log.
| Constructor Summary | |
|---|---|
NumberFormatter(int sf)
|
|
| Method Summary | |
|---|---|
int |
getDecimalPlaces()
Get the number of decimal places to display when formatted. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberFormatter(int sf)
| Method Detail |
|---|
public void setSignificantFigures(int sf)
public int getSignificantFigures()
public void setDecimalPlaces(int dp)
public int getDecimalPlaces()
public String getFormattedValue(double value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||