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

📄 geosegment.java

📁 OpenMap是一个基于JavaBeansTM的开发工具包。利用OpenMap你就能够快速构建用于访问legacy数据库的应用程序与applets。OpenMap提供了允许用户查看和操作地理空间信息的
💻 JAVA
字号:
/* *                     RESTRICTED RIGHTS LEGEND * *                        BBNT Solutions LLC *                        A Verizon Company *                        10 Moulton Street *                       Cambridge, MA 02138 *                         (617) 873-3000 * * Copyright BBNT Solutions LLC 2005 All Rights Reserved *  */package com.bbn.openmap.geo;/** * A geographic (great circle) line segment. Used in Path Iterators. *  * @author mthome@bbn.com */public interface GeoSegment extends GeoExtent {    /**     * @return the current segment as a two-element array of Geo The first point     *         is the "current point" and the second is the next. If there isn't     *         another point available, will throw an indexOutOfBounds     *         exception.     */    Geo[] getSeg();    /**     * @return the current segment as a float[]. The first point is the "current     *         point" and the second is the next. If there isn't another point     *         available, will throw an indexOutOfBounds exception.     */    float[] getSegArray();    public static class Impl implements GeoSegment {        protected Geo[] seg;        protected Object id = GeoSegment.Impl.this;        /**         * Create a GeoSegment.Impl with an array of 2 Geos.         *          * @param segment Geo[2].         */        public Impl(Geo[] segment) {            seg = segment;        }        public Geo[] getSeg() {            return seg;        }        public float[] getSegArray() {            return new float[] { (float) seg[0].getLatitude(),                    (float) seg[0].getLongitude(),                    (float) seg[1].getLatitude(), (float) seg[1].getLongitude() };        }        public BoundingCircle getBoundingCircle() {            return new BoundingCircle.Impl(seg);        }        /**         * @deprecated use getID() instead.         */        public void setSegId(Object segId) {            id = segId;        }        /**         * @deprecated use getID() instead.         */        public Object getSegId() {            return id;        }        public void setID(Object pid) {            id = pid;        }        public Object getID() {            return id;        }    }}

⌨️ 快捷键说明

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