|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.catalog.skycat.SkycatConfigEntry
public class SkycatConfigEntry
Manages the configuration information for a Skycat style catalog.
Field Summary | |
---|---|
static java.lang.String |
B1950
Alternative equinox. |
static java.lang.String |
DEC
parameter: DEC coordinate |
static java.lang.String |
EQUINOX
parameter: equinox of RA,Dec |
static java.lang.String |
HEIGHT
parameter: height of query area (in arcmin or pixels) |
static java.lang.String |
J2000
Default equinox. |
static java.lang.String |
MAX_OBJECTS
parameter: max number of objects to return from a query. |
static java.lang.String |
MAX_RADIUS
parameter: maximum radius for center coordinates in arcmin (from RA,Dec), or pixels (from X,Y). |
static java.lang.String |
MIN_RADIUS
parameter: minimum radius for center coordinates in arcmin (from RA,Dec), or pixels (from X,Y). |
static java.lang.String |
NAME_SERVER
parameter: name server to use to resolve an object (star, galaxy, ...) name. |
static java.lang.String |
OBJECT
parameter: object (star, galaxy,...) name (to be resolved by a name server) |
static java.lang.String |
RA
parameter: RA coordinate |
static java.lang.String |
WIDTH
parameter: width of query area (in arcmin or pixels) |
static java.lang.String |
X
parameter: X coordinate (image coords) |
static java.lang.String |
Y
parameter: Y coordinate (image coords) |
Constructor Summary | |
---|---|
SkycatConfigEntry(java.util.Properties properties)
Initialize the config entry from the given catalog configuration properties. |
|
SkycatConfigEntry(SkycatConfigFile configFile,
java.util.Properties properties)
Initialize the config entry from the given catalog configuration properties. |
Method Summary | |
---|---|
protected void |
checkSearchCols(java.util.Vector params)
Check for additional search parameters defined in the "search_cols" property and add them to the given parameter description vector. |
protected void |
determineSearchParameters()
Skycat catalogs normally default to the following parameters: objectName, nameServer, ra, dec, minRadius, maxRadius, maxObjects. |
CatalogDirectory |
getConfigFile()
Return a reference to the SkycatConfigFile object containing this catalog, or null if not known. |
java.net.URL |
getDocURL()
Return a URL pointing to documentation for the catalog, or null if not available |
static NameValue[] |
getEquinoxOptions()
|
java.lang.String |
getLongName()
Return the long name of the catalog |
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. |
int |
getNumURLs()
Return the number of query URLs defined |
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, if found, otherwise null. |
java.util.Properties |
getProperties()
Return the fields of this catalog entry as a property table. |
java.lang.String |
getProperty(java.lang.String key)
Return the value of the named property as a String |
RowCoordinates |
getRowCoordinates()
Return the object storing the column indexes where RA,Dec or X,Y are found |
java.lang.String |
getServType()
Return the value from the serv_type field. |
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 |
java.lang.String |
getURL(int n)
Return the nth query URL |
boolean |
isSymbolsEdited()
Return true if the user edited the plot symbol definitions otherwise false |
protected void |
parseProperties()
Parse the catalog properties and set the values for the member variables as needed. |
void |
setConfigFile(CatalogDirectory configFile)
Return a reference to the SkycatConfigFile object containing this catalog, or null if not known. |
void |
setName(java.lang.String name)
Set the name of the catalog |
void |
setParamDesc(FieldDescAdapter[] paramDesc)
Set the array describing the query parameters. |
void |
setServType(java.lang.String servType)
Return the value from the serv_type field. |
void |
setSymbols(TablePlotSymbol[] symbols)
Set the array of catalog table plot symbol definitions |
void |
setSymbolsEdited(boolean edited)
Set to true if the user edited the plot symbol definitions (default: false) |
void |
setURLs(java.lang.String[] urls)
Return the nth query URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String OBJECT
public static final java.lang.String NAME_SERVER
public static final java.lang.String RA
public static final java.lang.String DEC
public static final java.lang.String EQUINOX
public static final java.lang.String X
public static final java.lang.String Y
public static final java.lang.String MIN_RADIUS
public static final java.lang.String MAX_RADIUS
public static final java.lang.String MAX_OBJECTS
public static final java.lang.String WIDTH
public static final java.lang.String HEIGHT
public static final java.lang.String J2000
public static final java.lang.String B1950
Constructor Detail |
---|
public SkycatConfigEntry(SkycatConfigFile configFile, java.util.Properties properties)
configFile
- a reference to the SkycatConfigFile object containing
this entry, if known (used to search for a name server entry)properties
- contains (keyword : value) pairs, such as those
found in a (skycat style) catalog configuration file,
describing the catalog features.public SkycatConfigEntry(java.util.Properties properties)
properties
- contains (keyword : value) pairs, such as those
found in a (skycat style) catalog configuration file,
describing the catalog features.Method Detail |
---|
public java.util.Properties getProperties()
public CatalogDirectory getConfigFile()
public void setConfigFile(CatalogDirectory configFile)
protected void parseProperties()
protected void determineSearchParameters()
Parse the search column information from the catalog config entry, if found, and set the paramDesc member variable. The format of the search_cols value is: name minLabel MaxLabel : ..., (in Tcl list format).
protected void checkSearchCols(java.util.Vector params)
public static NameValue[] getEquinoxOptions()
public java.lang.String getProperty(java.lang.String key)
public void setName(java.lang.String name)
public java.lang.String getName()
public java.net.URL getDocURL()
public java.lang.String getServType()
public void setServType(java.lang.String servType)
public int getNumParams()
public FieldDesc getParamDesc(int i)
public FieldDesc getParamDesc(java.lang.String name)
public void setParamDesc(FieldDescAdapter[] paramDesc)
public java.lang.String getShortName()
public java.lang.String getLongName()
public int getNumURLs()
public java.lang.String getURL(int n)
public void setURLs(java.lang.String[] urls)
public RowCoordinates getRowCoordinates()
public int getNumSymbols()
public TablePlotSymbol getSymbolDesc(int i)
public TablePlotSymbol[] getSymbols()
public void setSymbols(TablePlotSymbol[] symbols)
public void setSymbolsEdited(boolean edited)
public boolean isSymbolsEdited()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |