Class Formatter
java.lang.Object
jmt.jmarkov.utils.Formatter
Formats the numbers shown in the JMCH graphical interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringformatLength(long i) static StringformatNumber(double number) static StringformatNumber(double number, int decimal) static StringformatNumber(double number, int decimal, boolean grouping) static StringformatNumber(Object value, int decimal) static StringformatSize(double size) static StringformatSize(Object value) Returnsvalue(byte) formatted as a file size.static StringformatTable(String[] rows, int[] colAlignment) static StringformatTime(long time) static StringReturns the current date in the format needed for CLF Example: 15/Dec/2002:23:46:16static String
-
Field Details
-
LEFT
public static final int LEFT- See Also:
-
CENTER
public static final int CENTER- See Also:
-
RIGHT
public static final int RIGHT- See Also:
-
SIZES
-
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
formatNumber
-
formatNumber
-
formatNumber
-
formatNumber
-
formatSize
-
formatSize
-
formatLength
-
formatTime
-
formatTable
-
fill
-
getCLFDate
Returns the current date in the format needed for CLF Example: 15/Dec/2002:23:46:16 -
shortDate
-