weka.classifiers.functions.pace
Class FloatingPointFormat

java.lang.Object
  extended byjava.text.Format
      extended byjava.text.NumberFormat
          extended byjava.text.DecimalFormat
              extended byweka.classifiers.functions.pace.FloatingPointFormat
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class FloatingPointFormat
extends java.text.DecimalFormat

Class for the format of floating point numbers

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.text.NumberFormat
java.text.NumberFormat.Field
 
Nested classes inherited from class java.text.Format
 
Field Summary
protected  int decimal
           
protected  java.text.DecimalFormat nf
           
protected  boolean trailing
           
protected  int width
           
 
Fields inherited from class java.text.DecimalFormat
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
FloatingPointFormat()
          Default constructor
FloatingPointFormat(int digits)
           
FloatingPointFormat(int w, int d)
           
FloatingPointFormat(int w, int d, boolean trailingZeros)
           
 
Method Summary
 java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
           
private static java.lang.StringBuffer padding(int n, char c)
           
static java.lang.String pattern(int w, int d)
           
 int width()
           
 
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
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nf

protected java.text.DecimalFormat nf

width

protected int width

decimal

protected int decimal

trailing

protected boolean trailing
Constructor Detail

FloatingPointFormat

public FloatingPointFormat()
Default constructor


FloatingPointFormat

public FloatingPointFormat(int digits)

FloatingPointFormat

public FloatingPointFormat(int w,
                           int d)

FloatingPointFormat

public FloatingPointFormat(int w,
                           int d,
                           boolean trailingZeros)
Method Detail

format

public java.lang.StringBuffer format(double number,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)

pattern

public static java.lang.String pattern(int w,
                                       int d)

padding

private static java.lang.StringBuffer padding(int n,
                                              char c)

width

public int width()