Package jsky.catalog

Examples of jsky.catalog.Catalog


     * Move the the selected catalog up or down in the tree.
     *
     * @param up true to move up, false for down
     */
    private void _moveNode(boolean up) {
        Catalog selectedNode = getSelectedCatalog();
        if (selectedNode == null) {
            return;
        }

        _rootCatDir.moveCatalog(selectedNode, up);
View Full Code Here


     * Move the the selected catalog all the way up or down in the tree, as far as possible.
     *
     * @param up true to move up, false for down
     */
    private void _moveNodeToEnd(boolean up) {
        Catalog selectedNode = getSelectedCatalog();
        if (selectedNode == null) {
            return;
        }

        _rootCatDir.moveCatalogToEnd(selectedNode, up);
View Full Code Here

     * Open a catalog window for the named catalog, if found.
     *
     * @see CatalogNavigatorOpener
     */
    public void openCatalogWindow(String name) {
        Catalog cat = getCatalogDirectory(false).findCatalog(name);
        if (cat != null) {
            openCatalogWindow(cat);
        }
    }
View Full Code Here

            System.exit(1);
        }
        String catalogName = args[0];
        SkycatConfigFile configFile = SkycatConfigFile.getConfigFile();

        Catalog cat = configFile.getCatalog(catalogName);
        if (cat == null) {
            System.out.println("Can't find entry for catalog: " + catalogName);
            System.exit(1);
        } else {
            System.out.println("Test passed");
View Full Code Here

    /**
     * Return the catalog used to create this table,
     * or a dummy, generated catalog object, if not known.
     */
    public Catalog getCatalog() {
        Catalog catalog = super.getCatalog();
        if (catalog != null)
            return catalog;

        String filename = getFilename();
        if (filename == null)
View Full Code Here

                // Force reload of any catalog subdirectories
                if (reload && _configFile != null) {
                    int n = _configFile.getNumCatalogs();
                    List<Catalog> catList = _configFile.getCatalogs();
                    for (int i = 0; i < n; i++) {
                        Catalog cat = catList.get(i);
                        catList.set(i, cat.reload());
                    }
                }
                break;
            } catch (Exception e) {
                if (url.equals(_defaultURL)) {
View Full Code Here

            // reload only a subdir
            AstroCatConfig config = new AstroCatConfig(getName(), getURL());
            int n = config.getNumCatalogs();
            List<Catalog> catList = config.getCatalogs();
            for (int i = 0; i < n; i++) {
                Catalog cat = catList.get(i);
                catList.set(i, cat.reload());
            }
            return config;
        }
    }
View Full Code Here

     * @param args not used
     */
    public static void main(String[] args) {
        AstroCatConfig configFile = AstroCatConfig.getConfigFile();
        String catalogName = "Guide Star Catalog at ESO";
        Catalog cat = configFile.getCatalog(catalogName);
        if (cat == null) {
            System.out.println("Can't find entry for catalog: " + catalogName);
            System.exit(1);
        } else {
            System.out.println("Test passed");
View Full Code Here

    /**
     * Return the catalog used to create this table,
     * or a dummy, generated catalog object, if not known.
     */
    public Catalog getCatalog() {
        Catalog catalog = super.getCatalog();
        if (catalog != null)
            return catalog;

        // If there is no filename, pick a dummy name
        String filename = getFilename();
View Full Code Here

TOP

Related Classes of jsky.catalog.Catalog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.