Click or drag to resize
PrintMatrixString Class
This is an internal class to conveniently use PrintMatrix in logging operations. The requirement is to get the output from PrintMatrix.print() into a String that can be passed to the logging framework. This class uses a StringBuffer object to collect all print() calls made internally in PrintMatrix. Once the call completes, use the method getOutput() to return what would have been printed as a String that includes proper spacing and line breaks. Working this into the PrintMatrix class would have involved extra overhead in all the cases where a string wouldn't be required, so it's best to include this as a separate undocumented class. Public access is required to use from the packages outside of Imsl.Math.
Inheritance Hierarchy

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public class PrintMatrixString : PrintMatrix

The PrintMatrixString type exposes the following members.

Constructors
  NameDescription
Public methodPrintMatrixString
Initializes a new instance of the PrintMatrixString class
Public methodPrintMatrixString(StreamWriter)
Initializes a new instance of the PrintMatrixString class
Public methodPrintMatrixString(String)
Initializes a new instance of the PrintMatrixString class
Public methodPrintMatrixString(StreamWriter, String)
Initializes a new instance of the PrintMatrixString class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrint(Object)
Prints an nRow by nColumn matrix with the default format.
(Inherited from PrintMatrix.)
Public methodPrint(String) (Overrides PrintMatrixPrint(String).)
Public methodPrint(PrintMatrixFormat, Object)
Prints an nRow by nColumn matrix with specified format.
(Inherited from PrintMatrix.)
Public methodPrintHTML
Prints an nRow by nColumn matrix with specified format for HTML output.
(Inherited from PrintMatrix.)
Public methodPrintln (Overrides PrintMatrixPrintln.)
Public methodSetColumnSpacing
Sets the number of spaces between columns.
(Inherited from PrintMatrix.)
Public methodSetEqualColumnWidths
Force all of the columns to have the same width.
(Inherited from PrintMatrix.)
Public methodSetMatrixType
Set matrix type.
(Inherited from PrintMatrix.)
Public methodSetPageWidth
Sets the page width.
(Inherited from PrintMatrix.)
Public methodSetTitle
Sets the matrix title.
(Inherited from PrintMatrix.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyOutput
This method should be called after the print() method is called on the class instance to retrieve output as a String.
Top
See Also