public class TDI_Bin_Table_Model
extends javax.swing.table.AbstractTableModel
WARNING: This API is under development and is not stable.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_NAME_PREFIX
The prefix for the column names.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
TDI_Bin_Table_Model() |
TDI_Bin_Table_Model(CCD_Data data) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int col)
Gets the class of the data object displayed in a given column.
|
int |
getColumnCount() |
java.lang.String |
getColumnName(int col)
Gets the name of the column.
|
CCD_Data |
getData()
Gets the table data.
|
CCD_Data.Data_Plane |
getDataPlane()
Gets the current data plane for the table model.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
void |
setData(CCD_Data data)
Sets the data for the table model.
|
void |
setDataPlane(CCD_Data.Data_Plane dataPlane)
Sets the current data plane for the table model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final java.lang.String ID
public static final java.lang.String COLUMN_NAME_PREFIX
public TDI_Bin_Table_Model(CCD_Data data)
public TDI_Bin_Table_Model()
public CCD_Data getData()
public void setData(CCD_Data data)
Instrument.UNKNOWN_NUMBER
. The AbstractTableModel.fireTableDataChanged()
method is
invoked to notify all listeners that all cell values may have changed.data
- the new table data.CCD_Data.CCD_Data()
public CCD_Data.Data_Plane getDataPlane()
public void setDataPlane(CCD_Data.Data_Plane dataPlane)
AbstractTableModel.fireTableDataChanged()
method is invoked to notify all listeners that all
cell values may have changed.dataPlane
- the new data plane.public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row, int col)
public java.lang.Class getColumnClass(int col)
Number
.getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
col
- the column in question.public java.lang.String getColumnName(int col)
COLUMN_NAME_PREFIX
with the binning factor appended.getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- the column in question.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona