| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | CellNumberFormatter.
This class is used to mark where the special characters in the format are, as opposed to the other characters that are simply printed. |
| Modifier and Type | Field and Description |
|---|---|
| private final CellNumberFormatter. | |
| private final CellNumberFormatter. | |
| private final DecimalFormat | |
| private final CellNumberFormatter. | |
| private final String | |
| private final List | |
| private final String | |
| private final CellNumberFormatter. | |
| private final List | |
| private final List | |
| private final List | |
| private final boolean | |
| private final List | |
| private static final Logger | |
| private final int | |
| private final CellNumberFormatter. | |
| private final String | |
| private final List | |
| private final String | |
| private final double | |
| private final boolean | |
| private final CellFormatter | |
| private final CellNumberFormatter. | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CellNumberFormatter(Locale
The locale to use. locale, String The format to parse. format)Creates a new cell number formatter. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private static CellNumberStringMod | deleteMod(CellNumberFormatter.
|
| public void | formatValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. valueObject)Implements abstract org. Format a value according the format string. |
| private int | |
| private DecimalFormatSymbols | |
| private static boolean | |
| private static boolean | hasChar(char ch, List<CellNumberFormatter.
|
| private static boolean | hasChar(char ch, List<CellNumberFormatter.
|
| private static CellNumberStringMod | |
| private int | |
| private static boolean | interpretIntegerCommas(StringBuffer sb, List<CellNumberFormatter.
|
| private static int | interpretPrecision(CellNumberFormatter.
|
| private static boolean | |
| private static CellNumberFormatter. | |
| private String | |
| private static int | |
| private static void | |
| private static String | |
| private static CellNumberStringMod | replaceMod(CellNumberFormatter.
|
| public void | simpleValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Implements abstract org. Format a value according to the type, in the most basic way. |
| private static String | |
| private List | |
| private List | |
| private void | writeFraction(double value, StringBuffer result, double fractional, StringBuffer output, Set<CellNumberStringMod> mods)
|
| private void | |
| private void | writeInteger(StringBuffer result, StringBuffer output, List<CellNumberFormatter.
|
| private void | |
| private void | writeSingleInteger(String fmt, int num, StringBuffer output, List<CellNumberFormatter.
|
| afterFractional | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| afterInteger | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| decimalFmt | back to summary |
|---|---|
| private final DecimalFormat decimalFmt | |
| decimalPoint | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| denominatorFmt | back to summary |
|---|---|
| private final String denominatorFmt | |
| denominatorSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| desc | back to summary |
|---|---|
| private final String desc | |
| exponent | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| exponentDigitSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| exponentSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| fractionalSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| improperFraction | back to summary |
|---|---|
| private final boolean improperFraction | |
| integerSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| maxDenominator | back to summary |
|---|---|
| private final int maxDenominator | |
| numerator | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| numeratorFmt | back to summary |
|---|---|
| private final String numeratorFmt | |
| numeratorSpecials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| printfFmt | back to summary |
|---|---|
| private final String printfFmt | |
| scale | back to summary |
|---|---|
| private final double scale | |
| showGroupingSeparator | back to summary |
|---|---|
| private final boolean showGroupingSeparator | |
| SIMPLE_NUMBER | back to summary |
|---|---|
| private final CellFormatter SIMPLE_NUMBER | |
| slash | back to summary |
|---|---|
| private final CellNumberFormatter. | |
| specials | back to summary |
|---|---|
| private final List<CellNumberFormatter. | |
| CellNumberFormatter | back to summary |
|---|---|
| public CellNumberFormatter(String format) Creates a new cell number formatter.
| |
| CellNumberFormatter | back to summary |
|---|---|
| public CellNumberFormatter(Locale locale, String format) Creates a new cell number formatter. | |
| calculateIntegerPartWidth | back to summary |
|---|---|
| private int calculateIntegerPartWidth() | |
| deleteMod | back to summary |
|---|---|
| private static CellNumberStringMod deleteMod(CellNumberFormatter. | |
| formatValue | back to summary |
|---|---|
| public void formatValue(StringBuffer toAppendTo, Object valueObject) Implements abstract org. Doc from org. Format a value according the format string. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |
| fractionalEnd | back to summary |
|---|---|
| private int fractionalEnd() | |
| getDecimalFormatSymbols | back to summary |
|---|---|
| private DecimalFormatSymbols getDecimalFormatSymbols() | |
| hasChar | back to summary |
|---|---|
| private static boolean hasChar(char ch, List<CellNumberFormatter. | |
| hasChar | back to summary |
|---|---|
| private static boolean hasChar(char ch, List<CellNumberFormatter. | |
| hasChar | back to summary |
|---|---|
| private static boolean hasChar(char ch, List<CellNumberFormatter. | |
| insertMod | back to summary |
|---|---|
| private static CellNumberStringMod insertMod(CellNumberFormatter. | |
| integerEnd | back to summary |
|---|---|
| private int integerEnd() | |
| interpretIntegerCommas | back to summary |
|---|---|
| private static boolean interpretIntegerCommas(StringBuffer sb, List<CellNumberFormatter. | |
| interpretPrecision | back to summary |
|---|---|
| private static int interpretPrecision(CellNumberFormatter. | |
| isDigitFmt | back to summary |
|---|---|
| private static boolean isDigitFmt(CellNumberFormatter. | |
| lastSpecial | back to summary |
|---|---|
| private static CellNumberFormatter. | |
| localiseFormat | back to summary |
|---|---|
| private String localiseFormat(String format) | |
| maxValue | back to summary |
|---|---|
| private static int maxValue(List<CellNumberFormatter. | |
| placeZeros | back to summary |
|---|---|
| private static void placeZeros(StringBuffer sb, List<CellNumberFormatter. | |
| replaceLast | back to summary |
|---|---|
| private static String replaceLast(String text, String regex, String replacement) | |
| replaceMod | back to summary |
|---|---|
| private static CellNumberStringMod replaceMod(CellNumberFormatter. | |
| simpleValue | back to summary |
|---|---|
| public void simpleValue(StringBuffer toAppendTo, Object value) Implements abstract org. Doc from org. Format a value according to the type, in the most basic way. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
For a number, this is
| |
| singleNumberFormat | back to summary |
|---|---|
| private static String singleNumberFormat(List<CellNumberFormatter. | |
| specialsFor | back to summary |
|---|---|
| private List | |
| specialsFor | back to summary |
|---|---|
| private List | |
| writeFraction | back to summary |
|---|---|
private void writeFraction(double value, StringBuffer result, double fractional, StringBuffer output, Set<CellNumberStringMod> mods)
| |
| writeFractional | back to summary |
|---|---|
| private void writeFractional(StringBuffer result, StringBuffer output) | |
| writeInteger | back to summary |
|---|---|
| private void writeInteger(StringBuffer result, StringBuffer output, List<CellNumberFormatter. | |
| writeScientific | back to summary |
|---|---|
| private void writeScientific(double value, StringBuffer output, Set<CellNumberStringMod> mods) | |
| writeSingleInteger | back to summary |
|---|---|
| private void writeSingleInteger(String fmt, int num, StringBuffer output, List<CellNumberFormatter. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | formatValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Implements abstract org. Format a value according the format string. |
| public void | simpleValue(StringBuffer
The buffer to append to. toAppendTo, Object The value to format. value)Implements abstract org. Format a value according to the type, in the most basic way. |
| GeneralNumberFormatter | back to summary |
|---|---|
| private GeneralNumberFormatter(Locale locale) | |
| formatValue | back to summary |
|---|---|
| public void formatValue(StringBuffer toAppendTo, Object value) Implements abstract org. Doc from org. Format a value according the format string. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |
| simpleValue | back to summary |
|---|---|
| public void simpleValue(StringBuffer toAppendTo, Object value) Implements abstract org. Doc from org. Format a value according to the type, in the most basic way. Note this method must be thread safe! In particular, if it uses a Format instance that is not thread safe, i.e. DateFormat, this method must be synchronized, either on the method, if the format is a final property, or on the format instance itself.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| Special | back to summary |
|---|---|
| pack-priv Special(char ch, int pos) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |