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

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

?? mapbean.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            debugmsg("changeLayers() - firing change");        firePropertyChange(LayersProperty, currentLayers, newLayers);        // Tell the new layers that they have been added        for (int i = 0; i < addedLayers.size(); i++) {            ((Layer) addedLayers.elementAt(i)).added(this);        }        addedLayers.removeAllElements();        currentLayers = newLayers;    }    //------------------------------------------------------------    // ProjectionListener interface    //------------------------------------------------------------    /**     * ProjectionListener interface method. Should not be called     * directly.     *      * @param e ProjectionEvent     */    public void projectionChanged(ProjectionEvent e) {        Projection newProj = e.getProjection();        if (!projection.equals(newProj)) {            setProjection(newProj);        }    }    /**     * Set the Mouse cursor over the MapBean component.     *      * @param newCursor Cursor     */    public void setCursor(Cursor newCursor) {        firePropertyChange(CursorProperty, this.getCursor(), newCursor);        super.setCursor(newCursor);    }    /**     * In addition to adding the PropertyChangeListener as the     * JComponent method does, this method also provides the listener     * with the initial version of the Layer and Cursor properties.     */    public void addPropertyChangeListener(PropertyChangeListener pcl) {        super.addPropertyChangeListener(pcl);        pcl.propertyChange(new PropertyChangeEvent(this, LayersProperty, currentLayers, currentLayers));        pcl.propertyChange(new PropertyChangeEvent(this, CursorProperty, this.getCursor(), this.getCursor()));        pcl.propertyChange(new PropertyChangeEvent(this, BackgroundProperty, this.getBckgrnd(), this.getBckgrnd()));    }    protected final void debugmsg(String msg) {        Debug.output(this.toString()                + (DEBUG_TIMESTAMP ? (" [" + System.currentTimeMillis() + "]")                        : "")                + (DEBUG_THREAD ? (" [" + Thread.currentThread() + "]") : "")                + ": " + msg);    }    /**     * Same as JComponent.paint(), except if there are no children     * (Layers), the projection still paints the background and the     * border is painted.     */    public void paint(Graphics g) {        if (getComponentCount() == 0 && projection != null) {            drawProjectionBackground(g);            paintBorder(g);        } else {            super.paint(g);        }    }    /**     * Convenience method to test if Graphics is Graphics2D object,     * and to try to do the right thing.     */    protected void drawProjectionBackground(Graphics g) {        if (g instanceof Graphics2D) {            projection.drawBackground((Graphics2D) g, getBckgrnd());        } else {            g.setColor(getBackground());            projection.drawBackground(g);        }    }    /**     * Same as JComponent.paintChildren() except any PaintListeners     * are notified and the border is painted over the children.     */    public void paintChildren(Graphics g) {        paintChildren(g, null);    }    /**     * Same as paintChildren, but allows you to set a clipping area to     * paint. Be careful with this, because if the clipping area is     * set while some layer decides to paint itself, that layer may     * not have all it's objects painted.     */    public void paintChildren(Graphics g, Rectangle clip) {        g = getMapBeanRepaintPolicy().modifyGraphicsForPainting(g);        if (clip != null) {            g.setClip(clip);        } else {            // Had to do this to make the DrawingTool happy, or            // anything else swing-like that wanted to be around or on            // top of the MapBean.            g.setClip(0, 0, getWidth(), getHeight());        }        drawProjectionBackground(g);        super.paintChildren(g);        // Take care of the PaintListeners...        if (painters != null) {            painters.paint(g);        }        // border gets overwritten accidentally, so redraw it now        paintBorder(g);    }    /**     * Method that provides an option of whether or not to draw the     * border when painting. Usually called from another object trying     * to control the Map appearance when events are flying around.     */    public void paintChildrenWithBorder(Graphics g, boolean drawBorder) {        drawProjectionBackground(g);        if (drawBorder) {            paintChildren(g);        } else {            super.paintChildren(g);        }    }    /**     * Add a PaintListener.     *      * @param l PaintListener     */    public synchronized void addPaintListener(PaintListener l) {        if (painters == null) {            painters = new PaintListenerSupport(this);        }        painters.addPaintListener(l);    }    /**     * Remove a PaintListener.     *      * @param l PaintListener     */    public synchronized void removePaintListener(PaintListener l) {        if (painters == null) {            return;        }        painters.removePaintListener(l);        // Should we get rid of the support if there are no painters?        // The support will get created when a listener is added.        if (painters.size() == 0) {            painters = null;        }    }    //------------------------------------------------------------    // LayerListener interface    //------------------------------------------------------------    /**     * LayerListener interface method. A list of layers will be added,     * removed, or replaced based on on the type of LayerEvent.     *      * @param evt a LayerEvent     */    public void setLayers(LayerEvent evt) {        Layer[] layers = evt.getLayers();        int type = evt.getType();        if (type == LayerEvent.ALL) {            // Don't care about these at all...            return;        }        // @HACK is this cool?:        if (layers == null) {            System.err.println("MapBean.setLayers(): layers is null!");            return;        }        boolean oldChange = getDoContainerChange();        setDoContainerChange(false);        // use LayerEvent.REPLACE when you want to remove all current        // layers        // add a new set        if (type == LayerEvent.REPLACE) {            if (Debug.debugging("mapbean")) {                debugmsg("Replacing all layers");            }            removeAll();            for (int i = 0; i < layers.length; i++) {                // @HACK is this cool?:                if (layers[i] == null) {                    System.err.println("MapBean.setLayers(): layer " + i                            + " is null");                    continue;                }                if (Debug.debugging("mapbean")) {                    debugmsg("Adding layer[" + i + "]= " + layers[i].getName());                }                add(layers[i]);                layers[i].setVisible(true);            }        }        // use LayerEvent.ADD when adding and/or reshuffling layers        else if (type == LayerEvent.ADD) {            if (Debug.debugging("mapbean")) {                debugmsg("Adding new layers");            }            for (int i = 0; i < layers.length; i++) {                if (Debug.debugging("mapbean")) {                    debugmsg("Adding layer[" + i + "]= " + layers[i].getName());                }                add(layers[i]);                layers[i].setVisible(true);            }        }        // use LayerEvent.REMOVE when you want to delete layers from        // the map        else if (type == LayerEvent.REMOVE) {            if (Debug.debugging("mapbean")) {                debugmsg("Removing layers");            }            for (int i = 0; i < layers.length; i++) {                if (Debug.debugging("mapbean")) {                    debugmsg("Removing layer[" + i + "]= "                            + layers[i].getName());                }                remove(layers[i]);            }        }        if (!layerRemovalDelayed) {            purgeAndNotifyRemovedLayers();        }        setDoContainerChange(oldChange);        repaint();        revalidate();    }    /**     * A call to try and get the MapBean to reduce flashing by     * controlling when repaints happen, waiting for lower layers to     * call for a repaint(), too. Calls shouldForwardRepaint(Layer),     * which acts as a policy for whether to forward the repaint up     * the Swing tree.     */    public void repaint(Layer layer) {        //      Debug.output(layer.getName() + " - wants a repaint()");        getMapBeanRepaintPolicy().repaint(layer);    }    /**     * Set the MapBeanRepaintPolicy used by the MapBean. This policy     * can be used to pace/filter layer repaint() requests.     */    public void setMapBeanRepaintPolicy(MapBeanRepaintPolicy mbrp) {        repaintPolicy = mbrp;    }    /**     * Get the MapBeanRepaintPolicy used by the MapBean. This policy     * can be used to pace/filter layer repaint() requests. If no     * policy has been set, a StandardMapBeanRepaintPolicy will be     * created, which simply forwards all requests.     */    public MapBeanRepaintPolicy getMapBeanRepaintPolicy() {        if (repaintPolicy == null) {            repaintPolicy = new StandardMapBeanRepaintPolicy(this);        }        return repaintPolicy;    }    /**     * Convenience function to get the LatLonPoint representing a     * screen location from a MouseEvent. Returns null if the event is     * null, or if the projection is not set in the MapBean. Allocates     * new LatLonPoint with coordinates.     */    public LatLonPoint getCoordinates(MouseEvent event) {        return getCoordinates(event, null);    }    /**     * Convenience function to get the LatLonPoint representing a     * screen location from a MouseEvent. Returns null if the event is     * null, or if the projection is not set in the MapBean. Save on     * memory allocation by sending in the LatLonPoint to fill.     */    public LatLonPoint getCoordinates(MouseEvent event, LatLonPoint llp) {        Projection proj = getProjection();        if (proj == null || event == null) {            return null;        }        if (llp == null) {            return proj.inverse(event.getX(), event.getY());        } else {            return proj.inverse(event.getX(), event.getY(), llp);        }    }    /**     * Interface-like method to query if the MapBean is buffered, so     * you can control behavior better. Allows the removal of specific     * instance-like quieries for, say, BufferedMapBean, when all you     * really want to know is if you have the data is buffered, and if     * so, should be buffer be cleared. For the MapBean, always false.     */    public boolean isBuffered() {        return false;    }    /**     * Interface-like method to set a buffer dirty, if there is one.     * In MapBean, there isn't.     *      * @param value boolean     */    public void setBufferDirty(boolean value) {}    /**     * Checks whether the image buffer should be repainted.     *      * @return boolean whether the layer buffer is dirty. Always true     *         for MapBean, because a paint is always gonna need to     *         happen.     */    public boolean isBufferDirty() {        return true;    }    /**     * If true (default) layers are held when they are removed, and     * then released and notified of removal when the projection     * changes. This saves the layers from releasing resources if the     * layer is simply being toggled on/off for different map views.     */    public void setLayerRemovalDelayed(boolean set) {        layerRemovalDelayed = set;    }    /**     * Return the flag for delayed layer removal.     */    public boolean isLayerRemovalDelayed() {        return layerRemovalDelayed;    }    /**     * Go through the layers, and for all of them that have the     * autoPalette variable turned on, show their palettes.     */    public void showLayerPalettes() {        Component[] comps = this.getComponents();        for (int i = 0; i < comps.length; i++) {            // they have to be layers            if (((Layer) comps[i]).autoPalette) {                ((Layer) comps[i]).showPalette();            }        }    }    /**     * Turn off all layer palettes.     */    public void hideLayerPalettes() {        Component[] comps = this.getComponents();        for (int i = 0; i < comps.length; i++) {            // they have to be layers            ((Layer) comps[i]).hidePalette();        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美在线高清视频| 久久无码av三级| 欧美精品丝袜久久久中文字幕| 欧美综合视频在线观看| 日本成人在线不卡视频| 国产精品色哟哟网站| 欧美精品一二三区| 99视频一区二区三区| 日本成人超碰在线观看| 中文字幕一区二区三| 精品理论电影在线| 欧美久久久一区| bt欧美亚洲午夜电影天堂| 精品一区二区影视| 婷婷中文字幕综合| 亚洲欧美电影一区二区| 国产欧美综合色| 精品国精品自拍自在线| 69堂亚洲精品首页| 欧美影院精品一区| a4yy欧美一区二区三区| 国产suv一区二区三区88区| 蜜臀av性久久久久蜜臀aⅴ四虎| 夜夜精品视频一区二区| 亚洲色图在线播放| 国产精品嫩草影院av蜜臀| 国产午夜精品美女毛片视频| 欧美成人一区二区三区| 欧美理论电影在线| 欧美精品久久99久久在免费线| 在线免费观看一区| 91黄色免费看| 91传媒视频在线播放| 色综合久久久久综合体| 成人av网址在线观看| 成人午夜视频免费看| 粉嫩av一区二区三区在线播放| 日韩欧美一级二级三级久久久| 狠狠色综合色综合网络| 亚洲少妇屁股交4| 日韩一区二区在线观看视频| 不卡电影一区二区三区| 午夜精品久久一牛影视| 久久久久久久久久看片| av一区二区久久| 福利视频网站一区二区三区| 精品国产第一区二区三区观看体验| 极品尤物av久久免费看| 亚洲精品国产成人久久av盗摄| 日韩片之四级片| 免费成人在线网站| 亚洲女子a中天字幕| 国产免费成人在线视频| 欧美在线视频你懂得| 成人动漫在线一区| 国产精品91xxx| 麻豆成人av在线| 秋霞电影一区二区| 视频在线观看一区| 五月天亚洲婷婷| 有坂深雪av一区二区精品| 国产精品天美传媒| 国产精品久线在线观看| 欧美日韩精品一区视频| 欧美日韩国产美| 正在播放亚洲一区| 久久久精品一品道一区| 中文字幕一区二区三区四区| 26uuu国产电影一区二区| 一本大道久久a久久综合婷婷| 成人亚洲精品久久久久软件| 久久99久久精品| 欧美日韩一区二区在线观看视频| 国产精品久久午夜夜伦鲁鲁| 精品成人免费观看| 欧美性受xxxx| 97久久超碰国产精品| 在线电影欧美成精品| 久久亚洲精品国产精品紫薇| 国产精品热久久久久夜色精品三区 | 亚洲品质自拍视频| 亚洲欧美aⅴ...| 婷婷成人激情在线网| 九色综合狠狠综合久久| 六月婷婷色综合| 大胆欧美人体老妇| 欧美日韩综合在线免费观看| 成人午夜av电影| 欧美日韩另类国产亚洲欧美一级| 欧美久久一二三四区| 久久精品在这里| 综合电影一区二区三区 | 精品电影一区二区三区| 国产精品久久网站| 日韩av电影免费观看高清完整版 | 国产精品成人午夜| 亚洲在线中文字幕| 国产91富婆露脸刺激对白| 欧美视频一区二区在线观看| 久久久高清一区二区三区| 午夜精品久久久久久久久| 欧洲在线/亚洲| 亚洲激情图片小说视频| 亚洲精品精品亚洲| 午夜电影网亚洲视频| 国产a视频精品免费观看| 日韩欧美亚洲另类制服综合在线| 久久se精品一区二区| 亚洲午夜私人影院| 久久免费的精品国产v∧| 日韩午夜av电影| 一区二区三区成人在线视频| 高清日韩电视剧大全免费| 欧美成人精品高清在线播放| 亚洲午夜精品一区二区三区他趣| 成人av电影在线观看| 久久色在线观看| 久久精品国产99| 91麻豆精品国产91久久久久久 | 精品欧美乱码久久久久久1区2区| 亚洲卡通欧美制服中文| 成人国产亚洲欧美成人综合网| 有坂深雪av一区二区精品| 另类的小说在线视频另类成人小视频在线| 欧美色老头old∨ideo| 亚洲午夜精品网| 欧美亚洲一区二区在线观看| 亚洲综合成人在线| 91精品国产综合久久久蜜臀粉嫩| 日本在线播放一区二区三区| 精品日韩成人av| 国产精品综合在线视频| 亚洲国产精品二十页| 在线影院国内精品| 亚洲精品国久久99热| 欧美二区三区的天堂| 国产99久久久久久免费看农村| 国产精品久久看| 在线电影欧美成精品| 国产制服丝袜一区| 亚洲色图视频网站| 精品日韩一区二区三区免费视频| 高清国产一区二区三区| 中文字幕一区二区三区在线播放| 久久免费午夜影院| 欧美视频在线观看一区二区| 色丁香久综合在线久综合在线观看| 秋霞电影网一区二区| 亚洲欧美日韩国产一区二区三区| 欧美中文字幕不卡| 欧美巨大另类极品videosbest | 在线精品视频一区二区三四| 精品一区二区三区不卡 | 色菇凉天天综合网| 国产精品理论片| 色中色一区二区| 天堂久久久久va久久久久| 欧美一区二区三区思思人| 精品一区二区三区在线观看| 国产欧美日产一区| 色综合激情久久| 奇米精品一区二区三区在线观看| 精品国产91洋老外米糕| 成人精品在线视频观看| 久久久另类综合| 国产精品久久久久久亚洲伦 | 国产精品午夜久久| 精品国产一区二区三区av性色| 7777精品伊人久久久大香线蕉经典版下载| 北岛玲一区二区三区四区| 国产mv日韩mv欧美| a4yy欧美一区二区三区| 色综合色狠狠综合色| 欧美日本一区二区三区| 91麻豆福利精品推荐| 国产成人精品亚洲777人妖| 国产福利一区二区三区| 黄网站免费久久| 国产精品资源网站| www.在线成人| 成人国产免费视频| 色综合咪咪久久| 欧美日韩国产一区二区三区地区| 欧美日韩国产乱码电影| 精品免费99久久| 久久精品人人做人人综合 | 欧美色视频在线| 欧美亚洲一区二区在线| 91免费在线播放| 日韩欧美电影一区| 国产精品卡一卡二| 免费在线看成人av| 成人av综合在线| 欧美老女人第四色| 亚洲不卡av一区二区三区| 麻豆高清免费国产一区| 6080午夜不卡| 激情av综合网| 国产女同互慰高潮91漫画| 国产91丝袜在线18|