|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.math.matrix.MatrixDisplay
public class MatrixDisplay
Displays matrix entries in a GUI table.
Field Summary | |
---|---|
protected static java.lang.String |
defaultFormatString
Default matrix entry format string. |
Constructor Summary | |
---|---|
MatrixDisplay()
|
Method Summary | |
---|---|
static XFrame |
displayMatrix(Matrix matrix)
Displays matrix entries in a GUI table. |
static XFrame |
displayMatrix(Matrix matrix,
java.lang.String title)
Displays matrix entries in a GUI table. |
static XFrame |
displayMatrix(Matrix matrix,
java.lang.String title,
java.lang.String formatString)
Displays matrix entries in a GUI table. |
static XFrame |
displayMatrix(Matrix matrix,
java.lang.String title,
java.lang.String[] rowNames,
java.lang.String[] columnNames)
Displays matrix entries in a GUI table. |
static XFrame |
displayMatrix(Matrix matrix,
java.lang.String title,
java.lang.String[] rowNames,
java.lang.String[] columnNames,
java.lang.String formatString)
Displays matrix entries in a GUI table. |
static java.lang.String[] |
generateColumnLabels(Matrix matrix)
Generate column labels. |
static java.lang.String[] |
generateRowLabels(Matrix matrix)
Generate row labels. |
static java.lang.String |
generateTitle(Matrix matrix)
Displays matrix entries in a GUI table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String defaultFormatString
Constructor Detail |
---|
public MatrixDisplay()
Method Detail |
---|
public static XFrame displayMatrix(Matrix matrix, java.lang.String title, java.lang.String[] rowNames, java.lang.String[] columnNames, java.lang.String formatString)
matrix
- The matrix to display.title
- Title for matrix.rowNames
- Row names.columnNames
- Column names.formatString
- PrintFformat format string for all entries. public static XFrame displayMatrix(Matrix matrix, java.lang.String title, java.lang.String[] rowNames, java.lang.String[] columnNames)
matrix
- The matrix to display.title
- Title for matrix.rowNames
- Row names.columnNames
- Column names. public static XFrame displayMatrix(Matrix matrix, java.lang.String title, java.lang.String formatString)
matrix
- The matrix to display.title
- Title for matrix.formatString
- PrintFformat format string for all entries. public static XFrame displayMatrix(Matrix matrix, java.lang.String title)
matrix
- The matrix to display.title
- Title for matrix. public static XFrame displayMatrix(Matrix matrix)
matrix
- The matrix to display. public static java.lang.String generateTitle(Matrix matrix)
matrix
- The matrix to display.
The title takes the form:
r x c matrix
where "r" is the number of rows in the matrix and "c" is the number of columns in the matrix.
public static java.lang.String[] generateRowLabels(Matrix matrix)
matrix
- The matrix for which to create labels.
public static java.lang.String[] generateColumnLabels(Matrix matrix)
matrix
- The matrix for which to create labels.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |