public class PeptideTableModel
extends com.compomics.util.gui.tablemodels.SelfUpdatingTableModel
columnIdentifiers, dataVectorlistenerList| Constructor and Description |
|---|
PeptideTableModel()
Constructor for an empty table.
|
PeptideTableModel(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator,
DisplayFeaturesGenerator displayFeaturesGenerator,
String proteinAccession,
long[] peptideKeys,
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,
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator,
DisplayFeaturesGenerator displayFeaturesGenerator,
String proteinAccession,
long[] peptideKeys)
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 PeptideTableModel()
public PeptideTableModel(com.compomics.util.experiment.identification.Identification identification,
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator,
DisplayFeaturesGenerator displayFeaturesGenerator,
String proteinAccession,
long[] peptideKeys,
boolean displayScores,
com.compomics.util.exceptions.ExceptionHandler exceptionHandler)
identification - the identification object containing the matchesidentificationFeaturesGenerator - the identification features
generatordisplayFeaturesGenerator - the display features generatorproteinAccession - the protein accessionpeptideKeys - the peptide 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,
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator,
DisplayFeaturesGenerator displayFeaturesGenerator,
String proteinAccession,
long[] peptideKeys)
identification - the identification object containing the matchesidentificationFeaturesGenerator - the identification features
generatordisplayFeaturesGenerator - the display features generatorproteinAccession - the protein accessionpeptideKeys - the peptide 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.