亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ompoly.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
// **********************************************************************//// <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/omGraphics/OMPoly.java,v $// $RCSfile: OMPoly.java,v $// $Revision: 1.10.2.7 $// $Date: 2005/08/11 21:03:22 $// $Author: dietrick $//// **********************************************************************package com.bbn.openmap.omGraphics;import java.awt.BasicStroke;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.Paint;import java.awt.Point;import java.awt.geom.GeneralPath;import java.io.Serializable;import java.util.ArrayList;import com.bbn.openmap.proj.DrawUtil;import com.bbn.openmap.proj.ProjMath;import com.bbn.openmap.proj.Projection;import com.bbn.openmap.util.Debug;/** * Graphic object that represents a polygon or polyline * (multi-line-segment-object). * <p> *  * The differentiator between polygons and polylines is the fill * color. If the fillPaint is equal to OMColor.clear, then the poly * will be considered a polyline. There are methods to override this * in the OMPoly class, but they do play around with the fillPaint, * depending on the order in which the methods are called. If you know * it's a polyline, call setIsPolygon(false) if you think that the * fillPaint could be set to anything other than the default, * OMColor.clear. * <P> *  * All of the OMGraphics are moving to having their internal * representation as java.awt.Shape objects. Unfortunately, this has * the side effect of slowing OMPolys down, because the way that the * projection classes handle transformations cause more objects to be * allocated and more loops to be run through. So, by default, the * OMPoly does NOT use Shape objects internally, to keep layers that * throw down many, many polys running quickly. If you want to do some * spatial analysis on an OMPoly, call setDoShapes(true) on it, then * generate(Projection), and then call getShapes() to get the * java.awt.Shape objects for the poly. You can then run the different * Shape spatial analysis methods on the Shape objects. *  * <h3>NOTES:</h3> * <ul> * <li>See the <a * href="../../../../com.bbn.openmap.proj.Projection.html#poly_restrictions"> * RESTRICTIONS </a> on Lat/Lon polygons/polylines. Not following the * guidelines listed may result in ambiguous/undefined shapes! Similar * assumptions apply to the other vector graphics that we define: * circles, ellipses, rects, lines. * <li>LatLon OMPolys store latlon coordinates internally in radian * format for efficiency in projecting. Subclasses should follow this * model. * <li>Holes in the poly are not supported. * <p> * </ul> * <h3>TODO:</h3> * <ul> * <li>Polar filled-polygon correction for Cylindrical projections * (like OMCircle). * </ul> *  * @see OMCircle * @see OMRect * @see OMLine */public class OMPoly extends OMAbstractLine implements Serializable {    /**     * Translation offsets. For RENDERTYPE_OFFSET, the xy points are     * relative to the position of fixed latlon point.     */    public final static int COORDMODE_ORIGIN = 0;    /**     * Delta offsets. For RENDERTYPE_OFFSET, each xy point in the     * array is relative to the previous point, and the first point is     * relative to the fixed latlon point.     */    public final static int COORDMODE_PREVIOUS = 1;    /**     * Radians or decimal degrees. After construction and conversion,     * this should always be radians.     */    protected int units = -1;// this should be set correctly at    // construction    /**     * For RENDERTYPE_OFFSET, the latitude of the starting point of     * the poly. Stored as radians!     */    protected float lat = 0.0f;    /**     * For RENDERTYPE_OFFSET, the longitude of the starting point of     * the poly. Stored as radians!     */    protected float lon = 0.0f;    /**     * For RENDERTYPE_OFFSET, type of offset.     *      * @see #COORDMODE_ORIGIN     * @see #COORDMODE_PREVIOUS     */    protected int coordMode = COORDMODE_ORIGIN;    /**     * The x array of ints, representing pixels, used for x/y or     * offset polys.     */    protected int[] xs = null;    /**     * The y array of ints, representing pixels, used for x/y or     * offset polys.     */    protected int[] ys = null;    /**     * Poly is a polygon or a polyline. This is true if the fillColor     * is not clear, false if it is.     */    protected boolean isPolygon = false;    /** raw float lats and lons stored internally in radians. */    protected float[] rawllpts = null;    /**     * Flag for telling the OMPoly to use the Shape objects to     * represent itself internally. See intro for more info.     */    protected boolean doShapes = false;    /**     * Construct a default OMPoly.     */    public OMPoly() {        super(RENDERTYPE_UNKNOWN, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);    }    /**     * Create an OMPoly from a list of float lat/lon pairs.     * <p>     * NOTES:     * <ul>     * <li>llPoints array is converted into radians IN PLACE for more     * efficient handling internally if it's not already in radians!     * For even better performance, you should send us an array     * already in radians format!     * <li>If you want the poly to be connected (as a polygon), you     * need to ensure that the first and last coordinate pairs are the     * same.     * </ul>     *      * @param llPoints array of lat/lon points, arranged lat, lon,     *        lat, lon, etc.     * @param units radians or decimal degrees. Use OMGraphic.RADIANS     *        or OMGraphic.DECIMAL_DEGREES     * @param lType line type, from a list defined in OMGraphic.     */    public OMPoly(float[] llPoints, int units, int lType) {        this(llPoints, units, lType, -1);    }    /**     * Create an OMPoly from a list of float lat/lon pairs.     * <p>     * NOTES:     * <ul>     * <li>llPoints array is converted into radians IN PLACE for more     * efficient handling internally if it's not already in radians!     * For even better performance, you should send us an array     * already in radians format!     * <li>If you want the poly to be connected (as a polygon), you     * need to ensure that the first and last coordinate pairs are the     * same.     * </ul>     *      * @param llPoints array of lat/lon points, arranged lat, lon,     *        lat, lon, etc.     * @param units radians or decimal degrees. Use OMGraphic.RADIANS     *        or OMGraphic.DECIMAL_DEGREES     * @param lType line type, from a list defined in OMGraphic.     * @param nsegs number of segment points (only for     *        LINETYPE_GREATCIRCLE or LINETYPE_RHUMB line types, and     *        if &lt; 1, this value is generated internally)     */    public OMPoly(float[] llPoints, int units, int lType, int nsegs) {        super(RENDERTYPE_LATLON, lType, DECLUTTERTYPE_NONE);        setLocation(llPoints, units);        this.nsegs = nsegs;    }    /**     * Create an OMPoly from a list of xy pairs. If you want the poly     * to be connected, you need to ensure that the first and last     * coordinate pairs are the same.     *      * @param xypoints array of x/y points, arranged x, y, x, y, etc.     */    public OMPoly(int[] xypoints) {        super(RENDERTYPE_XY, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setLocation(xypoints);    }    /**     * Create an x/y OMPoly. If you want the poly to be connected, you     * need to ensure that the first and last coordinate pairs are the     * same.     *      * @param xPoints int[] of x coordinates     * @param yPoints int[] of y coordinates     */    public OMPoly(int[] xPoints, int[] yPoints) {        super(RENDERTYPE_XY, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setLocation(xPoints, yPoints);    }    /**     * Create an x/y OMPoly at an offset from lat/lon. If you want the     * poly to be connected, you need to ensure that the first and     * last coordinate pairs are the same.     *      * @param latPoint latitude in decimal degrees     * @param lonPoint longitude in decimal degrees     * @param xypoints int[] of x,y pairs     * @param cMode offset coordinate mode     */    public OMPoly(float latPoint, float lonPoint, int[] xypoints, int cMode) {        super(RENDERTYPE_OFFSET, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setLocation(latPoint, lonPoint, OMGraphic.DECIMAL_DEGREES, xypoints);        coordMode = cMode;    }    /**     * Create an x/y OMPoly at an offset from lat/lon. If you want the     * poly to be connected, you need to ensure that the first and     * last coordinate pairs are the same.     *      * @param latPoint latitude in decimal degrees     * @param lonPoint longitude in decimal degrees     * @param xPoints int[] of x coordinates     * @param yPoints int[] of y coordinates     * @param cMode offset coordinate mode     */    public OMPoly(float latPoint, float lonPoint, int[] xPoints, int[] yPoints,            int cMode) {        super(RENDERTYPE_OFFSET, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setLocation(latPoint,                lonPoint,                OMGraphic.DECIMAL_DEGREES,                xPoints,                yPoints);        coordMode = cMode;    }    /**     * Set an OMPoly from a list of float lat/lon pairs.     * <p>     * NOTES:     * <ul>     * <li>llPoints array is converted into radians IN PLACE for more     * efficient handling internally if it's not already in radians!     * If you don't want the array to be changed, send in a copy.     * <li>If you want the poly to be connected (as a polygon), you     * need to ensure that the first and last coordinate pairs are the     * same.     * </ul>     * This is for RENDERTYPE_LATLON polys.     *      * @param llPoints array of lat/lon points, arranged lat, lon,     *        lat, lon, etc.     * @param units radians or decimal degrees. Use OMGraphic.RADIANS     *        or OMGraphic.DECIMAL_DEGREES     */    public void setLocation(float[] llPoints, int units) {        this.units = OMGraphic.RADIANS;        if (units == OMGraphic.DECIMAL_DEGREES) {            ProjMath.arrayDegToRad(llPoints);        }        rawllpts = llPoints;        setNeedToRegenerate(true);        setRenderType(RENDERTYPE_LATLON);    }    /**     * Set an OMPoly from a list of xy pixel pairs. If you want the     * poly to be connected, you need to ensure that the first and     * last coordinate pairs are the same. This is for RENDERTYPE_XY     * polys.     *      * @param xypoints array of x/y points, arranged x, y, x, y, etc.     */    public void setLocation(int[] xypoints) {        int end = xypoints.length >> 1;        xs = new int[end];        ys = new int[end];        for (int i = 0, j = 0; i < end; i++, j += 2) {            xs[i] = xypoints[j];            ys[i] = xypoints[j + 1];        }        setNeedToRegenerate(true);        setRenderType(RENDERTYPE_XY);    }    /**     * Set an OMPoly from a x/y coordinates. If you want the poly to     * be connected, you need to ensure that the first and last

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一区二区在线播放| 中文字幕一区二区三区精华液| 色欲综合视频天天天| 国产精品99久| 成人性色生活片免费看爆迷你毛片| 精品亚洲国内自在自线福利| 蜜臀av国产精品久久久久| 日韩国产欧美一区二区三区| 日韩国产在线观看一区| 午夜一区二区三区在线观看| 夜夜亚洲天天久久| 丝袜脚交一区二区| 老司机一区二区| 国产精品原创巨作av| 国产·精品毛片| 91国在线观看| 91精品国产入口| 久久久久久久久岛国免费| 国产精品无人区| 亚洲国产成人av好男人在线观看| 日欧美一区二区| 韩国在线一区二区| 91在线无精精品入口| 欧美午夜精品免费| 日韩美女天天操| 1024精品合集| 青青草97国产精品免费观看| 国精产品一区一区三区mba桃花| 成人一区二区在线观看| 欧美色爱综合网| 久久一日本道色综合| 亚洲欧美日韩在线| 免费日本视频一区| 波多野结衣在线一区| 欧美日韩国产高清一区| 久久精品一区二区三区不卡牛牛| 亚洲视频一区在线| 九色|91porny| 欧美伊人久久久久久久久影院| 欧美一区二区美女| 亚洲欧洲国产日本综合| 日韩和欧美一区二区| 不卡视频在线观看| 欧美成人综合网站| 亚洲免费视频成人| 国产呦萝稀缺另类资源| 欧美影院精品一区| 中文字幕成人av| 蜜桃视频在线观看一区| 色婷婷激情综合| 国产免费成人在线视频| 日韩高清不卡一区二区三区| 一本色道久久综合亚洲精品按摩| 精品久久久久久久久久久久包黑料| 亚洲嫩草精品久久| 国产91精品久久久久久久网曝门| 欧美久久高跟鞋激| 亚洲免费视频中文字幕| 成人精品小蝌蚪| 精品成人一区二区三区四区| 亚洲第一福利一区| 日本久久一区二区三区| 日韩理论片网站| 国产馆精品极品| 久久无码av三级| 九九久久精品视频| 精品久久国产老人久久综合| 免费高清在线一区| 91精品久久久久久久91蜜桃| 亚瑟在线精品视频| 欧美日本一道本| 午夜精品影院在线观看| 欧美日韩国产bt| 天天射综合影视| 6080日韩午夜伦伦午夜伦| 亚洲成人激情社区| 在线成人免费观看| 美女mm1313爽爽久久久蜜臀| 欧美成人一区二区三区在线观看| 看国产成人h片视频| 精品国产凹凸成av人导航| 精品在线观看视频| 国产亚洲精品免费| 不卡的av电影在线观看| 亚洲美女免费视频| 欧美视频在线观看一区| 视频一区二区中文字幕| 日韩欧美中文字幕制服| 精品一二三四区| 国产精品色婷婷久久58| 99久久精品免费看国产免费软件| 亚洲欧美综合网| 欧美日韩一本到| 麻豆国产精品视频| 欧美极品少妇xxxxⅹ高跟鞋| voyeur盗摄精品| 亚洲一二三区在线观看| 欧美刺激午夜性久久久久久久| 国产精品69毛片高清亚洲| 日韩美女啊v在线免费观看| 欧美精品v日韩精品v韩国精品v| 奇米精品一区二区三区在线观看| 久久久久久夜精品精品免费| 99精品偷自拍| 亚洲一区二区三区激情| 精品国产乱码久久久久久夜甘婷婷| 国产成人在线色| 午夜久久久久久久久| 久久精品日产第一区二区三区高清版 | 美国毛片一区二区三区| 国产婷婷一区二区| 欧美视频中文字幕| 成人精品亚洲人成在线| 奇米综合一区二区三区精品视频| 国产清纯在线一区二区www| 91国产福利在线| 紧缚奴在线一区二区三区| 一区二区三区在线视频观看| 日韩欧美国产1| 欧美在线一二三| 粉嫩av一区二区三区在线播放| 午夜日韩在线电影| 亚洲欧美激情插| 国产蜜臀av在线一区二区三区| 欧美精品在线视频| www.亚洲色图| 国产成人综合在线观看| 日本不卡视频在线| 亚洲丝袜另类动漫二区| 欧美高清在线一区二区| 欧美zozo另类异族| 在线播放一区二区三区| 91久久奴性调教| 97se亚洲国产综合自在线 | 成人动漫中文字幕| 激情成人综合网| 五月综合激情网| 亚洲一区免费在线观看| 国产精品沙发午睡系列990531| 精品国产免费人成在线观看| 欧美一区二区在线看| 欧美精品丝袜久久久中文字幕| 91国内精品野花午夜精品| 成人av网站免费| 成人av在线观| a级高清视频欧美日韩| 国产成人在线视频免费播放| 国产精品亚洲午夜一区二区三区 | 五月天激情综合网| 夜夜嗨av一区二区三区中文字幕| 日韩码欧中文字| 亚洲精品成人悠悠色影视| 亚洲精选免费视频| 亚洲综合色网站| 午夜精品一区二区三区三上悠亚| 亚洲免费电影在线| 一片黄亚洲嫩模| 午夜国产精品一区| 毛片av中文字幕一区二区| 久久精品999| 国产91综合一区在线观看| 国产精品 欧美精品| 成人动漫一区二区在线| 91麻豆免费看| 欧美日韩大陆在线| 日韩三级在线观看| 国产人成一区二区三区影院| 国产精品理论在线观看| 一区二区在线观看av| 亚洲午夜视频在线观看| 日韩福利电影在线| 国产精品伊人色| 99久久精品免费看国产免费软件| 色噜噜夜夜夜综合网| 欧美一区二区三区免费视频| 久久色在线观看| 亚洲欧美日韩久久精品| 午夜伦理一区二区| 风间由美中文字幕在线看视频国产欧美| 成人av网址在线观看| 制服丝袜在线91| 国产免费久久精品| 五月天欧美精品| av一区二区三区在线| 欧美亚洲国产一区在线观看网站| 日韩视频国产视频| 亚洲欧美日韩成人高清在线一区| 午夜精品福利在线| 国产成人精品免费一区二区| 91官网在线观看| 国产亚洲成年网址在线观看| 亚洲乱码中文字幕综合| 久草中文综合在线| 欧洲亚洲国产日韩| 久久久综合九色合综国产精品| 亚洲欧美综合另类在线卡通| 精品一区二区三区免费毛片爱| 色婷婷精品久久二区二区蜜臂av| 久久亚洲私人国产精品va媚药| 亚洲国产乱码最新视频|