Class AaSubstitutionMatrixTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
com.compomics.util.gui.variants.aa_substitutions.AaSubstitutionMatrixTableModel
- All Implemented Interfaces:
Serializable
,TableModel
public class AaSubstitutionMatrixTableModel extends DefaultTableModel
Table model to display the content of an amino acid substitution matrix.
- Author:
- Marc Vaudel
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AaSubstitutionMatrixTableModel()
Empty default constructorAaSubstitutionMatrixTableModel(AaSubstitutionMatrix aaSubstitutionMatrix, boolean editable)
Constructor. -
Method Summary
Modifier and Type Method Description Class
getColumnClass(int columnIndex)
int
getColumnCount()
String
getColumnName(int column)
int
getRowCount()
Object
getValueAt(int row, int column)
boolean
isCellEditable(int rowIndex, int columnIndex)
void
setAaSubstitutionMatrix(AaSubstitutionMatrix aaSubstitutionMatrix)
Sets the substitution matrix to display.Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
AaSubstitutionMatrixTableModel
public AaSubstitutionMatrixTableModel()Empty default constructor -
AaSubstitutionMatrixTableModel
Constructor.- Parameters:
aaSubstitutionMatrix
- the substitution matrix to displayeditable
- a boolean indicating whether the table can be edited
-
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
- Overrides:
getRowCount
in classDefaultTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
- Overrides:
getColumnCount
in classDefaultTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classDefaultTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classDefaultTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classDefaultTableModel
-
setAaSubstitutionMatrix
Sets the substitution matrix to display.- Parameters:
aaSubstitutionMatrix
- the substitution matrix to display
-