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

📄 esrilinkpolygonrecord.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/openmap/com/bbn/openmap/layer/link/shape/ESRILinkPolygonRecord.java,v $// $RCSfile: ESRILinkPolygonRecord.java,v $// $Revision: 1.3.2.2 $// $Date: 2005/08/09 18:10:46 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.link.shape;import java.io.IOException;import com.bbn.openmap.omGraphics.*;import com.bbn.openmap.layer.link.*;import com.bbn.openmap.layer.shape.*;/** */public class ESRILinkPolygonRecord extends ESRIPolygonRecord implements        ESRILinkRecord {    public ESRILinkPolygonRecord() {        super();    }    public ESRILinkPolygonRecord(byte b[], int off) throws IOException {        super(b, off);    }    /**     * Generates OMGraphics and adds them to the given list.     * <p>     * Copy the poly points array because the OMPoly converts from     * degrees to radians in place, trashing the shape.     *      * @param lgl the graphics response to write the graphic to.     * @param properties the semantic description of how the graphic     *        should be drawn.     */    public void writeLinkGraphics(LinkGraphicList lgl, LinkProperties properties)            throws IOException {        int nPolys = polygons.length;        if (nPolys <= 0)            return;        for (int i = 0; i < nPolys; i++) {            // these points are already in RADIAN lat,lon order!...            lgl.addPoly(((ESRIPoly.ESRIFloatPoly) polygons[i]).getRadians(),                    OMGraphic.RADIANS,                    OMGraphic.LINETYPE_STRAIGHT,                    properties);        }    }}

⌨️ 快捷键说明

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