Package jsky.catalog

Examples of jsky.catalog.PlotableCatalog


                    } else {
                        _catalogs.set(i, cat);

                        // copy plot symbol info, if defined
                        if (cat instanceof PlotableCatalog) {
                            PlotableCatalog pc = (PlotableCatalog) c;
                            if (pc.getNumSymbols() != 0) {
                                PlotableCatalog pcat = (PlotableCatalog) cat;
                                pcat.setSymbols(pc.getSymbols());
                                pcat.setSymbolsEdited(true);
                            }
                        }
                    }
                }
            }
View Full Code Here


        xml.startElement(NAMESPACE, LOCAL_NAME, "catalog", attrs);

        if (catalog instanceof PlotableCatalog) {
            // Include plot symbol information for catalogs that have it
            PlotableCatalog pcat = (PlotableCatalog) catalog;
            if (pcat.isSymbolsEdited()) {
                _saveSymbols(xml, pcat.getSymbols());
            }
        }

        xml.endElement(NAMESPACE, LOCAL_NAME, "catalog");
    }
View Full Code Here

        // replot the table with the new settings
        _plotter.unplot(_table);
        _plotter.plot(_table);

        // update the catalog and config file with the new information
        PlotableCatalog cat = (PlotableCatalog) _table.getCatalog();
        if (cat != null) {
            // save changes
            cat.setSymbols(_symbols);
            cat.setSymbolsEdited(true);

            // Add the catalog to the top level catalog directory and then call save on it
            CatalogDirectory rootDir = null, catDir = cat.getParent();
            if (catDir != null) {
                rootDir = (CatalogDirectory) catDir.getRoot();
            }
            if (rootDir != null) {
                Catalog existingCat = rootDir.getCatalog(cat.getName());
                if (existingCat != null && existingCat != cat) {
                    rootDir.removeCatalog(existingCat);
                }
                rootDir.addCatalog(1, cat);
                rootDir.save();
View Full Code Here

TOP

Related Classes of jsky.catalog.PlotableCatalog

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.