HiRISE

HiRISE.HiPlan.HIPHOP
Class TDI_Bin_Table_Model

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by HiRISE.HiPlan.HIPHOP.TDI_Bin_Table_Model
All Implemented Interfaces:
Serializable, TableModel

public class TDI_Bin_Table_Model
extends AbstractTableModel

A three-dimensional table model for HIPHOP-computed data.

WARNING: This API is under development and is not stable.

Version:
1.5
Author:
Christian Schaller - UA/PIRL
See Also:
Serialized Form

Field Summary
static String COLUMN_NAME_PREFIX
          The prefix for the column names.
static String ID
          Class identification name with source code version and date.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TDI_Bin_Table_Model()
           
TDI_Bin_Table_Model(CCD_Data data)
           
 
Method Summary
 Class getColumnClass(int col)
          Gets the class of the data object displayed in a given column.
 int getColumnCount()
           
 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()
           
 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.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values

COLUMN_NAME_PREFIX

public static final String COLUMN_NAME_PREFIX
The prefix for the column names. Note that it includes a space. A column name is this prefix with the binning factor appended.

See Also:
Constant Field Values
Constructor Detail

TDI_Bin_Table_Model

public TDI_Bin_Table_Model(CCD_Data data)

TDI_Bin_Table_Model

public TDI_Bin_Table_Model()
Method Detail

getData

public CCD_Data getData()
Gets the table data.

Returns:
the table data.

setData

public void setData(CCD_Data data)
Sets the data for the table model. The data are copied; if data is null, a new set of CCD data is created with values of Instrument.UNKNOWN_NUMBER. The AbstractTableModel.fireTableDataChanged() method is invoked to notify all listeners that all cell values may have changed.

Parameters:
data - the new table data.
See Also:
CCD_Data.CCD_Data()

getDataPlane

public CCD_Data.Data_Plane getDataPlane()
Gets the current data plane for the table model.

Returns:
the current data plane.

setDataPlane

public void setDataPlane(CCD_Data.Data_Plane dataPlane)
Sets the current data plane for the table model. The AbstractTableModel.fireTableDataChanged() method is invoked to notify all listeners that all cell values may have changed.

Parameters:
dataPlane - the new data plane.

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public Object getValueAt(int row,
                         int col)

getColumnClass

public Class getColumnClass(int col)
Gets the class of the data object displayed in a given column. The object is always of type Number.

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel
Parameters:
col - the column in question.
Returns:
the Number class.

getColumnName

public String getColumnName(int col)
Gets the name of the column. This namne is the COLUMN_NAME_PREFIX with the binning factor appended.

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel
Parameters:
col - the column in question.
Returns:
the column name.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona