Package org.astrogrid.samp

Examples of org.astrogrid.samp.Metadata


        makeFrameLayout(showNavigator, imageFileOrUrl);


        if (useSamp || usePlastic) {
            Metadata meta = createApplicationMetadata();
            if (useSamp) {
                initSamp(meta);
            }
            if (usePlastic) {
                initPlastic(meta);
View Full Code Here


     * This is used by SAMP or PLASTIC.
     *
     * @return metadata describing this application
     */
    protected Metadata createApplicationMetadata() {
        Metadata meta = new Metadata();
        meta.setName("JSkyCat");
        meta.setDescriptionText("JSkyCat - Astronomical Image and Catalog Browser");
        meta.put("author.name", "Allan Brighton");
        meta.put("author.mail", "Allan.Brighton@t-online.de");

        // use the built-in web server to host the icon, or if there is an error, use a default URL
        String defUrl = "http://java.sun.com/developer/techDocs/hi/repository/graphicsRepository/toolbarButtonGraphics/development/WebComponent24.gif";
        try {
            JSkyServer server = JSkyServer.getInstance();
            URL packageUrl = server.getJSkyPackageUrl();
            URL logoUrl = new URL(packageUrl, "images/ImageDisplay24.gif");
            meta.setIconUrl(server.isFound(logoUrl)
                    ? logoUrl.toString()
                    : defUrl);
        } catch (IOException e) {
            e.printStackTrace();
            meta.setIconUrl(defUrl);
        }
        return meta;
    }
View Full Code Here

TOP

Related Classes of org.astrogrid.samp.Metadata

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.