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

📄 esripolygonm.java

📁 OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你就能够快速构建用于访问legacy数据库的应用程序与applets。OpenMap提供了允许用户查看和操作地理空间信息的
💻 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/dataAccess/shape/EsriPolygonM.java,v $// $RCSfile: EsriPolygonM.java,v $// $Revision: 1.1.4.3 $// $Date: 2006/09/05 14:19:18 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.dataAccess.shape;import com.bbn.openmap.omGraphics.DrawingAttributes;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMPoly;/** * An extension to OMPoly for polygons that typecasts a specific Esri graphic * type. Used to ensure that all OMGraphics added to a EsriGraphicList is of the * same type. *  * @author Doug Van Auken */public class EsriPolygonM extends EsriPolygon implements Cloneable, EsriGraphic {    protected float[] extents;    public EsriPolygonM(float[] points, int units, int lineType) {        super(points, units, lineType);    }    public static EsriPolygon convert(OMPoly ompoly) {        if (ompoly.getRenderType() == RENDERTYPE_LATLON) {            float[] rawLL = ompoly.getLatLonArray();            float[] degreePoints = new float[rawLL.length];            System.arraycopy(rawLL, 0, degreePoints, 0, rawLL.length);            EsriPolygonM ePoly = new EsriPolygonM(degreePoints, OMGraphic.RADIANS, ompoly.getLineType());            DrawingAttributes attributes = new DrawingAttributes();            attributes.setFrom(ompoly);            attributes.setTo(ePoly);            ePoly.setAttributes(ompoly.getAttributes());            ePoly.setIsPolygon(true);            return ePoly;        } else {            return null;        }    }    public int getType() {        return SHAPE_TYPE_POLYGONM;    }    public EsriPolygon shallowCopyPolygon() {        return (EsriPolygonM) clone();    }}

⌨️ 快捷键说明

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