public class PsmTableModel
extends com.compomics.util.gui.tablemodels.SelfUpdatingTableModel
columnIdentifiers, dataVectorlistenerList| Constructor and Description |
|---|
PsmTableModel()
Constructor for an empty table.
|
PsmTableModel(com.compomics.util.experiment.identification.Identification identification,
DisplayFeaturesGenerator displayFeaturesGenerator,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
long[] psmKeys,
boolean displayScores,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
Constructor which sets a new table.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
catchException(Exception e) |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isInstantiated()
Indicates whether the table content was instantiated.
|
protected int |
loadDataForRows(ArrayList<Integer> rows,
com.compomics.util.waiting.WaitingHandler waitingHandler) |
void |
reset()
Resets the peptide keys.
|
void |
showScores(boolean showScores)
Sets whether the scores should be displayed.
|
void |
updateDataModel(com.compomics.util.experiment.identification.Identification identification,
DisplayFeaturesGenerator displayFeaturesGenerator,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
long[] psmKeys)
Update the data in the table model without having to reset the whole
table model.
|
addScrollListeners, addSortListener, dataMissingAtRow, getRowNumber, getViewIndex, initiateSorter, isScrolling, isSelfUpdating, needsUpdate, resetSorting, setIsScrolling, setSelfUpdating, sortaddColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic PsmTableModel()
public PsmTableModel(com.compomics.util.experiment.identification.Identification identification,
DisplayFeaturesGenerator displayFeaturesGenerator,
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider spectrumProvider,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
long[] psmKeys,
boolean displayScores,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
identification - the identification object containing the matchesdisplayFeaturesGenerator - the display features generatorspectrumProvider - The spectrum provider.identificationParameters - the identification parameterspsmKeys - the PSM keysdisplayScores - boolean indicating whether the scores should be
displayed instead of the confidenceexceptionHandler - handler for the exceptionspublic void updateDataModel(com.compomics.util.experiment.identification.Identification identification,
DisplayFeaturesGenerator displayFeaturesGenerator,
com.compomics.util.parameters.identification.IdentificationParameters identificationParameters,
long[] psmKeys)
identification - the identification object containing the matchesdisplayFeaturesGenerator - the display features generatoridentificationParameters - the identification parameterspsmKeys - the PSM keyspublic void showScores(boolean showScores)
showScores - a boolean indicating whether the scores should be
displayedpublic void reset()
public int getRowCount()
getRowCount in interface TableModelgetRowCount in class DefaultTableModelpublic int getColumnCount()
getColumnCount in interface TableModelgetColumnCount in class DefaultTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class DefaultTableModelpublic Object getValueAt(int row, int column)
getValueAt in interface TableModelgetValueAt in class DefaultTableModelpublic boolean isInstantiated()
public Class getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class DefaultTableModelprotected void catchException(Exception e)
catchException in class com.compomics.util.gui.tablemodels.SelfUpdatingTableModelCopyright © 2021. All rights reserved.