Package com.imsl.math

Class PrintMatrixFormat

java.lang.Object
com.imsl.math.PrintMatrixFormat
Direct Known Subclasses:
PrintMatrixFormatEx2

public class PrintMatrixFormat extends Object
This class can be used to customize the actions of PrintMatrix. By default, entries are formatted using the default NumberFormat for the current default locale. As of JDK1.3, none of these NumberFormat objects support scientific notation. To enable scientific notation, set the NumberFormat property to null. There is no way to simultaneously support scientific notation and locale-correct formatting.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a column label is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for beginning a column label row is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatted string for beginning an entry is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for beginning a matrix is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for beginning a row is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for beginning a row label is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatted string for a given column label is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a column label is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a column label row is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatted string for ending an entry is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a matrix is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a row is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatting string for ending a row label is to be returned.
    static final int
    This flag as the type argument to format, indicates that the formatted string for a given entry is to be returned.
    protected NumberFormat
    The NumberFormat to be used in formatting double and Complex entries.
    static final int
    This flag as the type argument to format, indicates that the formatted string for a given row label is to be returned.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a PrintMatrixFormat object.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(int type, Object entry, int row, int col, ParsePosition pos)
    Returns a formatted string.
    Returns the NumberFormat to be used in formatting double and Complex entries.
    void
    setColumnLabels(String[] columnLabels)
    Turns on column labeling using the given labels.
    void
    setFirstColumnNumber(int firstColumnNumber)
    Turns on column labeling with index numbers and sets the index for the label of the first column.
    void
    setFirstRowNumber(int firstRowNumber)
    Turns on row labeling with index numbers and sets the index for the label of the first row.
    void
    Turns off column labels.
    void
    Turns off row labels.
    void
    Sets the NumberFormat to be used in formatting double and Complex entries.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait