Class NumFmt
java.lang.Object
|
+----NumFmt
- public class NumFmt
- extends Object
-
NumFmt()
-
-
NumFmt(int)
-
-
NumFmt(int, char)
-
-
NumFmt(int, int)
-
-
NumFmt(int, int, char)
-
-
format(double)
-
-
main(String[])
-
-
printAllValues()
-
-
setAlignRight(boolean)
- If true, number is attempted to be aligned with the right side
of the field.
-
setDecPlaces(int)
-
-
setMinLen(int)
-
-
setPadCharLeading(char)
-
-
setPadCharTrailing(char)
-
-
setPadIt(boolean)
-
-
setRoundIt(boolean)
-
NumFmt
public NumFmt()
NumFmt
public NumFmt(int minLen)
NumFmt
public NumFmt(int minLen,
int decPlaces)
NumFmt
public NumFmt(int minLen,
int decPlaces,
char padCharLeading)
NumFmt
public NumFmt(int minLen,
char padCharLeading)
setMinLen
public void setMinLen(int minLen)
setDecPlaces
public void setDecPlaces(int decPlaces)
setPadIt
public void setPadIt(boolean padIt)
setPadCharLeading
public void setPadCharLeading(char padCharLeading)
setPadCharTrailing
public void setPadCharTrailing(char padCharTrailing)
setRoundIt
public void setRoundIt(boolean roundIt)
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.
format
public String format(double num)
printAllValues
public void printAllValues()
main
public static void main(String args[])