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

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

?? testlayer.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
// **********************************************************************// // <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/test/TestLayer.java,v $// $RCSfile: TestLayer.java,v $// $Revision: 1.4.2.2 $// $Date: 2005/08/09 21:17:55 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.test;import java.awt.Color;import java.awt.Component;import java.awt.Font;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.FocusAdapter;import java.awt.event.FocusEvent;import java.awt.event.MouseEvent;import java.util.StringTokenizer;import javax.swing.JButton;import javax.swing.JComboBox;import javax.swing.JComponent;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JRootPane;import javax.swing.JTextArea;import javax.swing.JTextField;import com.bbn.openmap.event.MapMouseListener;import com.bbn.openmap.event.NavMouseMode;import com.bbn.openmap.event.NullMouseMode;import com.bbn.openmap.event.SelectMouseMode;import com.bbn.openmap.layer.OMGraphicHandlerLayer;import com.bbn.openmap.omGraphics.OMArrowHead;import com.bbn.openmap.omGraphics.OMCircle;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMGraphicList;import com.bbn.openmap.omGraphics.OMLine;import com.bbn.openmap.omGraphics.OMPoly;import com.bbn.openmap.omGraphics.OMRect;import com.bbn.openmap.omGraphics.OMText;import com.bbn.openmap.proj.Length;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PaletteHelper;/** * A Layer for testing different types of graphics. The GUI code is * very large and ugly. Maybe break this off into several classes. * <p> * This layer responds to the following properties: <code><pre> *  *  # initial visibility settings: *  test.line.visible=true *  test.circ.visible=true *  test.rect.visible=true *  test.text.visible=true *  test.poly.visible=true *  # latlon vertices of the poly *  #test.poly.vertices=80 -180 80 -90 80 0 80 90 80 180 70 180 70 90 70 0 70 -90 70 -180 *   * </pre></code> In addition, you can get this layer to work with the * OpenMap viewer by editing your openmap.properties file: <code><pre> *  *  # layers *  openmap.layers=test ... *  # class *  test.class=com.bbn.openmap.layer.TestLayer *  # name *  test.prettyName=Graticule *   * </pre></code> */public class TestLayer extends OMGraphicHandlerLayer implements        MapMouseListener {    public final static transient String LineVisibleProperty = ".line.visible";    public final static transient String CircVisibleProperty = ".circ.visible";    public final static transient String RectVisibleProperty = ".rect.visible";    public final static transient String TextVisibleProperty = ".text.visible";    public final static transient String PolyVisibleProperty = ".poly.visible";    public final static transient String PolyVertsProperty = ".poly.vertices";    // colors    protected final static transient String[] colorNames = new String[] {            "white", "lightGray", "gray", "darkGray", "black", "red", "pink",            "orange", "yellow", "green", "magenta", "cyan", "blue", "clear" };    protected final static transient Color[] colors = new Color[] {            Color.white, Color.lightGray, Color.gray, Color.darkGray,            Color.black, Color.red, Color.pink, Color.orange, Color.yellow,            Color.green, Color.magenta, Color.cyan, Color.blue, OMGraphic.clear };    protected final static transient int NCOLORS = colors.length;    // graphics and peers    protected OMCircle omcircle = new OMCircle();    protected Circle circle = new Circle();    protected OMLine omline = new OMLine();    protected Line line = new Line();    protected OMRect omrect = new OMRect();    protected Rect rect = new Rect();    protected OMText omtext = new OMText();    protected Text text = new Text();    protected OMPoly ompoly = new OMPoly();    protected Poly poly = new Poly();    protected JPanel gui = null;// the GUI    /**     * Construct the TestLayer.     */    public TestLayer() {}    /**     * The properties and prefix are managed and decoded here, for the     * standard uses of the GraticuleLayer.     *      * @param prefix string prefix used in the properties file for     *        this layer.     * @param properties the properties set in the properties file.     */    public void setProperties(String prefix, java.util.Properties properties) {        super.setProperties(prefix, properties);        line.visible = Boolean.valueOf(properties.getProperty(prefix                + LineVisibleProperty, "true")).booleanValue();        circle.visible = Boolean.valueOf(properties.getProperty(prefix                + CircVisibleProperty, "true")).booleanValue();        rect.visible = Boolean.valueOf(properties.getProperty(prefix                + RectVisibleProperty, "true")).booleanValue();        text.visible = Boolean.valueOf(properties.getProperty(prefix                + TextVisibleProperty, "true")).booleanValue();        poly.visible = Boolean.valueOf(properties.getProperty(prefix                + PolyVisibleProperty, "true")).booleanValue();        String verts = properties.getProperty(prefix + PolyVertsProperty);        if (verts != null) {            poly.setVertices(verts);        }    }    public synchronized OMGraphicList prepare() {        if (getList() == null) {            setList(generateGraphics());        }        return super.prepare();    }    /**     * Create and project the graphics.     */    protected OMGraphicList generateGraphics() {        OMGraphicList graphics = new OMGraphicList();        // create OMLine from internal line representation        switch (line.rt) {        case OMGraphic.RENDERTYPE_LATLON:            omline = new OMLine(line.llpts[0], line.llpts[1], line.llpts[2], line.llpts[3], line.type, line.nsegs);            break;        case OMGraphic.RENDERTYPE_XY:            omline = new OMLine(line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);            break;        case OMGraphic.RENDERTYPE_OFFSET:            omline = new OMLine(line.llpts[0], line.llpts[1], line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);            break;        default:            System.err.println("ARRRR!");            break;        }        if (line.arrowhead) {            omline.addArrowHead(line.arrowtype);        }        // create OMCircle from internal circle representation        switch (circle.rt) {        case OMGraphic.RENDERTYPE_LATLON:            omcircle = new OMCircle(circle.llpts[0], circle.llpts[1], circle.radius, Length.KM, circle.nsegs);            omcircle.setPolarCorrection(true);            break;        case OMGraphic.RENDERTYPE_XY:            omcircle = new OMCircle(circle.xypts[0], circle.xypts[1], circle.width, circle.height);            break;        case OMGraphic.RENDERTYPE_OFFSET:            omcircle = new OMCircle(circle.llpts[0], circle.llpts[1], circle.xypts[0], circle.xypts[1], circle.width, circle.height);            break;        default:            System.err.println("ARRRR!");            break;        }        // create OMRect from internal rect representation        switch (rect.rt) {        case OMGraphic.RENDERTYPE_LATLON:            omrect = new OMRect(rect.llpts[0], rect.llpts[1], rect.llpts[2], rect.llpts[3], rect.type, rect.nsegs);            break;        case OMGraphic.RENDERTYPE_XY:            omrect = new OMRect(rect.xypts[0], rect.xypts[1], rect.xypts[2], rect.xypts[3]);            break;        case OMGraphic.RENDERTYPE_OFFSET:            omrect = new OMRect(rect.llpts[0], rect.llpts[1], rect.xypts[0], rect.xypts[1], rect.xypts[2], rect.xypts[3]);            break;        default:            System.err.println("ARRRR!");            break;        }        // create OMText from internal text representation        switch (text.rt) {        case OMGraphic.RENDERTYPE_LATLON:            omtext = new OMText(text.llpts[0], text.llpts[1], text.data, Font.decode(text.font), text.just);            break;        case OMGraphic.RENDERTYPE_XY:            omtext = new OMText(text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);            break;        case OMGraphic.RENDERTYPE_OFFSET:            omtext = new OMText(text.llpts[0], text.llpts[1], text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);            break;        default:            System.err.println("ARRRR!");            break;        }        // create OMPoly from internal poly representation        switch (poly.rt) {        case OMGraphic.RENDERTYPE_LATLON:            int len = poly.llpts.length;            float[] llpts = new float[len];            System.arraycopy(poly.llpts, 0, llpts, 0, len);            ompoly = new OMPoly(llpts, OMPoly.DECIMAL_DEGREES, poly.type, poly.nsegs);            break;        case OMGraphic.RENDERTYPE_XY:            ompoly = new OMPoly(poly.xypts);            break;        case OMGraphic.RENDERTYPE_OFFSET:            ompoly = new OMPoly(poly.lat, poly.lon, poly.xypts, poly.cMode);            break;        default:            System.err.println("ARRRR!");            break;        }        // generic        omline.setVisible(line.visible);        omline.setLinePaint(colors[line.lineColor]);        omcircle.setVisible(circle.visible);        omcircle.setLinePaint(colors[circle.lineColor]);        omrect.setVisible(rect.visible);        omrect.setLinePaint(colors[rect.lineColor]);        ompoly.setVisible(poly.visible);        ompoly.setLinePaint(colors[poly.lineColor]);        omtext.setVisible(text.visible);        omtext.setLinePaint(colors[text.lineColor]);        if (circle.isFilled)            omcircle.setFillPaint(colors[circle.fillColor]);        if (rect.isFilled)            omrect.setFillPaint(colors[rect.fillColor]);        if (poly.isFilled)            ompoly.setFillPaint(colors[poly.fillColor]);        graphics.add(omline);        graphics.add(omcircle);        graphics.add(omrect);        graphics.add(omtext);        graphics.add(ompoly);        graphics.generate(getProjection());        return graphics;    }    /**     * Gets the palette associated with the layer.     * <p>     *      * @return Component or null     */    public Component getGUI() {        if (gui == null) {            JPanel pal;            gui = PaletteHelper.createPaletteJPanel("Test");            GridBagLayout gridbag = new GridBagLayout();            GridBagConstraints constraints = new GridBagConstraints();            gui.setLayout(gridbag);            constraints.fill = GridBagConstraints.HORIZONTAL; // fill                                                              // horizontally            constraints.gridwidth = GridBagConstraints.REMAINDER; //another                                                                  // row            constraints.anchor = GridBagConstraints.EAST; // tack to                                                          // the left                                                          // edge            //          constraints.weightx = 0.0;            ActionListener al = new ActionListener() {                public void actionPerformed(ActionEvent e) {                    int index = Integer.parseInt(e.getActionCommand(), 10);                    switch (index) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
首页国产丝袜综合| www精品美女久久久tv| 中文字幕国产精品一区二区| 青青草成人在线观看| 制服丝袜av成人在线看| 一区二区三区在线高清| 色综合久久久久久久久| 国产日韩欧美不卡在线| 成人久久18免费网站麻豆| 中文字幕国产一区| 国产99久久久国产精品| 国产精品色眯眯| 91色九色蝌蚪| 日韩精品免费视频人成| 欧美三区在线视频| 国产美女在线精品| 中文字幕国产一区| 色一情一伦一子一伦一区| 亚洲欧洲色图综合| 日本电影欧美片| 久久se这里有精品| wwwwww.欧美系列| www.日韩在线| 亚洲国产视频一区| 精品欧美久久久| 色综合网色综合| 国产高清精品网站| 亚洲综合网站在线观看| 欧美一区二区三区的| 色偷偷成人一区二区三区91| 亚洲二区在线观看| 精品国产免费人成在线观看| zzijzzij亚洲日本少妇熟睡| 亚洲妇熟xx妇色黄| 中文字幕中文字幕一区二区| 91国模大尺度私拍在线视频 | av在线不卡观看免费观看| 亚洲免费在线视频一区 二区| 久久精品一区二区三区av | 亚洲国产日日夜夜| 一区二区三区四区五区视频在线观看 | 成人激情小说网站| 奇米在线7777在线精品 | 26uuu国产一区二区三区| 在线观看欧美精品| 波多野结衣中文字幕一区| 国产最新精品免费| 日韩av网站免费在线| 亚洲欧美综合色| 国产亚洲欧美一级| 成人精品在线视频观看| 成人一区在线看| 福利视频网站一区二区三区| 美国十次了思思久久精品导航| 一区二区三区精品| 一个色综合av| 国产精品久久久久久久久动漫 | 成人av综合在线| 91香蕉视频在线| 欧美日韩一区不卡| 欧美另类z0zxhd电影| 欧美日韩成人综合在线一区二区| 色天使久久综合网天天| 欧美美女bb生活片| 精品国产成人在线影院| 精品国产乱码久久久久久久| 国产丝袜在线精品| 亚洲国产精品成人久久综合一区| 国产精品欧美一级免费| 亚洲精品国产a久久久久久| 香蕉影视欧美成人| 国产福利一区在线| 色狠狠一区二区| 日韩欧美电影在线| 国产精品久久久久久久第一福利| 亚洲一区二区在线免费观看视频| 国产精品资源在线看| 在线精品国精品国产尤物884a| 欧美天天综合网| 久久先锋资源网| 亚洲第一成年网| 91在线视频免费观看| 精品日本一线二线三线不卡| 亚洲欧美一区二区三区极速播放 | 91视频免费播放| 国产精品免费看片| 国产精品影视在线| 精品免费日韩av| 亚洲国产综合在线| 91免费看`日韩一区二区| 日韩美女主播在线视频一区二区三区| 亚洲激情五月婷婷| 91搞黄在线观看| 亚洲精品videosex极品| 国产成人亚洲综合a∨猫咪| 日韩欧美一卡二卡| 免费日本视频一区| 日韩欧美精品三级| 美腿丝袜亚洲三区| 欧美伦理电影网| 日本亚洲最大的色成网站www| 91美女片黄在线观看| 亚洲男人的天堂在线aⅴ视频| 国产成人免费av在线| 中文字幕不卡的av| 色网站国产精品| 日韩av不卡在线观看| 久久在线免费观看| 懂色av中文字幕一区二区三区| 久久久久久久久久久久电影| 国产精品18久久久久久久久久久久| 欧美一级日韩免费不卡| 九九精品一区二区| 国产精品美女www爽爽爽| 91美女在线看| 久久成人久久爱| 一区二区三区四区在线| 久久先锋影音av鲁色资源| 91国模大尺度私拍在线视频 | 欧美精品一区二区三区在线| 成人性视频免费网站| 亚洲综合免费观看高清完整版| 欧美精品 日韩| 国产高清不卡二三区| 五月天网站亚洲| 国产精品免费久久久久| 日韩一区二区免费电影| 91捆绑美女网站| 国产成人午夜高潮毛片| 一区二区在线看| 久久精品无码一区二区三区| 欧美日韩国产bt| 91丨porny丨首页| 国产成人精品三级麻豆| 日韩av电影天堂| 夜夜精品视频一区二区| 亚洲柠檬福利资源导航| 国产精品久久夜| 制服丝袜在线91| 欧美视频一区二区| 91久久香蕉国产日韩欧美9色| 成人午夜电影网站| 一本到不卡免费一区二区| 国产精品18久久久久久久久| 日本成人中文字幕| 麻豆一区二区99久久久久| 日韩黄色在线观看| 天堂一区二区在线免费观看| 亚洲成人福利片| 日韩电影一区二区三区四区| 日韩专区中文字幕一区二区| 日本不卡123| 国产成人亚洲精品青草天美| caoporn国产一区二区| 91天堂素人约啪| 欧美嫩在线观看| 精品欧美乱码久久久久久1区2区| 91精品欧美一区二区三区综合在| 精品视频999| 久久先锋影音av鲁色资源| 最近中文字幕一区二区三区| 亚洲精品老司机| 麻豆一区二区三| 一本色道久久综合亚洲aⅴ蜜桃| 欧美日本在线播放| 国产女人18水真多18精品一级做| 国产精品久久精品日日| 亚洲成人在线免费| 国产一本一道久久香蕉| 91香蕉视频mp4| 日韩美女视频在线| 亚洲同性gay激情无套| 男人操女人的视频在线观看欧美| 国产成人8x视频一区二区| 欧美午夜精品一区二区三区 | 精品国产乱码久久久久久久| 国产精品短视频| 韩国理伦片一区二区三区在线播放 | 日韩成人av影视| 成人美女视频在线观看| 精品国产一区二区三区不卡| 亚洲欧美电影一区二区| 国产高清无密码一区二区三区| 欧美精品久久99| 亚洲综合丝袜美腿| 色综合天天性综合| 亚洲视频 欧洲视频| 日本精品裸体写真集在线观看 | 在线免费观看日本一区| 精品国产乱码久久久久久久久| 亚洲成人你懂的| 91精品免费在线| 国产在线不卡一卡二卡三卡四卡| 亚洲第一久久影院| 一区二区三区国产精品| 成人激情午夜影院| 亚洲丝袜制服诱惑| 欧美三级电影网站| 人禽交欧美网站| 日韩欧美中文一区|