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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? testlayer.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 4 頁
字號(hào):
// **********************************************************************// // <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) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费xxxxxxxx| 91尤物视频在线观看| 日韩电影免费在线观看网站| 亚洲一区二区三区激情| 亚洲美腿欧美偷拍| 一区二区三区高清在线| 亚洲女人小视频在线观看| 亚洲欧美一区二区久久| 亚洲免费在线观看| 亚洲精品中文字幕乱码三区| 一区二区三区四区高清精品免费观看| 国产精品女同一区二区三区| 欧美—级在线免费片| 欧美激情在线一区二区| 亚洲欧洲国产日本综合| 亚洲精品国产第一综合99久久 | 日韩一区二区在线看| 4438亚洲最大| 欧美va在线播放| 欧美一区二区三区视频在线| 欧美一级淫片007| 欧美成人性战久久| 久久精品欧美日韩精品| 久久久亚洲高清| 综合精品久久久| 亚洲一区二区四区蜜桃| 蜜臀a∨国产成人精品| 精品亚洲国产成人av制服丝袜 | 日本韩国欧美在线| 欧美亚洲国产怡红院影院| 欧美日韩国产综合一区二区| 91精品国产品国语在线不卡| 欧美一区二区黄色| 日韩一级片在线观看| 国产亚洲污的网站| 最新国产成人在线观看| 亚洲一区在线视频观看| 亚洲国产人成综合网站| 麻豆视频一区二区| www.99精品| 欧美日韩国产美| 久久久亚洲午夜电影| 亚洲精品视频在线看| 久久精品理论片| 91女人视频在线观看| 在线综合视频播放| 国产精品毛片久久久久久久| 亚洲一区二区视频在线| 国产一区二区美女诱惑| 91无套直看片红桃| 日韩免费一区二区三区在线播放| 国产日产欧美精品一区二区三区| 亚洲欧美一区二区久久| 精品一区二区国语对白| 色综合久久久久综合| 精品久久久久久久久久久久久久久 | 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 26uuu亚洲综合色| 亚洲精品免费在线观看| 久久99精品国产麻豆婷婷 | 国产精品免费免费| 日韩电影一二三区| 色综合色综合色综合| 精品区一区二区| 亚洲一区二区三区中文字幕在线 | 欧美电影免费提供在线观看| 亚洲色图清纯唯美| 国产成人在线视频网址| 在线不卡一区二区| 亚洲天堂久久久久久久| 国产精品一区在线观看乱码| 欧美日韩日日夜夜| 亚洲色图在线看| 国产九色sp调教91| 欧美一级生活片| 亚洲制服丝袜一区| av电影在线观看一区| 精品久久久久久久人人人人传媒 | 亚洲成人综合网站| 91在线国产福利| 国产午夜精品一区二区三区四区| 天天亚洲美女在线视频| 91亚洲精品一区二区乱码| 国产日韩欧美精品综合| 狠狠色丁香婷综合久久| 69精品人人人人| 一区二区三区中文在线| 91欧美激情一区二区三区成人| 国产欧美日韩视频一区二区| 久久99国产精品麻豆| 91精品欧美福利在线观看| 亚洲一级不卡视频| 一本色道久久综合精品竹菊| 国产精品久久久久一区二区三区共 | 中文字幕av一区二区三区免费看 | 亚洲第一久久影院| 色婷婷激情综合| 亚洲欧美福利一区二区| 99re这里只有精品首页| 国产精品久久久久久久久免费樱桃| 国产东北露脸精品视频| 久久免费精品国产久精品久久久久| 蜜桃av一区二区| 欧美大片在线观看| 精品一区二区成人精品| 久久亚洲二区三区| 国产精品123区| 中文成人av在线| 成人国产精品免费网站| 国产精品天美传媒沈樵| 国产suv精品一区二区6| 中文字幕成人网| 99精品视频在线播放观看| 亚洲三级小视频| 精品88久久久久88久久久| 久久99在线观看| 26uuu精品一区二区在线观看| 国产精品一卡二卡在线观看| 日本一区二区三区四区在线视频| 不卡的av网站| 亚洲自拍偷拍图区| 91精品免费观看| 国内久久精品视频| 国产日韩欧美制服另类| 91玉足脚交白嫩脚丫在线播放| 一区二区在线观看视频| 欧美日韩综合不卡| 免费一级欧美片在线观看| 久久久久久久av麻豆果冻| 高清不卡一二三区| 亚洲精品成人精品456| 欧美日韩国产一级片| 久久国产日韩欧美精品| 亚洲国产精品成人综合色在线婷婷 | 中文字幕精品一区二区精品绿巨人 | 欧美日韩精品一区二区三区| 日韩精品福利网| 26uuu精品一区二区三区四区在线| 成人天堂资源www在线| 一区二区高清免费观看影视大全| 777a∨成人精品桃花网| 国产盗摄精品一区二区三区在线| 中文字幕在线观看不卡| 欧美精三区欧美精三区| 国产一区999| 亚洲精品视频免费观看| 日韩一级片在线观看| av午夜一区麻豆| 日韩高清不卡在线| 中文字幕第一区第二区| 欧美日韩精品三区| 粉嫩aⅴ一区二区三区四区| 一区二区三区国产精品| 欧美成va人片在线观看| 色婷婷激情久久| 韩国欧美国产一区| 一区二区三区美女视频| 精品乱人伦小说| 色狠狠色狠狠综合| 激情深爱一区二区| 亚洲一区二区免费视频| 久久嫩草精品久久久精品| 欧美三级三级三级| 成人综合日日夜夜| 日本在线不卡视频| 综合久久久久综合| 精品欧美一区二区三区精品久久 | 色综合咪咪久久| 久久99久久精品| 一级中文字幕一区二区| 久久久国产精华| 欧美人妇做爰xxxⅹ性高电影| 国产成人av一区| 久久疯狂做爰流白浆xx| 亚洲人成网站精品片在线观看| xfplay精品久久| 欧美日韩在线播放三区四区| 成人黄色av电影| 国产又粗又猛又爽又黄91精品| 午夜久久久影院| 最新久久zyz资源站| 国产午夜精品美女毛片视频| 欧美一区二区三区日韩视频| 欧美在线免费观看视频| 99精品欧美一区| 成人一区二区三区视频在线观看| 青青草国产精品97视觉盛宴| 亚洲一区二区四区蜜桃| 亚洲欧美日韩成人高清在线一区| 国产日韩精品一区二区三区| 欧美精品一卡二卡| 欧美在线色视频| 色94色欧美sute亚洲线路一久| 国产成人综合网| 精品一区二区国语对白| 免费在线视频一区| 老司机一区二区| 蜜臀av国产精品久久久久| 奇米一区二区三区av| 午夜不卡av在线|