jsky.catalog
Interface TableQueryResult

All Superinterfaces:
Catalog, java.lang.Cloneable, QueryResult, javax.swing.table.TableModel
All Known Implementing Classes:
AstroCatTable, MemoryCatalog, NavigatorFITSTable, SkycatTable, TestTableQueryResult

public interface TableQueryResult
extends Catalog, javax.swing.table.TableModel

This interface defines the methods required to access tabular query results. It extends QueryResult, since it represents the result of a catalog query. It extends TableModel to make it easy to display in a JTable. It also extends Catalog, so that it is posible to search again in the result of a previous query.


Field Summary
 
Fields inherited from interface jsky.catalog.Catalog
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER
 
Method Summary
 Catalog getCatalog()
          Return the catalog used to create this table, or a dummy, generated catalog object, if not known.
 FieldDesc getColumnDesc(int i)
          Return a description of the ith table column field
 java.util.Vector getColumnIdentifiers()
          Return a vector of column headings for this table.
 int getColumnIndex(java.lang.String name)
          Return the table column index for the given column name
 Coordinates getCoordinates(int rowIndex)
          Return a Coordinates object based on the appropriate columns in the given row, or null if there are no coordinates available for the row.
 java.util.Vector getDataVector()
          Returns the Vector of Vectors that contains the table's data values.
 QueryArgs getQueryArgs()
          Return the object representing the arguments to the query that resulted in this table, if known, otherwise null.
 RowCoordinates getRowCoordinates()
          Return an object describing the columns that can be used to search this catalog.
 WorldCoordinates getWCSCenter()
          Return the center coordinates for this table from the query arguments, if known, otherwise return the coordinates of the first row, or null if there are no world coordinates available.
 boolean hasCoordinates()
          Return true if the table has coordinate columns, such as (ra, dec)
 boolean isMore()
          Return true if the result was truncated and more data would have been available
 void setQueryArgs(QueryArgs queryArgs)
          Set the object representing the arguments to the query that resulted in this table.
 
Methods inherited from interface jsky.catalog.Catalog
clone, getDescription, getDocURL, getId, getName, getNumParams, getParamDesc, getParamDesc, getParent, getPath, getTitle, getType, isImageServer, isLocal, query, setName, setParent, setRegionArgs
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getDataVector

java.util.Vector getDataVector()
Returns the Vector of Vectors that contains the table's data values. The vectors contained in the outer vector are each a single row of values.


getColumnDesc

FieldDesc getColumnDesc(int i)
Return a description of the ith table column field


getColumnIndex

int getColumnIndex(java.lang.String name)
Return the table column index for the given column name


getColumnIdentifiers

java.util.Vector getColumnIdentifiers()
Return a vector of column headings for this table.


hasCoordinates

boolean hasCoordinates()
Return true if the table has coordinate columns, such as (ra, dec)


getCoordinates

Coordinates getCoordinates(int rowIndex)
Return a Coordinates object based on the appropriate columns in the given row, or null if there are no coordinates available for the row.


getRowCoordinates

RowCoordinates getRowCoordinates()
Return an object describing the columns that can be used to search this catalog.


getWCSCenter

WorldCoordinates getWCSCenter()
Return the center coordinates for this table from the query arguments, if known, otherwise return the coordinates of the first row, or null if there are no world coordinates available.


getQueryArgs

QueryArgs getQueryArgs()
Return the object representing the arguments to the query that resulted in this table, if known, otherwise null.


setQueryArgs

void setQueryArgs(QueryArgs queryArgs)
Set the object representing the arguments to the query that resulted in this table.


isMore

boolean isMore()
Return true if the result was truncated and more data would have been available


getCatalog

Catalog getCatalog()
Return the catalog used to create this table, or a dummy, generated catalog object, if not known.