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
Table model to display the content of an amino acid substitution matrix.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVectorFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructorAaSubstitutionMatrixTableModel(AaSubstitutionMatrix aaSubstitutionMatrix, boolean editable) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass(int columnIndex) intgetColumnName(int column) intgetValueAt(int row, int column) booleanisCellEditable(int rowIndex, int columnIndex) voidsetAaSubstitutionMatrix(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, setValueAtMethods 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:
getRowCountin interfaceTableModel- Overrides:
getRowCountin classDefaultTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classDefaultTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classDefaultTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classDefaultTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classDefaultTableModel
-
setAaSubstitutionMatrix
Sets the substitution matrix to display.- Parameters:
aaSubstitutionMatrix- the substitution matrix to display
-