|
ContactCenters V. 0.9.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.util.LaTeXDoubleFormatterWithError
public class LaTeXDoubleFormatterWithError
Represents a double formatter with error formatting strings for insertion
into a LATEX document. This formatter uses an ordinary double formatter,
and calls String) on the
returned strings. This method processes strings to be formatted in LATEX,
e.g., convert scientific notation.
| Constructor Summary | |
|---|---|
LaTeXDoubleFormatterWithError(DoubleFormatterWithError df)
Constructs a new double formatter using df. |
|
LaTeXDoubleFormatterWithError(DoubleFormatterWithError df,
String ensureMathCmd)
Constructs a new double formatter using df, and the LATEX command given by ensureMathCmd to ensure math mode when necessary. |
|
| Method Summary | |
|---|---|
String |
format(double x)
This should be equivalent to format (x, 0). |
String |
format(double x,
double error)
Formats the value x with error error into a string, and returns the formatted string. |
DoubleFormatterWithError |
getDoubleFormatter()
Returns the double formatter used by this formatter. |
String |
getEnsureMathCommand()
Returns the name of the math-ensuring LATEX command. |
void |
setDoubleFormatter(DoubleFormatterWithError df)
Sets the double formatter used by this formatter to df. |
void |
setEnsureMathCommand(String ensureMathCmd)
Sets the name of the math-ensuring LATEX command to ensureMathCmd. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LaTeXDoubleFormatterWithError(DoubleFormatterWithError df)
df - the double formatter being used.
public LaTeXDoubleFormatterWithError(DoubleFormatterWithError df,
String ensureMathCmd)
df - the double formatter being used.ensureMathCmd - the name of the ensure-math command.| Method Detail |
|---|
public DoubleFormatterWithError getDoubleFormatter()
public void setDoubleFormatter(DoubleFormatterWithError df)
df - the new double formatter.public String getEnsureMathCommand()
public void setEnsureMathCommand(String ensureMathCmd)
ensureMathCmd - the new name of the math-ensuring command.
public String format(double x,
double error)
DoubleFormatterWithError
format in interface DoubleFormatterWithErrorx - the value being formatted.error - the error on the formatted value.
public String format(double x)
DoubleFormatterWithErrorformat (x, 0).
format in interface DoubleFormatterformat in interface DoubleFormatterWithErrorx - the value being formatted.
|
ContactCenters V. 0.9.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||