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

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

?? droplistenersupport.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/tools/dnd/DropListenerSupport.java,v $//$RCSfile: DropListenerSupport.java,v $//$Revision: 1.1.1.1.2.2 $//$Date: 2005/08/09 21:17:57 $//$Author: dietrick $////**********************************************************************package com.bbn.openmap.tools.dnd;import java.awt.event.*;import java.beans.*;import java.util.*;import java.beans.beancontext.*;import com.bbn.openmap.*;import com.bbn.openmap.util.Debug;/** * The DropListenerSupport manages the DefaultDnDCatchers that handle * Drag and Drop events on the map. There should only be one * DropListenerSupport within a MapHandler. *  * DropListenerSupport keeps a list of all DefaultDnDCatcher objects * from a MapHandler. It adds itself to the MapBean as MouseListener * and MouseMotionListener. On MousePressed, MouseDragged, and * MouseReleased events it loops through the DnDCatchers and invokes a * consume() method in each of them. *  * @see DefaultDnDCatcher */public class DropListenerSupport implements PropertyChangeListener,        java.io.Serializable, BeanContextChild, BeanContextMembershipListener,        SoloMapComponent, MouseListener, MouseMotionListener {    /**     * Holds a list of DefaultDndCatchers     */    protected transient Vector dndCatchers = new Vector(2);    /**     * The MapBean.     */    protected transient MapBean map;    /**     * PropertyChangeSupport for handling listeners.     */    protected PropertyChangeSupport pcSupport = new PropertyChangeSupport(this);    /**     * BeanContextChildSupport object provides helper functions for     * BeanContextChild interface.     */    protected BeanContextChildSupport beanContextChildSupport = new BeanContextChildSupport(this);    /**     * Construct a DropListenerSupport without an associated MapBean.     * You will need to set the MapBean via <code>setMap()</code>.     *      * @see #setMap     */    public DropListenerSupport() {        this(null);    }    /**     * Construct a DropListenerSupport with an associated MapBean.     *      * @param map MapBean     */    public DropListenerSupport(MapBean map) {        setMap(map);    }    public void addPropertyChangeListener(PropertyChangeListener listener) {        pcSupport.addPropertyChangeListener(listener);    }    /** Method for BeanContextChild interface. */    public void addPropertyChangeListener(String propertyName,                                          PropertyChangeListener in_pcl) {        pcSupport.addPropertyChangeListener(propertyName, in_pcl);    }    /** Method for BeanContextChild interface. */    public void addVetoableChangeListener(String propertyName,                                          VetoableChangeListener in_vcl) {        beanContextChildSupport.addVetoableChangeListener(propertyName, in_vcl);    }    /**     * BeanContextMembershipListener method. Called when new objects     * are added to the parent BeanContext.     *      * @param bcme event that contains an iterator that can be used to     *        go through the new objects.     */    public void childrenAdded(BeanContextMembershipEvent bcme) {        findAndInit(bcme.iterator());    }    /**     * BeanContextMembershipListener method. Called when objects have     * been removed from the parent BeanContext. The     * DropListenerSupport looks for the MapBean it is managing     * MouseEvents for, and any DefaultDndCatchers that may be     * removed.     *      * @param bcme event that contains an iterator that can be used to     *        go through the removed objects.     */    public void childrenRemoved(BeanContextMembershipEvent bcme) {        Iterator it = bcme.iterator();        while (it.hasNext()) {            findAndUndo(it.next());        }    }    /**     * Called when an object should be evaluated by the     * DropListenerSupport to see if it is needed.     */    public void findAndInit(Object someObj) {        if (someObj instanceof MapBean) {            Debug.message("droplistenersupport",                    "DropListenerSupport found a map.");            setMap((MapBean) someObj);        }        if (someObj instanceof DefaultDnDCatcher) {            getBeanContext().addBeanContextMembershipListener((DefaultDnDCatcher) someObj);            Debug.message("DropListener",                    "DropListener found a DefaultDnDCatcher.");            dndCatchers.addElement(someObj);        }    }    /**     * Eventually gets called when the DropListenerSupport is added to     * the BeanContext, and when other objects are added to the     * BeanContext anytime after that. The DropListenerSupport looks     * for a MapBean to manage MouseEvents for, and DefaultDndCatchers     * to use to manage those events. If a MapBean is added to the     * BeanContext while another already is in use, the second MapBean     * will take the place of the first.     *      * @param it iterator to use to go through the new objects in the     *        BeanContext.     */    public void findAndInit(Iterator it) {        while (it.hasNext()) {            findAndInit(it.next());        }    }    /**     * Called by childrenRemoved.     */    public void findAndUndo(Object someObj) {        if (someObj instanceof MapBean) {            if (getMap() == (MapBean) someObj) {                Debug.message("droplistenersupport",                        "DropListenerSupport: removing the map.");                setMap(null);            }        }    }    public void firePropertyChange(String property, Object oldObj, Object newObj) {        pcSupport.firePropertyChange(property, oldObj, newObj);    }    /**     * Report a vetoable property update to any registered listeners.     * If anyone vetos the change, then fire a new event reverting     * everyone to the old value and then rethrow the     * PropertyVetoException.     * <P>     *      * No event is fired if old and new are equal and non-null.     * <P>     *      * @param name The programmatic name of the property that is about     *        to change     *      * @param oldValue The old value of the property     * @param newValue - The new value of the property     *      * @throws PropertyVetoException if the recipient wishes the     *         property change to be rolled back.     */    public void fireVetoableChange(String name, Object oldValue, Object newValue)            throws PropertyVetoException {        beanContextChildSupport.fireVetoableChange(name, oldValue, newValue);    }    /** Method for BeanContextChild interface. */    public BeanContext getBeanContext() {        return beanContextChildSupport.getBeanContext();    }    /**     * Get the associated MapBean.     *      * @return MapBean     */    public MapBean getMap() {        return map;    }    /**     * Invoked when the mouse has been clicked on a component.     */    public void mouseClicked(java.awt.event.MouseEvent e) {}    /**     * Invoked when a mouse button is pressed on a component and then     * dragged. Mouse drag events will continue to be delivered to the     * component where the first originated until the mouse button is     * released (regardless of whether the mouse position is within     * the bounds of the component).     */    public void mouseDragged(java.awt.event.MouseEvent e) {        for (int i = 0; i < dndCatchers.size(); i++) {            if (((DefaultDnDCatcher) dndCatchers.get(i)).consume(e))                break;        }    }    /**     * Invoked when the mouse enters a component.     */    public void mouseEntered(java.awt.event.MouseEvent e) {}    /**     * Invoked when the mouse exits a component.     */    public void mouseExited(java.awt.event.MouseEvent e) {}    /**     * Invoked when the mouse button has been moved on a component     * (with no buttons no down).     */    public void mouseMoved(java.awt.event.MouseEvent e) {}    /**     * Invoked when a mouse button has been pressed on a component.     */    public void mousePressed(java.awt.event.MouseEvent e) {        for (int i = 0; i < dndCatchers.size(); i++) {            if (((DefaultDnDCatcher) dndCatchers.get(i)).consume(e))                break;        }    }    /**     * Invoked when a mouse button has been released on a component.     */    public void mouseReleased(java.awt.event.MouseEvent e) {        for (int i = 0; i < dndCatchers.size(); i++) {            if (((DefaultDnDCatcher) dndCatchers.get(i)).consume(e))                break;        }    }    /**     * PropertyChangeListenter Interface method.     *      * @param evt PropertyChangeEvent     */    public void propertyChange(PropertyChangeEvent evt) {}    public void removePropertyChangeListener(PropertyChangeListener listener) {        pcSupport.removePropertyChangeListener(listener);    }    /** Method for BeanContextChild interface. */    public void removePropertyChangeListener(String propertyName,                                             PropertyChangeListener in_pcl) {        pcSupport.removePropertyChangeListener(propertyName, in_pcl);    }    /** Method for BeanContextChild interface. */    public void removeVetoableChangeListener(String propertyName,                                             VetoableChangeListener in_vcl) {        beanContextChildSupport.removeVetoableChangeListener(propertyName,                in_vcl);    }    /** Method for BeanContextChild interface. */    public void setBeanContext(BeanContext in_bc) throws PropertyVetoException {        if (in_bc != null) {            in_bc.addBeanContextMembershipListener(this);            beanContextChildSupport.setBeanContext(in_bc);            findAndInit(in_bc.iterator());        }    }    /**     * Set the associated MapBean.     *      * @param mapbean MapBean     */    public void setMap(MapBean mapbean) {        if (map != null) {            map.removePropertyChangeListener(this);            map.removeMouseListener(this);            map.removeMouseMotionListener(this);        }        map = mapbean;        if (map != null) {            map.addPropertyChangeListener(this);            map.addMouseListener(this);            map.addMouseMotionListener(this);        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩高清在线观看| 亚洲.国产.中文慕字在线| 欧美亚洲一区三区| 色综合天天综合在线视频| jlzzjlzz亚洲女人18| eeuss鲁片一区二区三区在线观看| 久久www免费人成看片高清| 日本一区中文字幕| 奇米精品一区二区三区四区| 美女尤物国产一区| 国产成人免费在线视频| 国产成人av电影在线观看| 成人动漫在线一区| 色视频欧美一区二区三区| 欧美日韩国产一级片| 日韩免费看的电影| 久久精品在线观看| 日本一区二区三区国色天香| 亚洲欧美偷拍三级| 亚洲福中文字幕伊人影院| 天堂在线亚洲视频| 国内外成人在线视频| 成人av电影在线网| 精品视频在线免费看| 欧美一级午夜免费电影| 国产精品视频第一区| 一区二区三区四区精品在线视频 | 国产日韩三级在线| 国产精品进线69影院| 亚洲一级二级三级| 久久机这里只有精品| 成人短视频下载| 欧美剧在线免费观看网站| 精品日韩99亚洲| 亚洲色图制服丝袜| 久久国产成人午夜av影院| 99视频超级精品| 欧美第一区第二区| 亚洲欧美自拍偷拍色图| 蜜桃视频在线一区| 一本到三区不卡视频| 欧美r级在线观看| 一区二区三区av电影| 韩国av一区二区三区四区| 精品视频全国免费看| 中文字幕精品三区| 久久 天天综合| 欧美色老头old∨ideo| 国产目拍亚洲精品99久久精品| 亚洲成人在线观看视频| 成人免费视频免费观看| 欧美变态tickling挠脚心| 亚洲激情一二三区| 成人动漫av在线| 精品久久久久av影院 | 欧美性大战久久久久久久蜜臀| www国产成人免费观看视频 深夜成人网 | 99国产精品国产精品久久| 宅男在线国产精品| 亚洲影视在线播放| 成人av在线资源网| 久久久久久久久一| 国内外精品视频| 精品对白一区国产伦| 视频一区中文字幕| 欧美日本在线视频| 亚洲一二三四久久| 欧美自拍偷拍午夜视频| 亚洲激情成人在线| 色综合夜色一区| 亚洲欧美日韩国产综合在线| 成人av免费在线观看| 国产精品乱人伦中文| 成人午夜免费电影| 国产精品色呦呦| 成人精品在线视频观看| 欧美激情一区二区三区在线| 国产成人丝袜美腿| 国产精品久线观看视频| 懂色av一区二区三区免费观看| 久久网这里都是精品| 国产成人午夜电影网| 国产精品另类一区| 91麻豆6部合集magnet| 亚洲狼人国产精品| 欧美日韩一区二区在线视频| 午夜久久久久久电影| 日韩一级片网址| 国产福利视频一区二区三区| 国产精品国产三级国产普通话三级| a亚洲天堂av| 亚洲国产精品自拍| 日韩三级av在线播放| 国产精品1024| 亚洲靠逼com| 欧美日韩视频在线一区二区 | 精品久久一区二区三区| 国产成人亚洲综合色影视| 日韩理论片在线| 91精品国产色综合久久久蜜香臀| 久久国产精品色婷婷| 国产区在线观看成人精品 | 欧美大片一区二区| 国产99久久久国产精品潘金| 日日夜夜精品免费视频| 国产精品国产a| 成人精品免费看| 久久综合色之久久综合| 国产精品资源站在线| 亚洲欧美日本在线| 日韩一级大片在线| 成人高清视频在线观看| 日韩国产一二三区| 国产精品久久久久久久岛一牛影视 | 亚洲综合色区另类av| 欧美一级久久久久久久大片| 成人av在线播放网站| 日韩影院在线观看| 亚洲欧美激情插| 欧美精品一区二区三区在线播放 | 亚洲国产综合色| 国产亚洲精品超碰| 欧美日韩电影一区| youjizz久久| 国内成人自拍视频| 五月综合激情日本mⅴ| 国产精品丝袜一区| 精品久久久久久久久久久久久久久| 91丨porny丨户外露出| 九九精品一区二区| 亚洲va欧美va国产va天堂影院| 中文字幕第一页久久| 精品日韩成人av| 9191成人精品久久| 日本韩国欧美一区| av电影一区二区| 国产 日韩 欧美大片| 久久成人精品无人区| 亚洲r级在线视频| 亚洲精品精品亚洲| 国产精品久久久久7777按摩| 精品盗摄一区二区三区| 日韩欧美高清一区| 欧美一级欧美一级在线播放| 欧美四级电影在线观看| 99在线热播精品免费| 国产91在线|亚洲| 国产精品一区专区| 美美哒免费高清在线观看视频一区二区| 亚洲国产一区视频| 亚洲一卡二卡三卡四卡无卡久久| 亚洲人成伊人成综合网小说| 国产精品二三区| 中文av一区二区| 中文字幕一区二区三区不卡| 一区在线观看免费| 亚洲欧美一区二区久久| 亚洲精品国产视频| 亚洲成av人片观看| 日韩电影在线观看一区| 老司机精品视频在线| 国产一区二区三区四区五区入口| 国产一区二区视频在线| 成人高清视频免费观看| 日本高清视频一区二区| 精品视频色一区| 欧美一区二区黄色| 欧美mv日韩mv国产网站| 久久在线免费观看| 国产精品久久久久久久久图文区| 国产精品久久777777| 一区二区三区在线观看视频| 亚洲国产成人av| 捆绑紧缚一区二区三区视频| 国产乱子伦一区二区三区国色天香| 国产电影精品久久禁18| 91丨porny丨首页| 欧美精品在线观看一区二区| 337p日本欧洲亚洲大胆色噜噜| 亚洲国产精品传媒在线观看| 一区二区成人在线| 蜜臀91精品一区二区三区| 成人性生交大片免费看中文网站| av电影一区二区| 制服丝袜亚洲色图| 国产女同互慰高潮91漫画| 亚洲精品久久久蜜桃| 久久成人羞羞网站| 91黄色小视频| 久久嫩草精品久久久精品 | 在线免费一区三区| 日韩你懂的在线播放| 国产精品不卡一区| 免费观看一级欧美片| av在线不卡免费看| 精品美女在线观看| 一区二区三区四区在线播放| 国产成人在线观看免费网站| 欧美色爱综合网| 国产精品理论在线观看|