public interface TableData
Modifier and Type | Method and Description |
---|---|
int |
addColumn(Object newCol)
Add a column to the table without any associated header information.
|
int |
addRow(Object[] newRow)
Add a row at the end of the table.
|
void |
deleteColumns(int row,
int len) |
void |
deleteRows(int row,
int len) |
Object |
getColumn(int col) |
Object |
getElement(int row,
int col) |
int |
getNCols() |
int |
getNRows() |
Object[] |
getRow(int row) |
void |
setColumn(int col,
Object newCol) |
void |
setElement(int row,
int col,
Object element) |
void |
setRow(int row,
Object[] newRow) |
void |
updateAfterDelete(int oldNcol,
Header hdr) |
int addColumn(Object newCol) throws FitsException
newCol
- the new column information. the newCol should be an Object[]
where type of all of the constituents is identical. The length
of data should match the other columns. Note: It is
valid for data to be a 2 or higher dimensionality primitive
array. In this case the column index is the first (in Java
speak) index of the array. E.g., if called with
int[30][20][10], the number of rows in the table should be 30
and this column will have elements which are 2-d integer
arrays with TDIM = (10,20).FitsException
- if the operation failedint addRow(Object[] newRow) throws FitsException
newRow
- An array of elements to be added. Each element of o should be
an array of primitives or a String.FitsException
- if the operation failedvoid deleteColumns(int row, int len) throws FitsException
FitsException
void deleteRows(int row, int len) throws FitsException
FitsException
Object getColumn(int col) throws FitsException
FitsException
Object getElement(int row, int col) throws FitsException
FitsException
int getNCols()
int getNRows()
Object[] getRow(int row) throws FitsException
FitsException
void setColumn(int col, Object newCol) throws FitsException
FitsException
void setElement(int row, int col, Object element) throws FitsException
FitsException
void setRow(int row, Object[] newRow) throws FitsException
FitsException
void updateAfterDelete(int oldNcol, Header hdr) throws FitsException
FitsException
Copyright © 1996–2016 nom-tam-fits. All rights reserved.