⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vdtrowmaker.java

📁 openmap java写的开源数字地图程序. 用applet实现,可以像google map 那样放大缩小地图.
💻 JAVA
字号:
// **********************************************************************// <copyright>//  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// </copyright>// **********************************************************************// $Source: /cvs/distapps/openmap/src/vpfservlet/WEB-INF/src/com/bbn/openmap/vpfservlet/VDTRowMaker.java,v $// $Revision: 1.2.2.2 $ $Date: 2005/08/11 21:03:07 $ $Author: dietrick $// **********************************************************************package com.bbn.openmap.vpfservlet;import java.util.Iterator;import java.util.List;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import com.bbn.openmap.layer.util.html.TableRowElement;import com.bbn.openmap.layer.vpf.DcwRecordFile;/** * A RowMaker class for int.vdt and char.vdt tables. It generates a * URL for columns that reference another table. */public class VDTRowMaker extends ReferenceRowMaker {    /** the path to the coverage */    final String basepath;    /** the column with the table name */    final int tableCol;    public VDTRowMaker(HttpServletRequest request,            HttpServletResponse response, String basepath, DcwRecordFile drf) {        super(request, response);        this.basepath = basepath;        tableCol = drf.whatColumn("table");    }    public void addToRow(TableRowElement row, List l) {        int i = 0;        for (Iterator li = l.iterator(); li.hasNext();) {            Object elt = li.next();            if (i == tableCol) {                row.addElement(fileURL(basepath, ((String) elt).toLowerCase()));            } else {                row.addElement(elt.toString());            }            i++;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -