|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CatalogDirectory
This defines the interface for a catalog directory, allowing catalogs to be organized in a hierarchy.
Field Summary |
---|
Fields inherited from interface jsky.catalog.Catalog |
---|
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER |
Method Summary | |
---|---|
void |
addCatalog(Catalog cat)
Add the given catalog to the catalog list. |
Catalog |
getCatalog(int i)
Return the ith catalog in the directory |
Catalog |
getCatalog(java.lang.String catalogName)
Return the named catalog, if found in this directory |
TableQueryResult |
getCatalogList()
Return a memory catalog describing the list of catalogs in the directory |
java.util.List |
getNameServers()
Return a list of name servers (Catalogs with type equal to "namesvr") to use to resolve astronomical object names. |
int |
getNumCatalogs()
Return the number of catalogs in this directory |
Catalog[] |
getPath(Catalog cat)
Return an array of catalogs describing the path to the given catalog or catalog directory. |
int |
indexOf(Catalog cat)
Return the index of the given catalog in the directory |
CatalogDirectory |
loadSubDir(java.net.URL url)
Attempt to read a catalog subdirectory from the given URL and insert the object for it in the catalog tree. |
void |
moveCatalog(Catalog cat,
boolean up)
Move the the given catalog up or down in the list. |
void |
moveCatalogToEnd(Catalog cat,
boolean up)
Move the the given catalog all the way up or down in the list, as far as possible. |
CatalogDirectory |
reload()
Reload the catalog directory and return the new (or existing) object for it. |
void |
removeCatalog(Catalog cat)
Remove the given catalog from the catalog list. |
void |
replaceCatalog(Catalog oldCat,
Catalog newCat)
Replace the given old catalog with the given new catalog in the catalog list. |
void |
save()
Save the contents of this catalog directory to make it permanent (for example, in a config file under ~/.jsky/...). |
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.tree.TreeModel |
---|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
Method Detail |
---|
int getNumCatalogs()
Catalog getCatalog(int i)
Catalog getCatalog(java.lang.String catalogName)
int indexOf(Catalog cat)
TableQueryResult getCatalogList()
Catalog[] getPath(Catalog cat)
void addCatalog(Catalog cat)
void removeCatalog(Catalog cat)
void replaceCatalog(Catalog oldCat, Catalog newCat)
void moveCatalog(Catalog cat, boolean up)
void moveCatalogToEnd(Catalog cat, boolean up)
void save()
CatalogDirectory reload()
CatalogDirectory loadSubDir(java.net.URL url)
java.lang.RuntimeException
- if the catalog directory could not be createdjava.util.List getNameServers()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |