public class IonLabelColorTableModel extends DefaultTableModel
columnIdentifiers, dataVector
listenerList
Constructor and Description |
---|
IonLabelColorTableModel()
Constructor which sets a new empty table.
|
IonLabelColorTableModel(HashMap<Ion.IonType,HashSet<Integer>> iontypes,
ArrayList<NeutralLoss> neutralLosses)
Constructor which sets a new table.
|
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
Ion |
getIonAtRow(int rowIndex)
Returns the ion type at the given row.
|
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public IonLabelColorTableModel(HashMap<Ion.IonType,HashSet<Integer>> iontypes, ArrayList<NeutralLoss> neutralLosses)
iontypes
- the ion typesneutralLosses
- the neutral lossespublic IonLabelColorTableModel()
public Ion getIonAtRow(int rowIndex)
rowIndex
- the table row indexpublic int getRowCount()
getRowCount
in interface TableModel
getRowCount
in class DefaultTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
getColumnCount
in class DefaultTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class DefaultTableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
getValueAt
in class DefaultTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class DefaultTableModel
Copyright © 2016. All rights reserved.