public class UserDefinedFormat
extends java.text.DecimalFormat
| Constructor and Description |
|---|
UserDefinedFormat(java.text.DecimalFormat fallback,
java.lang.String format,
double scale,
double translation)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer result,
java.text.FieldPosition fieldPosition) |
void |
setDecimalFormatSymbols(java.text.DecimalFormatSymbols newSymbols) |
applyLocalizedPattern, applyPattern, clone, equals, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalSeparatorAlwaysShown, setGroupingSize, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPatternformat, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setParseIntegerOnlypublic UserDefinedFormat(java.text.DecimalFormat fallback,
java.lang.String format,
double scale,
double translation)
basePattern - the pattern to represent the basefracPattern - the pattern to represent fracpublic java.lang.StringBuffer format(double number,
java.lang.StringBuffer result,
java.text.FieldPosition fieldPosition)
format in class java.text.DecimalFormatpublic void setDecimalFormatSymbols(java.text.DecimalFormatSymbols newSymbols)
setDecimalFormatSymbols in class java.text.DecimalFormat