Package com.bbn.openmap.layer.util.html

Examples of com.bbn.openmap.layer.util.html.HtmlListElement.addElement()


                + "</H1>\n");
        HtmlListElement dblist = new HtmlListElement();
        for (Iterator dbi = databases.iterator(); dbi.hasNext();) {
            String db = (String) dbi.next();
            String url = request.getContextPath() + "/DescribeVPF/" + db;
            dblist.addElement("<A HREF=\"" + response.encodeURL(url) + "\">"
                    + db + "</A>\r\n");
        }
        dblist.generate(out);
        out.println("</BODY></HTML>\r\n");
    }
View Full Code Here


                + "</H2>");
        String[] coverages = cat.getCoverageNames();
        Arrays.sort(coverages);

        HtmlListElement list = new HtmlListElement();
        list.addElement("Library uses "
                + (cat.isTiledData() ? "tiled" : "untiled") + " data");
        HtmlListElement clist = new HtmlListElement("Coverage names (from "
                + buildURL(request, response, libpath, "cat") + ")");

        list.addElement(clist);
View Full Code Here

        HtmlListElement clist = new HtmlListElement("Coverage names (from "
                + buildURL(request, response, libpath, "cat") + ")");

        list.addElement(clist);
        for (int i = 0; i < coverages.length; i++) {
            clist.addElement("<A HREF=\"#" + libName + "_" + coverages[i]
                    + "\">" + coverages[i] + "</A>");
        }
        list.addElement("Library Header Table: "
                + buildURL(request, response, libpath, "lht"));
        list.addElement("Geographic Reference Table: "
View Full Code Here

        out.println("<H3><A NAME=\"" + libName + "_" + covname + "\">Coverage "
                + buildURL(request, response, pathPrefix, "", covname)
                + " for Library <A HREF=\"#" + libName + "\">" + libName
                + "</A></H3>");
        HtmlListElement list = new HtmlListElement();
        list.addElement("Description: " + cat.getCoverageDescription(covname));
        list.addElement("Topology Level: "
                + cat.getCoverageTopologyLevel(covname));
        String fcsURL = buildURL(request, response, pathPrefix, "fcs?"
                + Data.RowSelectParam + "=" + Data.RowSelectAll, "fcs");
        list.addElement("Feature Class Schema: " + fcsURL);
View Full Code Here

                + buildURL(request, response, pathPrefix, "", covname)
                + " for Library <A HREF=\"#" + libName + "\">" + libName
                + "</A></H3>");
        HtmlListElement list = new HtmlListElement();
        list.addElement("Description: " + cat.getCoverageDescription(covname));
        list.addElement("Topology Level: "
                + cat.getCoverageTopologyLevel(covname));
        String fcsURL = buildURL(request, response, pathPrefix, "fcs?"
                + Data.RowSelectParam + "=" + Data.RowSelectAll, "fcs");
        list.addElement("Feature Class Schema: " + fcsURL);
        CoverageTable ct = cat.getCoverageTable(covname);
View Full Code Here

        list.addElement("Description: " + cat.getCoverageDescription(covname));
        list.addElement("Topology Level: "
                + cat.getCoverageTopologyLevel(covname));
        String fcsURL = buildURL(request, response, pathPrefix, "fcs?"
                + Data.RowSelectParam + "=" + Data.RowSelectAll, "fcs");
        list.addElement("Feature Class Schema: " + fcsURL);
        CoverageTable ct = cat.getCoverageTable(covname);
        // CoverageTable opens alot of files, go through and close
        // them
        for (Iterator i = ct.getFeatureClasses().values().iterator(); i.hasNext();) {
            FeatureClassInfo fci = (FeatureClassInfo) i.next();
View Full Code Here

            fci.close();
        }

        Map ftypeinfo = new TreeMap(ct.getFeatureTypeInfo());
        if (ftypeinfo.size() == 0) {
            list.addElement("No Feature Types in FCA");
        } else {
            HtmlListElement flist = new HtmlListElement("Feature Types (from "
                    + buildURL(request, response, pathPrefix, "fca") + ")");
            list.addElement(flist);
            for (Iterator i = ftypeinfo.values().iterator(); i.hasNext();) {
View Full Code Here

                    tstring = "[unknown] ";
                    suffix = "";
                }
                String url = buildURL(request, response, pathPrefix, name
                        + suffix, name);
                flist.addElement(url + ": " + tstring + desc);
            }
        }
        try {
            HtmlListElement flist = new HtmlListElement("Feature Types (from "
                    + fcsURL + ")");
View Full Code Here

                    } else if (table1.endsWith(".tft")) {
                        type = "text feature";
                    }
                    if (type != null) {
                        generateflist = true;
                        flist.addElement(type
                                + " "
                                + buildURL(request,
                                        response,
                                        pathPrefix,
                                        table1,
View Full Code Here

        // ServletOutputStream sos = response.getOutputStream();
        // sos.write(imageData);

        HtmlListElement list = new HtmlListElement();
        list.addElement("Number Of Primitives: " + si.getNumberOfPrimitives());
        int nodesInTree = si.getNodesInTree();
        list.addElement("Nodes in Tree: " + nodesInTree);
        list.addElement("Bounding Rectangle: (" + si.getBoundingX1() + ", "
                + si.getBoundingY1() + ") - (" + si.getBoundingX2() + ", "
                + si.getBoundingY2() + ")");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.