Class NumFmt

java.lang.Object
   |
   +----NumFmt

public class NumFmt
extends Object

Constructor Index

 o NumFmt()
 o NumFmt(int)
 o NumFmt(int, char)
 o NumFmt(int, int)
 o NumFmt(int, int, char)

Method Index

 o format(double)
 o main(String[])
 o printAllValues()
 o setAlignRight(boolean)
If true, number is attempted to be aligned with the right side of the field.
 o setDecPlaces(int)
 o setMinLen(int)
 o setPadCharLeading(char)
 o setPadCharTrailing(char)
 o setPadIt(boolean)
 o setRoundIt(boolean)

Constructors

 o NumFmt
 public NumFmt()
 o NumFmt
 public NumFmt(int minLen)
 o NumFmt
 public NumFmt(int minLen,
               int decPlaces)
 o NumFmt
 public NumFmt(int minLen,
               int decPlaces,
               char padCharLeading)
 o NumFmt
 public NumFmt(int minLen,
               char padCharLeading)

Methods

 o setMinLen
 public void setMinLen(int minLen)
 o setDecPlaces
 public void setDecPlaces(int decPlaces)
 o setPadIt
 public void setPadIt(boolean padIt)
 o setPadCharLeading
 public void setPadCharLeading(char padCharLeading)
 o setPadCharTrailing
 public void setPadCharTrailing(char padCharTrailing)
 o setRoundIt
 public void setRoundIt(boolean roundIt)
 o setAlignRight
 public void setAlignRight(boolean alignRight)
If true, number is attempted to be aligned with the right side of the field. If false, the left side.

 o format
 public String format(double num)
 o printAllValues
 public void printAllValues()
 o main
 public static void main(String args[])