Class FixedPointFormatter

  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by java.text.DecimalFormat
              extended by shady.common.ui.FixedPointFormatter
All Implemented Interfaces:, java.lang.Cloneable, DoubleFormatter

public class FixedPointFormatter
extends java.text.DecimalFormat
implements DoubleFormatter

A fixed-point formatter.

TBD more doc

Copyright (C) 2006 Marsette A. Vona, III

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Marsette (Marty) A. Vona, III
See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.text.NumberFormat
Field Summary
private static java.lang.String cvsid
          CVS id.
Fields inherited from class java.text.NumberFormat
Constructor Summary
FixedPointFormatter(int decimalPlaces)
          Create a new FixedPointFormatter.
Method Summary
 java.lang.String f(double d)
          Abbreviation of format(d).
Methods inherited from class java.text.DecimalFormat
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, 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
Methods inherited from interface shady.common.DoubleFormatter

Field Detail


private static final java.lang.String cvsid

CVS id.

See Also:
Constant Field Values
Constructor Detail


public FixedPointFormatter(int decimalPlaces)

Create a new FixedPointFormatter.

decimalPlaces - the number of decimal places
Method Detail


public java.lang.String f(double d)

Abbreviation of format(d).