|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsky.catalog.skycat.SkycatCatalog
public class SkycatCatalog
Represents a catalog as described in a Skycat style catalog config file. The (keyword: value) pairs in the config file are stored here in a Properties object.
| Field Summary |
|---|
| Fields inherited from interface jsky.catalog.Catalog |
|---|
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER |
| Constructor Summary | |
|---|---|
SkycatCatalog(SkycatConfigEntry entry)
Initialize the catalog from the given catalog configuration entry. |
|
SkycatCatalog(SkycatConfigEntry entry,
HTMLQueryResultHandler handler)
Initialize the catalog from the given catalog configuration entry. |
|
SkycatCatalog(SkycatConfigEntry entry,
SkycatTable table)
Initialize the catalog from the given catalog configuration entry. |
|
SkycatCatalog(SkycatTable table)
Initialize the catalog from the given table. |
|
| Method Summary | |
|---|---|
protected ProgressPanel |
_getProgressPanel(java.lang.String title)
Return a panel for displaying the progress of a query. |
protected void |
_setMaxRows(QueryArgs queryArgs,
SearchCondition[] sc)
Check for a "Max Objects" argument and if found, set queryArgs.maxRows with the value. |
protected void |
_setQueryRegion(QueryArgs queryArgs,
SearchCondition[] sc)
Determine the query region based on the given query arguments |
java.lang.Object |
clone()
Implementation of the clone method (makes a shallow copy). |
SkycatConfigEntry |
getConfigEntry()
Return the object used to manage the configuration info for this catalog |
java.lang.String |
getDescription()
Return a description of the catalog (same as name here) |
java.net.URL |
getDocURL()
Return a URL pointing to documentation for the catalog, or null if not available |
double |
getEquinox()
Return the value of the "equinox" property, if defined, otherwise 2000. |
java.lang.String |
getId()
Return the id of the catalog (same as name here) |
java.lang.String |
getName()
Return the name of the catalog |
int |
getNumParams()
If this catalog can be querried, return the number of query parameters that it accepts |
int |
getNumSymbols()
Return the number of plot symbol definitions associated with this catalog. |
FieldDesc |
getParamDesc(int i)
Return a description of the ith query parameter |
FieldDesc |
getParamDesc(java.lang.String name)
Return a description of the named query parameter |
CatalogDirectory |
getParent()
Return a reference to the parent catalog directory, or null if not known. |
Catalog[] |
getPath()
Return an array of Catalog or CatalogDirectory objects representing the path from the root catalog directory to this catalog. |
int |
getQueryCount()
Returns the number of querries made so far |
java.lang.String |
getShortName()
Return a short name or alias for the catalog |
TablePlotSymbol |
getSymbolDesc(int i)
Return the ith plot symbol description |
TablePlotSymbol[] |
getSymbols()
Return the array of symbol descriptions |
SkycatTable |
getTable()
Return the table data (for local catalogs) or null, if not known. |
java.lang.String |
getTitle()
Return the title of the catalog (same as name here) |
java.lang.String |
getType()
Return the catalog type (normally one of the Catalog constants: CATALOG, ARCHIVE, DIRECTORY, LOCAL, IMAGE_SERVER) |
boolean |
isImageServer()
Return true if this object represents an image server. |
boolean |
isLocal()
Return true if this is a local catalog, and false if it requires network access or if a query could hang. |
boolean |
isPix()
Return true if the catalog has X and Y columns (assumed to be image pixel coordinates) |
boolean |
isSymbolsEdited()
Return true if the user edited the plot symbol definitions otherwise false |
boolean |
isWCS()
Return true if the catalog has RA and DEC coordinate columns |
static void |
main(java.lang.String[] args)
Test cases |
QueryResult |
query(QueryArgs queryArgs)
Query the catalog using the given argument and return the result. |
void |
saveSymbolConfig()
Save the catalog symbol information to disk with the user's changes |
void |
setConfigEntry(SkycatConfigEntry entry)
Set the object used to manage the configuration info for this catalog |
void |
setHTMLQueryResultHandler(HTMLQueryResultHandler handler)
Optional handler, used to report HTML format errors from HTTP servers |
void |
setName(java.lang.String name)
Set the name of the catalog |
void |
setParent(CatalogDirectory catDir)
Set the parent catalog directory |
void |
setRegionArgs(QueryArgs queryArgs,
CoordinateRadius region)
Given a description of a region of the sky (center point and radius range), and the current query argument settings, set the values of the corresponding query parameters. |
void |
setSymbols(TablePlotSymbol[] symbols)
Set the array of catalog table plot symbol definitions for use with this catalog |
void |
setSymbolsEdited(boolean edited)
Set to true if the user edited the plot symbol definitions (default: false) |
java.lang.String |
toString()
Return the name of the catalog |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SkycatCatalog(SkycatConfigEntry entry)
entry - the catalog configuration file entry describing the catalog
public SkycatCatalog(SkycatConfigEntry entry,
SkycatTable table)
entry - the catalog configuration file entry describing the catalogtable - the data for the catalog (optional, only for local catalgs)public SkycatCatalog(SkycatTable table)
table - the data for the catalog (optional, only for local catalgs)
public SkycatCatalog(SkycatConfigEntry entry,
HTMLQueryResultHandler handler)
entry - the catalog configuration file entry describing the cataloghandler - used to report HTML errors from the HTTP server| Method Detail |
|---|
public java.lang.Object clone()
clone in interface Catalogclone in class java.lang.Objectpublic void setName(java.lang.String name)
setName in interface Catalogpublic java.lang.String getName()
getName in interface Catalogpublic SkycatConfigEntry getConfigEntry()
public int getQueryCount()
public void setConfigEntry(SkycatConfigEntry entry)
public SkycatTable getTable()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getId()
getId in interface Catalogpublic java.lang.String getTitle()
getTitle in interface Catalogpublic java.lang.String getDescription()
getDescription in interface Catalogpublic java.net.URL getDocURL()
getDocURL in interface Catalogpublic int getNumParams()
getNumParams in interface Catalogpublic FieldDesc getParamDesc(int i)
getParamDesc in interface Catalogpublic FieldDesc getParamDesc(java.lang.String name)
getParamDesc in interface Catalogpublic int getNumSymbols()
getNumSymbols in interface PlotableCatalogpublic TablePlotSymbol getSymbolDesc(int i)
getSymbolDesc in interface PlotableCatalogpublic TablePlotSymbol[] getSymbols()
getSymbols in interface PlotableCatalogpublic void setSymbols(TablePlotSymbol[] symbols)
setSymbols in interface PlotableCatalogpublic void setSymbolsEdited(boolean edited)
setSymbolsEdited in interface PlotableCatalogpublic boolean isSymbolsEdited()
isSymbolsEdited in interface PlotableCatalogpublic void saveSymbolConfig()
saveSymbolConfig in interface PlotableCatalogpublic java.lang.String getShortName()
public boolean isWCS()
public double getEquinox()
public boolean isPix()
public boolean isLocal()
isLocal in interface Catalogpublic boolean isImageServer()
isImageServer in interface Catalogpublic java.lang.String getType()
getType in interface Catalogpublic void setParent(CatalogDirectory catDir)
setParent in interface Catalogpublic CatalogDirectory getParent()
getParent in interface Catalogpublic Catalog[] getPath()
getPath in interface Catalog
public QueryResult query(QueryArgs queryArgs)
throws java.io.IOException
query in interface CatalogqueryArgs - An object describing the query arguments.
java.io.IOExceptionprotected ProgressPanel _getProgressPanel(java.lang.String title)
protected void _setQueryRegion(QueryArgs queryArgs,
SearchCondition[] sc)
throws java.io.IOException
java.io.IOException
protected void _setMaxRows(QueryArgs queryArgs,
SearchCondition[] sc)
public void setHTMLQueryResultHandler(HTMLQueryResultHandler handler)
public void setRegionArgs(QueryArgs queryArgs,
CoordinateRadius region)
setRegionArgs in interface CatalogqueryArgs - (in/out) describes the query argumentsregion - (in) describes the query region (center and radius range)public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||