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

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

?? helloworld.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? 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/examples/hello/HelloWorld.java,v $// $RCSfile: HelloWorld.java,v $// $Revision: 1.2.2.2 $// $Date: 2004/10/14 18:26:47 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.examples.hello;import java.awt.BorderLayout;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.io.InputStream;import java.util.Properties;import java.util.StringTokenizer;import java.util.Vector;import javax.swing.JFrame;import com.bbn.openmap.LatLonPoint;import com.bbn.openmap.Layer;import com.bbn.openmap.LayerHandler;import com.bbn.openmap.MapBean;import com.bbn.openmap.MapHandler;import com.bbn.openmap.MouseDelegator;import com.bbn.openmap.MultipleSoloMapComponentException;import com.bbn.openmap.gui.ToolPanel;import com.bbn.openmap.gui.OMToolSet;import com.bbn.openmap.event.NavMouseMode;/** * A sample application incorporating the <code>MapHandler</code> * and <code>MapBean</code>. * <p> * Uses a properties file to configure the layers. */public class HelloWorld extends JFrame {    /** Property for space separated layers. "hello.layers" */    public static final String layersProperty = "hello.layers";    /** The name of the resource file. "HelloWorld.properties" */    public static String helloResources = "HelloWorld.properties";    /** The message we wish to announce to the user. */    public static String message = "Hello, World!";    /**     * Create a default HelloWorld instance. The instance will use the     * default properties.     */    public HelloWorld() throws MultipleSoloMapComponentException {        this(new Properties());    }    /**     * Create a HelloWorld instance with the given properties. The     * properties override the defaults.     *      * @param props The override properties     */    public HelloWorld(Properties props)            throws MultipleSoloMapComponentException {        // Initialize the parent class (JFrame)        super("HelloWorld Example");        // Use a Border layout manager        getContentPane().setLayout(new BorderLayout());        // Call quit when the window's close box is clicked.        addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent e) {                quit();            }        });        System.out.println("Creating MapHandler");        // Create the BeanContext, known as the MapHandler.        MapHandler mapHandler = new MapHandler();        System.out.println("Creating MapBean");        // Create a MapBean, and add it to the MapHandler.        MapBean map = new MapBean();        // Set the map's center property...        map.setCenter(new LatLonPoint(43.0f, -95.0f));        // and scale        map.setScale(80000000f);        mapHandler.add(map);        // Add the map to the JFrame        getContentPane().add(map, BorderLayout.CENTER);        System.out.println("Adding MouseEvent support...");        // Add Mouse handling objects. The MouseDelegator manages the        // MouseModes, controlling which one receives events from the        // MapBean. The active MouseMode sends events to the layers        // that want to receive events from it. The MouseDelegator        // will find the MapBean in the MapHandler, and hook itself up        // to it.        mapHandler.add(new MouseDelegator());        // Add MouseMode. The MouseDelegator will find it via the        // MapHandler.        //  Adding NavMouseMode first makes it active.        mapHandler.add(new NavMouseMode());        System.out.println("Creating ToolPanel...");        // Add the standard panning and zoom GUI to the JFrame.        // Create the tool...        mapHandler.add(new OMToolSet());        // Create the ToolPanel. It will find the OMToolSet in the        // MapHandler.        ToolPanel toolPanel = new ToolPanel();        mapHandler.add(toolPanel);        // Add the ToolPanel to the right place in this JFrame.        getContentPane().add(toolPanel, BorderLayout.NORTH);        System.out.println("Creating Layers...");        Layer[] layers = getLayers(props);        // Use the LayerHandler to manage all layers, whether they are        // on the map or not. You can add a layer to the map by        // setting layer.setVisible(true).        LayerHandler layerHandler = new LayerHandler();        for (int i = 0; i < layers.length; i++) {            layers[i].setVisible(true);            layerHandler.addLayer(layers[i]);        }        mapHandler.add(layerHandler);        System.out.println("Done creating...");    }    /**     * Exits the application.     */    protected void quit() {        System.exit(0);    }    /**     * Launches the application. Reads the resource file, instantiates     * a application, sizes it and displays it.     *      * @param args command line arguments -- ignored     */    public static void main(String[] args) {        Properties helloProps = new Properties();        loadResource(helloResources, helloProps);        try {            HelloWorld hello = new HelloWorld(helloProps);            hello.setSize(700, 500);            hello.pack();            hello.show();        } catch (MultipleSoloMapComponentException msmce) {            // The MapHandler is only allowed to have one of certain            // items. These items implement the SoloMapComponent            // interface. The MapHandler can have a policy that            // determines what to do when duplicate instances of the            // same type of object are added - replace or ignore.            // In this example, this will never happen, since we are            // controlling that one MapBean, LayerHandler,            // MouseDelegator, etc is being added to the MapHandler.        }    }    /**     * This method, called from main(), bundles functionality that     * once was being called twice, because there were two resource     * files being loaded, not just one, as is currently the case.     * Rather than put this code back into main(), it's been kept as a     * separate method in case we use more than one resource file     * again.     */    private static void loadResource(String resources, Properties props) {        InputStream in = HelloWorld.class.getResourceAsStream(resources);        if (props == null) {            System.err.println("Unable to locate resources: " + resources);            System.err.println("Using default resources.");        } else {            try {                props.load(in);            } catch (java.io.IOException e) {                System.err.println("Caught IOException loading resources: "                        + resources);                System.err.println("Using default resources.");            }        }    }    /**     * Gets the names of the Layers to be loaded from the properties     * passed in, initializes them, and returns them.     *      * @param p the properties, among them the property represented by     *        the String layersProperty above, which will tell us     *        which Layers need to be loaded     * @return an array of Layers ready to be added to the map bean     * @see #layersProperty     */    private Layer[] getLayers(Properties p) {        // Get the contents of the hello.layers property, which is a        // space-separated list of marker names...        String layersValue = p.getProperty(layersProperty);        // Didn't find it if it's null.        if (layersValue == null) {            System.err.println("No property \"" + layersProperty                    + "\" found in application properties.");            return null;        }        // OK, parse the list        StringTokenizer tokens = new StringTokenizer(layersValue, " ");        Vector layerNames = new Vector();        while (tokens.hasMoreTokens()) {            layerNames.addElement(tokens.nextToken());        }        int nLayerNames = layerNames.size();        Vector layers = new Vector(nLayerNames);        // For each layer marker name, find that layer's properties.        // The marker name is used to scope those properties that        // apply to a particular layer. If you parse the layers'        // properties from a file, you can add/remove layers from the        // application without re-compiling. You could hard-code all        // the properties being set if you'd rather...        for (int i = 0; i < nLayerNames; i++) {            String layerName = (String) layerNames.elementAt(i);            // Find the .class property to know what kind of layer to            // create.            String classProperty = layerName + ".class";            String className = p.getProperty(classProperty);            if (className == null) {                // Skip it if you don't find it.                System.err.println("Failed to locate property \""                        + classProperty + "\"");                System.err.println("Skipping layer \"" + layerName + "\"");                continue;            }            try {                // Create it if you do...                Object obj = java.beans.Beans.instantiate(null, className);                if (obj instanceof Layer) {                    Layer l = (Layer) obj;                    // All layers have a setProperties method, and                    // should intialize themselves with proper                    // settings here. If a property is not set, a                    // default should be used, or a big, graceful                    // complaint should be issued.                    l.setProperties(layerName, p);                    layers.addElement(l);                }            } catch (java.lang.ClassNotFoundException e) {                System.err.println("Layer class not found: \"" + className                        + "\"");                System.err.println("Skipping layer \"" + layerName + "\"");            } catch (java.io.IOException e) {                System.err.println("IO Exception instantiating class \""                        + className + "\"");                System.err.println("Skipping layer \"" + layerName + "\"");            }        }        int nLayers = layers.size();        if (nLayers == 0) {            return null;        } else {            Layer[] value = new Layer[nLayers];            layers.copyInto(value);            return value;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区导航在线播放| 国产jizzjizz一区二区| 久久人人97超碰com| 97精品国产露脸对白| 麻豆久久一区二区| 一区二区三区在线免费播放| 久久网站最新地址| 欧美高清视频www夜色资源网| 高清在线成人网| 久久国产生活片100| 亚洲高清三级视频| 中文字幕字幕中文在线中不卡视频| 欧美一区二区三区在线| 色悠悠亚洲一区二区| 国产成人日日夜夜| 看国产成人h片视频| 亚洲一区二区美女| 一区二区国产盗摄色噜噜| 久久精品日韩一区二区三区| 欧美一区二区三区免费视频| 91久久精品网| 日本韩国欧美三级| 99久久精品一区二区| 国产·精品毛片| 国产剧情一区二区三区| 国内精品久久久久影院一蜜桃| 天天综合色天天综合色h| 亚洲永久精品大片| 亚洲精品国产一区二区三区四区在线| 国产女人aaa级久久久级| 久久久久久久久一| 久久久久久久久久久久久女国产乱| 91精品黄色片免费大全| 91精品国产综合久久久久| 欧美三级电影网| 欧美午夜影院一区| 欧美性xxxxx极品少妇| 欧美影院午夜播放| 欧美日韩一本到| 5858s免费视频成人| 91超碰这里只有精品国产| 欧美精品丝袜中出| 欧美一区在线视频| 精品伦理精品一区| 久久久午夜精品理论片中文字幕| 国产三级精品三级在线专区| 国产日韩欧美激情| 国产精品二区一区二区aⅴ污介绍| 国产精品嫩草影院av蜜臀| 国产精品拍天天在线| 亚洲欧洲另类国产综合| 亚洲少妇30p| 午夜久久久久久久久| 日本中文字幕一区| 国产一区免费电影| 99久久精品免费| 在线观看中文字幕不卡| 制服丝袜日韩国产| 久久免费精品国产久精品久久久久| 国产欧美精品一区| 亚洲六月丁香色婷婷综合久久| 亚洲综合无码一区二区| 五月婷婷激情综合| 激情丁香综合五月| www.66久久| 51精品久久久久久久蜜臀| 精品欧美一区二区三区精品久久| 久久久99免费| 亚洲黄色小视频| 激情综合色丁香一区二区| 波多野洁衣一区| 777奇米四色成人影色区| 久久综合九色综合久久久精品综合| 亚洲欧美一区二区视频| 亚洲成人一区在线| 国产在线精品一区二区不卡了| 播五月开心婷婷综合| 欧美精品1区2区3区| 国产日产欧美一区二区视频| 亚洲尤物视频在线| 国产精品一区二区在线看| 色天天综合色天天久久| 日韩欧美三级在线| 最新国产の精品合集bt伙计| 三级精品在线观看| 成人黄页在线观看| 欧美一区二区三区在线观看 | 亚洲丝袜另类动漫二区| 五月婷婷欧美视频| 不卡一区在线观看| 日韩一区二区免费电影| 亚洲乱码一区二区三区在线观看| 狂野欧美性猛交blacked| 一本久道久久综合中文字幕| 精品国产乱码久久久久久浪潮| 最近中文字幕一区二区三区| 激情偷乱视频一区二区三区| 在线观看91精品国产入口| 国产亚洲欧洲一区高清在线观看| 亚洲一区二区视频在线观看| 国产丶欧美丶日本不卡视频| 欧美精品丝袜久久久中文字幕| 亚洲免费观看高清完整版在线观看熊 | www.亚洲精品| 欧美精品一区二区三区高清aⅴ | 亚洲欧美激情小说另类| 国产又粗又猛又爽又黄91精品| 欧美色国产精品| 日韩毛片在线免费观看| 国产精品一级黄| 日韩色视频在线观看| 亚洲国产精品尤物yw在线观看| 成人精品一区二区三区四区| 精品国产1区二区| 日本中文在线一区| 欧美人妇做爰xxxⅹ性高电影| 亚洲另类在线视频| av电影在线观看完整版一区二区| 久久在线观看免费| 蜜臀精品久久久久久蜜臀| 欧美亚洲另类激情小说| 成人免费视频在线观看| 粉嫩绯色av一区二区在线观看 | 91亚洲永久精品| 中文字幕精品一区| 懂色av中文一区二区三区| 久久色.com| 精品亚洲成a人| 欧美成人一级视频| 狠狠色综合日日| 精品88久久久久88久久久| 久久精品国产久精国产| 日韩免费成人网| 久久精品国产一区二区| 久久影院午夜片一区| 国产一区二区三区蝌蚪| 国产亚洲精品精华液| 国产成人免费9x9x人网站视频| 精品国产电影一区二区| 狠狠色2019综合网| 国产午夜精品一区二区| 国产**成人网毛片九色| 日韩一区欧美小说| 欧美亚洲一区三区| 日本网站在线观看一区二区三区| 日韩精品在线一区二区| 国产在线精品不卡| 国产精品色噜噜| 欧美综合一区二区| 婷婷丁香激情综合| 日韩三级高清在线| 国产久卡久卡久卡久卡视频精品| 欧美激情一区不卡| 色偷偷久久人人79超碰人人澡| 亚洲亚洲精品在线观看| 欧美一区二区二区| 国产一区二三区好的| 中文字幕日韩av资源站| 欧美少妇bbb| 免费xxxx性欧美18vr| 国产亚洲一区二区三区| bt欧美亚洲午夜电影天堂| 亚洲国产欧美日韩另类综合| 日韩欧美在线123| 国产a精品视频| 亚洲一区二区视频在线观看| 欧美白人最猛性xxxxx69交| 国产成人高清在线| 夜夜嗨av一区二区三区四季av| 日韩欧美综合在线| 成人精品gif动图一区| 午夜伊人狠狠久久| 久久久久久久综合狠狠综合| 91黄色小视频| 久久精工是国产品牌吗| 亚洲日本电影在线| 日韩视频一区在线观看| www.成人在线| 麻豆国产精品官网| 亚洲老妇xxxxxx| 久久麻豆一区二区| 欧美日韩精品欧美日韩精品一综合| 精品一二线国产| 亚洲国产成人av网| 国产嫩草影院久久久久| 69堂成人精品免费视频| 99久久精品国产麻豆演员表| 美腿丝袜在线亚洲一区| 亚洲乱码国产乱码精品精小说| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产区在线观看成人精品| 欧美午夜精品一区二区三区| 国产一二精品视频| 偷拍自拍另类欧美| 日韩伦理av电影| 国产亚洲一区字幕| 日韩欧美中文一区二区| 91视频xxxx| 懂色一区二区三区免费观看| 蜜臀久久99精品久久久画质超高清|