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

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

?? graphicloaderplugin.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實現(xiàn),可以像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/plugin/graphicLoader/GraphicLoaderPlugIn.java,v $// $RCSfile: GraphicLoaderPlugIn.java,v $// $Revision: 1.6.2.3 $// $Date: 2005/08/09 21:17:57 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.plugin.graphicLoader;import java.awt.Component;import java.beans.PropertyVetoException;import java.beans.beancontext.BeanContext;import java.util.Properties;import com.bbn.openmap.PropertyConsumer;import com.bbn.openmap.event.MapMouseListener;import com.bbn.openmap.graphicLoader.GraphicLoader;import com.bbn.openmap.omGraphics.OMAction;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMGraphicList;import com.bbn.openmap.plugin.OMGraphicHandlerPlugIn;import com.bbn.openmap.proj.Projection;import com.bbn.openmap.util.ComponentFactory;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/** * A GraphicLoaderPlugIn is a PlugIn that receives its OMGraphics from * some other source, at any time. It just listens to its * GraphicLoader for updates to the OMGraphicList, and then updates * the map as necessary. * <P> * The GraphicLoaderPlugIn passes projection changes onto the * GraphicLoader, and if the GraphicLoader is a MapMouseListener, the * GraphicLoaderPlugIn will defer all MouseEvents to it. * <p> *  * To add a GraphicLoader to the OpenMap application, you can do it * several ways: * <UL> * <LI>You can create a specific GraphicLoaderPlugIn that creates its * own GraphicLoader, and initializes it accordingly. You would add * the GraphicLoaderPlugIn to the openmap.layers property in the * openmap.properties file. * <LI>You can create a GraphicLoaderPlugIn by adding an entry to the * openmap.layer property in the openmap.properties file, and define * what kind of GraphicLoader to create in the properties for the * GraphicLoaderPlugIn. * <P> *  * <pre> *  *  graphicLoaderPlugIn.class=com.bbn.openmap.plugin.graphicLoader.GraphicLoaderPlugIn *  graphicLoaderPlugIn.prettyName=Name of Layer *  graphicLoaderPlugIn.graphicLoader=GraphicLoader Classname *  graphicLoaderPlugIn.addGraphicLoaderToMapHandler=true/false (false by default) *   * </pre> *  * <LI>You can add a * com.bbn.openmap.plugin.graphicLoader.GraphicLoaderConnector to the * openmap.components property, and then add the GraphicLoader to the * openmap.components property as well. The GraphicLoaderConnector * will find the GraphicLoader, and create a * GraphicLoaderPlugIn/PlugInLayer for the GraphicLoader and add it to * the LayerHandler on top of the map. * </UL> *   */public class GraphicLoaderPlugIn extends OMGraphicHandlerPlugIn {    protected GraphicLoader loader = null;    public final static String GraphicLoaderProperty = "graphicLoader";    public final static String AddGraphicLoaderToMapHandlerProperty = "addGraphicLoaderToMapHandler";    protected boolean addGraphicLoaderToMapHandler = false;    protected boolean needToAddGraphicLoaderToMapHandler = false;    private boolean inGetRectangle = false;    protected Object lock = new Object();    public GraphicLoaderPlugIn() {        super();    }    /**     * @param comp the PlugInLayer to work with.     */    public GraphicLoaderPlugIn(Component comp) {        super(comp);    }    /**     * The getRectangle call is the main call into the PlugIn module.     * The module is expected to fill the graphics list with objects     * that are within the screen parameters passed.     *      * @param p projection of the screen, holding scale, center     *        coords, height, width.     */    public OMGraphicList getRectangle(Projection p) {        // Used to control the doPrepare() call in setList().        synchronized (lock) {            inGetRectangle = true;        }        if (loader != null) {            loader.setProjection(p);        }        OMGraphicList list = (OMGraphicList) super.getList();        list.generate(p);        if (Debug.debugging("graphicloader")) {            Debug.output("GraphicLoaderPlugIn returning list of " + list.size()                    + " objects.");        }        // Used to control the doPrepare() call in setList().        synchronized (lock) {            inGetRectangle = false;        }        return list;    }    /**     * OMGraphicHandler method. This will cause doPrepare() to be     * called on the PlugInLayer, which will result in a     * getRectangle() being called the GraphicLoaderPlugIn, which will     * in turn cause setProjection() to be called on the     * GraphicLoader. Watch out, in the GraphicLoader, for setting the     * list as a result of a projection change - you can get into a     * loop. The AbstractGraphicLoader checks to see if the projection     * has changed.     */    public synchronized void setList(OMGraphicList graphics) {        super.setList(graphics);        synchronized (lock) {            if (!inGetRectangle) {                // Should be OK, launching a separate thread to                // come back into getRectangle. We only want to call                // doPrepare() if setList is being called in a thread                // from something else controlling the GraphicLoader,                // like a timer or something.                doPrepare();            }        }    }    /** OMGraphicHandler method. */    public synchronized boolean doAction(OMGraphic graphic, OMAction action) {        boolean ret = super.doAction(graphic, action);        doPrepare();        return ret;    }    /**     * Set the GraphicLoader for the PlugIn. If the GraphicLoader is a     * MapMouseListener, it will be used as such for this PlugIn.     */    public void setGraphicLoader(GraphicLoader gl) {        loader = gl;        gl.setReceiver(this);        if (gl instanceof MapMouseListener) {            setMapMouseListener((MapMouseListener) gl);        } else {            setMapMouseListener(this);        }        if (needToAddGraphicLoaderToMapHandler && getBeanContext() != null                && loader != null) {            getBeanContext().add(loader);            needToAddGraphicLoaderToMapHandler = false;        }    }    /**     * Get the GraphicLoader loader.     */    public GraphicLoader getGraphicLoader() {        return loader;    }    /**     * Set whether to add the GraphicLoader, which is assumed to yet     * be added to the GraphicLoaderPlugIn, to the MapHandler.     */    public void setAddGraphicLoaderToMapHandler(boolean val) {        addGraphicLoaderToMapHandler = val;        needToAddGraphicLoaderToMapHandler = val;    }    public boolean getAddGraphicLoaderToMapHandler() {        return addGraphicLoaderToMapHandler;    }    /**     * Method for BeanContextChild interface. Adds this object as a     * BeanContextMembership listener, set the BeanContext in this     * objects BeanContextSupport, and receives the initial list of     * objects currently contained in the BeanContext.     */    public void setBeanContext(BeanContext in_bc) throws PropertyVetoException {        super.setBeanContext(in_bc);        if (in_bc != null && needToAddGraphicLoaderToMapHandler                && getGraphicLoader() != null) {            in_bc.add(getGraphicLoader());            needToAddGraphicLoaderToMapHandler = false;        }    }    /**     * PropertyConsumer interface method.     *      * @see com.bbn.openmap.PropertyConsumer     */    public void setProperties(String prefix, Properties props) {        super.setProperties(prefix, props);        String realPrefix = PropUtils.getScopedPropertyPrefix(prefix);        String glString = props.getProperty(realPrefix + GraphicLoaderProperty);        addGraphicLoaderToMapHandler = PropUtils.booleanFromProperties(props,                realPrefix + AddGraphicLoaderToMapHandlerProperty,                addGraphicLoaderToMapHandler);        if (glString != null) {            GraphicLoader gl = (GraphicLoader) ComponentFactory.create(glString,                    prefix,                    props);            if (gl != null) {                needToAddGraphicLoaderToMapHandler = addGraphicLoaderToMapHandler;                setGraphicLoader(gl);            }        }    }    /**     * PropertyConsumer interface method.     *      * @see com.bbn.openmap.PropertyConsumer     */    public Properties getProperties(Properties props) {        props = super.getProperties(props);        GraphicLoader gl = getGraphicLoader();        if (gl != null) {            String prefix = PropUtils.getScopedPropertyPrefix(this);            props.setProperty(prefix + GraphicLoaderProperty, gl.getClass()                    .getName());            if (gl instanceof PropertyConsumer) {                ((PropertyConsumer) gl).getProperties(props);            }        }        return props;    }    /**     * PropertyConsumer interface method.     *      * @see com.bbn.openmap.PropertyConsumer     */    public Properties getPropertyInfo(Properties props) {        props = super.getPropertyInfo(props);        props.setProperty(GraphicLoaderProperty, "Classname of GraphicLoader");        GraphicLoader gl = getGraphicLoader();        if (gl != null && gl instanceof PropertyConsumer) {            ((PropertyConsumer) gl).getPropertyInfo(props);        }        return props;    }    /**     * Standard PlugIn method to provide palette. Differed to the     * GraphicLoader.     */    public Component getGUI() {        if (loader != null) {            return loader.getGUI();        } else {            return null;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久婷婷国产综合精品青草| 亚洲成人一区二区在线观看| 亚洲精品日韩专区silk| 久久99最新地址| 色88888久久久久久影院按摩| 久久久精品国产99久久精品芒果 | 日本午夜精品视频在线观看| 国产精品一色哟哟哟| 欧美日韩成人激情| 国产精品久久久久桃色tv| 久久99久久99小草精品免视看| 在线观看欧美日本| 国产精品国模大尺度视频| 国产乱码精品一区二区三区五月婷| 精品视频一区二区不卡| 亚洲美女视频在线| 不卡电影免费在线播放一区| 国产人伦精品一区二区| 美国一区二区三区在线播放| 欧美日韩国产综合一区二区三区 | 欧美一级高清片| 亚洲一区二区三区四区在线| 成人黄色小视频| 国产精品久久久久7777按摩| 国产在线一区二区| 精品久久久久香蕉网| 麻豆一区二区三区| 欧美成人精品高清在线播放| 精品一区二区日韩| 久久久亚洲精品一区二区三区| 久久国产精品99久久人人澡| 欧美哺乳videos| 狠狠色综合播放一区二区| 欧美精品一区二区三区在线 | 偷拍与自拍一区| 欧美日韩一级二级| 丝袜诱惑亚洲看片| 欧美精品一二三四| 视频一区视频二区在线观看| 91精品国产高清一区二区三区| 日日夜夜精品免费视频| 在线播放亚洲一区| 九九久久精品视频| 国产午夜精品一区二区| 99精品久久久久久| 一区二区不卡在线播放 | 久久夜色精品国产噜噜av| 国产伦精品一区二区三区视频青涩| 337p粉嫩大胆噜噜噜噜噜91av | 久久亚区不卡日本| 成人午夜视频在线观看| 亚洲欧美另类久久久精品| 精品视频免费看| 麻豆91精品视频| 国产日产欧产精品推荐色| 99久久综合色| 偷窥少妇高潮呻吟av久久免费| 精品久久久久久久一区二区蜜臀| 国产一区二区三区免费看| 国产精品国产三级国产aⅴ入口 | 日韩美女视频一区二区| 欧美视频中文字幕| 精品系列免费在线观看| 国产精品久久久久影视| 欧美日韩一区成人| 韩国av一区二区| 亚洲精品免费播放| 精品欧美一区二区三区精品久久| 不卡高清视频专区| 青青青爽久久午夜综合久久午夜| 国产免费成人在线视频| 欧美日本一区二区三区| 国产高清久久久久| 亚洲成av人综合在线观看| 久久久不卡影院| 欧美日韩一卡二卡三卡 | 色婷婷综合久久| 麻豆成人免费电影| 亚洲综合丝袜美腿| 国产午夜亚洲精品午夜鲁丝片| 欧美一a一片一级一片| 丁香六月综合激情| 美女视频第一区二区三区免费观看网站 | 国产欧美一区二区三区鸳鸯浴 | 日本成人中文字幕| 亚洲色图色小说| 国产欧美一区二区三区鸳鸯浴| 9191国产精品| 色噜噜狠狠成人网p站| 国产精品自拍毛片| 亚洲高清不卡在线| 国产精品久久影院| 国产日韩在线不卡| 日韩欧美中文一区| 欧美日韩中文字幕精品| 99久久综合狠狠综合久久| 国产不卡在线视频| 久久69国产一区二区蜜臀| 亚洲综合无码一区二区| 亚洲美女一区二区三区| 国产精品久久毛片| 国产精品免费网站在线观看| 国产三区在线成人av| 精品久久久影院| 精品福利在线导航| www国产精品av| 久久久一区二区三区捆绑**| 精品免费国产一区二区三区四区| 欧美日韩第一区日日骚| 欧美日韩黄色一区二区| 欧美群妇大交群的观看方式| 91福利区一区二区三区| 欧美亚洲国产bt| 91福利资源站| 欧美日韩国产大片| 欧美美女一区二区在线观看| 欧美日韩三级在线| 欧美一区二区免费观在线| 欧美精品一二三| 日韩欧美国产麻豆| 久久久精品中文字幕麻豆发布| 久久九九99视频| 成人免费一区二区三区在线观看| 1000精品久久久久久久久| 亚洲丝袜自拍清纯另类| 一区二区三国产精华液| 亚洲成人免费av| 蜜臀99久久精品久久久久久软件| 麻豆视频一区二区| 国产91精品入口| 色老汉一区二区三区| 欧美精品久久一区二区三区| 日韩一区二区中文字幕| 欧美经典一区二区三区| 亚洲色图在线视频| 日韩高清欧美激情| 国产成人精品亚洲日本在线桃色| 99久久久国产精品免费蜜臀| 欧美性生活久久| 精品国产一区a| 综合中文字幕亚洲| 天天射综合影视| 成人免费毛片嘿嘿连载视频| 欧美中文字幕久久| 久久蜜桃一区二区| 亚洲一区视频在线| 久久国产精品99精品国产| 成人av午夜影院| 欧美乱熟臀69xxxxxx| 久久久久亚洲综合| 亚洲主播在线播放| 国产毛片精品视频| 欧美巨大另类极品videosbest| 久久伊人蜜桃av一区二区| 亚洲美女在线国产| 激情综合色播激情啊| 欧洲一区在线观看| 国产亚洲欧美日韩在线一区| 亚洲第一综合色| 成人午夜在线播放| 日韩视频在线你懂得| 中文字幕亚洲在| 九九精品一区二区| 欧美做爰猛烈大尺度电影无法无天| 久久综合九色欧美综合狠狠| 偷窥国产亚洲免费视频| 99久久精品国产网站| 精品国产91久久久久久久妲己| 亚洲午夜久久久久久久久电影网| 国产制服丝袜一区| 日韩视频一区二区在线观看| 自拍偷拍欧美激情| 成人性生交大片免费| 精品国产伦一区二区三区观看体验| 亚洲免费av观看| 成人99免费视频| 国产欧美一区二区三区鸳鸯浴| 免费成人在线视频观看| 欧美在线你懂得| 亚洲免费视频中文字幕| 成人免费高清视频| 国产欧美一区视频| 国产很黄免费观看久久| 26uuu色噜噜精品一区| 美女视频一区二区三区| 欧美肥胖老妇做爰| 午夜精品123| 欧美日韩一区二区三区免费看| 综合久久给合久久狠狠狠97色| 成人午夜免费视频| 久久久九九九九| 丁香啪啪综合成人亚洲小说| 337p日本欧洲亚洲大胆色噜噜| 久久9热精品视频| 日韩欧美另类在线| 美女精品一区二区| 欧美成人aa大片| 国内精品国产三级国产a久久| 精品日韩在线一区| 国产福利精品导航|