weka.classifiers.functions.pace
Class FlexibleDecimalFormat
java.lang.Object
|
+--java.text.Format
|
+--java.text.NumberFormat
|
+--java.text.DecimalFormat
|
+--weka.classifiers.functions.pace.FlexibleDecimalFormat
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class FlexibleDecimalFormat
- extends java.text.DecimalFormat
- See Also:
- Serialized Form
Fields inherited from class java.text.NumberFormat |
FRACTION_FIELD, INTEGER_FIELD |
Methods inherited from class java.text.DecimalFormat |
applyLocalizedPattern, applyPattern, clone, equals, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, hashCode, isDecimalSeparatorAlwaysShown, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setPositivePrefix, setPositiveSuffix, toLocalizedPattern, toPattern |
Methods inherited from class java.text.NumberFormat |
format, format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly |
Methods inherited from class java.text.Format |
format, parseObject |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
FlexibleDecimalFormat
public FlexibleDecimalFormat()
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits)
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits,
boolean trailing)
FlexibleDecimalFormat
public FlexibleDecimalFormat(int digits,
boolean exp,
boolean trailing,
boolean grouping)
FlexibleDecimalFormat
public FlexibleDecimalFormat(double d)
update
public void update(double d)
needExponentialFormat
public boolean needExponentialFormat(double d)
grouping
public void grouping(boolean grouping)
format
public java.lang.StringBuffer format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
- Overrides:
format
in class java.text.DecimalFormat
width
public int width()
formatString
public java.lang.StringBuffer formatString(java.lang.String str)
Copyright (c)
2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London