Class MatrixTableModel

All Implemented Interfaces:
Serializable, TableModel

public class MatrixTableModel extends PageTableModel
A table model for matrices with paging.
See Also:
  • Constructor Details

    • MatrixTableModel

      public MatrixTableModel(Matrix matrix)
      Constructor.
      Parameters:
      matrix - the matrix.
  • Method Details

    • getColumnCount

      public int getColumnCount()
    • getRealRowCount

      public int getRealRowCount()
      Description copied from class: PageTableModel
      The subclass should implement this method to return the real number of rows in the model.
      Specified by:
      getRealRowCount in class PageTableModel
      Returns:
      The real number of rows in the model.
    • getColumnName

      public String getColumnName(int col)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • getValueAtRealRow

      public Object getValueAtRealRow(int row, int col)
      Description copied from class: PageTableModel
      Returns the value for the cell at real row index.
      Specified by:
      getValueAtRealRow in class PageTableModel
      Parameters:
      row - the real row whose value is to be queried.
      col - the column whose value is to be queried.
      Returns:
      the value Object at the specified cell