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

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

?? corbaimageplugin.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/corba/com/bbn/openmap/plugin/corbaImage/CorbaImagePlugIn.java,v $// $RCSfile: CorbaImagePlugIn.java,v $// $Revision: 1.3.2.2 $// $Date: 2005/08/09 21:17:58 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.plugin.corbaImage;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.util.Properties;import javax.swing.ImageIcon;import com.bbn.openmap.image.ImageServerConstants;import com.bbn.openmap.omGraphics.OMGraphicList;import com.bbn.openmap.omGraphics.OMRaster;import com.bbn.openmap.plugin.WebImagePlugIn;import com.bbn.openmap.plugin.corbaImage.corbaImageServer.Server;import com.bbn.openmap.plugin.corbaImage.corbaImageServer.ServerHelper;import com.bbn.openmap.proj.Projection;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/**  * * This class asks for an image from a CorbaImageServer.  There will * be some CORBA setup involved with using this PlugIn.  You'll need * to run some kind of name service, and register the CorbaImageServer * with it, or have the server write out its IOR file to a location * reachable from this client. <P> * * The query to the CorbaImageServer looks something like this: * <P> * REQUEST=MAP&PROJTYPE=projection_type_value&SCALE=scale_value&LAT=center_latitude&LON=center_longitude&HEIGHT=map_pixel_height&WIDTH=map_pixel_width&FORMAT=image_format&TRANSPARENT=true|false&BGCOLOR=background_color * * <P> The projection information will be entered automatically by the * plugin based on the projection it receives from the MapBean.  The * other parameters can be entered in the properties for the layer. * * #For the plugin layer * pluginlayer.class=com.bbn.openmap.plugin.PlugInLayer * pluginlayer.prettyName=Whatever * pluginlayer.plugin=com.bbn.openmap.plugin.CorbaImage.CorbaImagePlugIn * pluginlayer.plugin.name=Corba Naming Service Name (needed if ior is not provided) * pluginlayer.plugin.ior=URL to ior file (needed if name is not provided) * pluginlayer.plugin.format=image format (JPEG, GIF from WMTConstants.java) * pluginlayer.plugin.transparent=true or false, depends on imageformat * pluginlayer.plugin.backgroundColor=RGB hex string (RRGGBB)  */public class CorbaImagePlugIn extends WebImagePlugIn implements ImageServerConstants {    protected String queryHeader = null;    protected String imageFormat = null;    protected String backgroundColor = null;    protected boolean transparent = false;    public final static String ImageFormatProperty = "format";    public final static String BackgroundColorProperty = "backgroundColor";    public final static String TransparentProperty = "transparent";    /** The property specifying the IOR URL. */    public static final String iorUrlProperty = "ior";    /** The name of the server, using the name service.*/    public static final String namingProperty = "name";    /** The Server. */    protected transient Server server = null;    /** The URL used for the IOR, to connect to the server that way. */    protected URL iorURL = null;    /** The string used for the CORBA naming service. */    protected String naming = null;    public CorbaImagePlugIn() {}    /**     * When a projection is received, translate it into a valid     * request for a SimpleHttpImageServer, and then return the image     * received back from it.     *      * @param p projection of the screen, holding scale, center     * coords, height, width.       * @return an OMGraphicList with an image received from a CorbaImage.       */    public String createQueryString(Projection p) {        if (queryHeader == null) {            return null;        }        StringBuffer buf = new StringBuffer(queryHeader);        buf.append(REQUEST + "=" + MAP + "&");        if (p != null) {            buf.append(PROJTYPE + "=" + p.getName() + "&" +                       SCALE + "=" + p.getScale() + "&" +                       LAT + "=" + p.getCenter().getLatitude() + "&" +                       LON + "=" + p.getCenter().getLongitude() + "&" +                       HEIGHT + "=" + p.getHeight() + "&" +                       WIDTH + "=" + p.getWidth());        } else {            buf.append(PROJTYPE + "=name_undefined&" +                       SCALE + "=scale_undefined&" +                       LAT + "=center_lat_undefined&" +                       LON + "=center_lon_undefined&" +                       HEIGHT + "=height_undefined&" +                       WIDTH + "=width_undefined");        }        if (imageFormat != null) {            buf.append("&" + FORMAT + "=" + imageFormat);        }        if (transparent) {            buf.append("&" + TRANSPARENT + "=true");        }        if (backgroundColor != null) {            buf.append("&" + BGCOLOR + "=" + backgroundColor);        }        String layers = getLayerMarkers();        if (layers != null) {            buf.append("&" + layers);        }        return buf.toString();    }    public String getServerName() {        return queryHeader;    }    public String getLayerMarkers() {        // Not implemented - should be a list that can be set by the user.        return null;    }    /**     * 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) {        OMGraphicList list = new OMGraphicList();                currentProjection = p;        String urlString = createQueryString(p);        if (Debug.debugging("cis")) {            Debug.output("CorbaImagePlugIn.getRectangle() with \"" + urlString + "\"");        }        if (urlString == null) {            return list;        }        Server serv = getServer();        if (serv == null) return null;        byte[] imageData;        Debug.message("cis", "CorbaImagePlugIn: requesting image data from server...");        try {            imageData = serv.getImage(urlString);            if (Debug.debugging("cis")){                Debug.output("CorbaImagePlugIn: got image data length " +                              imageData.length);            }            ImageIcon ii = new ImageIcon(imageData);            OMRaster image = new OMRaster((int)0, (int)0, ii);            list.add(image);        } catch (org.omg.CORBA.SystemException e){            handleCORBAError(e);            server = null;        }        list.generate(p);        return list;    } //end getRectangle    /**     * PropertyConsumer method.     */    public void setProperties(String prefix, Properties setList) {        super.setProperties(prefix, setList);        prefix = PropUtils.getScopedPropertyPrefix(prefix);                imageFormat = setList.getProperty(prefix + ImageFormatProperty);        transparent =  PropUtils.booleanFromProperties(setList, prefix + TransparentProperty, false);        backgroundColor = setList.getProperty(prefix + BackgroundColorProperty);        String url = setList.getProperty(prefix + iorUrlProperty);        if (url != null) {            try {                iorURL = PropUtils.getResourceOrFileOrURL(url);            } catch (MalformedURLException e) {                throw new IllegalArgumentException("\"" + url + "\""                                                   + " is malformed.");            }        }        naming = setList.getProperty(prefix + namingProperty);        Debug.message("cis", "CorbaImagePlugIn.setProperties(): naming = " + naming);        queryHeader = "";        if (Debug.debugging("plugin")){            Debug.output("CorbaImagePlugIn: set up with header \"" + queryHeader + "\"");        }    }    /**     * PropertyConsumer method.     */    public Properties getProperties(Properties getList) {        getList = super.getProperties(getList);        String prefix = PropUtils.getScopedPropertyPrefix(this);        String iorString = null;        if (iorURL != null) {            iorString = iorURL.toString();        }        getList.put(prefix + iorUrlProperty, PropUtils.unnull(iorString));        getList.put(prefix + namingProperty, PropUtils.unnull(naming));        getList.put(prefix + ImageFormatProperty, PropUtils.unnull(imageFormat));        getList.put(prefix + TransparentProperty, new Boolean(transparent).toString());        getList.put(prefix + BackgroundColorProperty, PropUtils.unnull(backgroundColor));        return getList;    }        /**     * PropertyConsumer method.     */    public Properties getPropertyInfo(Properties list) {        list = super.getPropertyInfo(list);        list.put(iorUrlProperty, "The URL of the ior file for the server.");        list.put(namingProperty, "The Naming Services Name of the server.");        list.put(ImageFormatProperty, "Image format (JPEG|GIF|PPM|PNG)");        list.put(TransparentProperty, "Whether the background should be transparent");        list.put(TransparentProperty + ScopedEditorProperty,                 "com.bbn.openmap.util.propertyEditor.YesNoPropertyEditor");        list.put(BackgroundColorProperty, "Background color for image.");        list.put(BackgroundColorProperty + ScopedEditorProperty,                  "com.bbn.openmap.util.propertyEditor.ColorPropertyEditor");        return list;    }    /**     * Set the name used for the CORBA naming service.     */    public void setNaming(String CORBAName){        naming = CORBAName;    }    /**     * Get the name used for the CORBA naming service.     */    public String getNaming(){        return naming;    }    /**     * If you want to connect to the server using an ior, set the URL     * where it is located.       */    public void setIorURL(URL iorurl){        iorURL = iorurl;    }    /**     * Get the URL for the ior.     */    public URL getIorURL(){        return iorURL;    }    ////////////////  Corba management    /**     * get the server proxy.     *     * @return Server server or null if error.     *     */    public Server getServer () {        if (server == null)            initServer();        return server;    }    /**     * bind to the server.     */    private void initServer() {        String ior = null;        org.omg.CORBA.Object object = null;        com.bbn.openmap.util.corba.CORBASupport cs =             new com.bbn.openmap.util.corba.CORBASupport();        try {            object = cs.readIOR(iorURL);            server = ServerHelper.narrow(object);        } catch (IOException ioe) {            if (Debug.debugging("cis")) {                Debug.output(getName() + "(CIS).initServer() IO Exception with ior: " + iorURL);            }            server = null;            return;        }        if (server == null) {            object = cs.resolveName(naming);                        if (object != null) {                server = ServerHelper.narrow(object);                if (Debug.debugging("cis")) {                    Debug.output("Have a CorbaImageServer:" );                    Debug.output("*** Server: is a " +                                  server.getClass().getName() + "\n" +                                  server);                }            }         }        if (Debug.debugging("cis")) {            if (server == null) {                Debug.error("CIS.initServer: null server!\n  IOR=" + ior + "\n  Name = " + naming);            } else {                Debug.output("CIS: server is golden.");            }        }    }        protected void handleCORBAError(org.omg.CORBA.SystemException e){        // don't freak out if we were only interrupted...        if (e.toString().indexOf("InterruptedIOException") != -1) {            Debug.error("CorbaImagePlugIn server communication interrupted!");        } else {            Debug.error("CorbaImagePlugIn caught CORBA exception: " + e + "\n" +                        "CorbaImagePlugIn Exception class: " +                         e.getClass().getName() + "\nSpecific Message: " +                        e.getMessage());            e.printStackTrace();        }        server = null;// dontcha just love CORBA? reinit later    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看91精品国产麻豆| 蜜臀久久99精品久久久画质超高清| 欧美性三三影院| 国精产品一区一区三区mba视频| 亚洲色欲色欲www| 日韩精品一区二区三区在线观看| 91色在线porny| 国产精品一区二区在线观看不卡 | 亚洲综合清纯丝袜自拍| 精品裸体舞一区二区三区| 欧洲一区二区三区在线| 成年人国产精品| 国产一区91精品张津瑜| 日本v片在线高清不卡在线观看| 亚洲人精品午夜| 国产欧美日韩三级| 精品国产污污免费网站入口| 欧美久久一二三四区| 91视视频在线观看入口直接观看www| 久久er99精品| 日韩电影在线免费看| 亚洲永久精品大片| 亚洲另类在线一区| 国产精品福利影院| 国产精品污污网站在线观看 | 国产精品不卡视频| 国产日韩亚洲欧美综合| 久久综合九色综合欧美98 | 亚洲精品中文字幕在线观看| 欧美经典一区二区三区| 久久久久久久久久久黄色| 欧美不卡视频一区| 日韩精品中文字幕在线一区| 日韩精品中文字幕在线不卡尤物| 日韩免费性生活视频播放| 欧美一区日韩一区| 日韩欧美电影在线| 精品久久人人做人人爽| 精品福利av导航| 久久久影院官网| 国产日韩欧美麻豆| 国产精品色呦呦| 最新日韩av在线| 一区二区三区美女视频| 一区二区欧美在线观看| 亚洲高清久久久| 免费成人美女在线观看.| 久久国产夜色精品鲁鲁99| 久久精品99国产精品日本| 国产麻豆精品95视频| 成人久久视频在线观看| 色综合久久久久网| 欧美日韩在线电影| 日韩一区二区三区高清免费看看| 欧美精品一区二区三区四区| 久久久久久久久久看片| 亚洲视频你懂的| 亚洲综合久久av| 日韩av一区二| 国产成人亚洲综合a∨猫咪| caoporn国产精品| 欧美特级限制片免费在线观看| 欧美精品在线一区二区三区| 精品国内片67194| 国产精品美女久久久久久久久久久| 亚洲桃色在线一区| 天堂av在线一区| 国产乱子伦视频一区二区三区| av中文字幕一区| 在线不卡中文字幕| 久久久www成人免费毛片麻豆| 日韩理论在线观看| 视频一区在线视频| 国产精品1024| 色噜噜久久综合| 欧美成人精品1314www| 久久久蜜臀国产一区二区| 亚洲精品视频在线看| 蜜桃视频在线观看一区二区| 不卡一区中文字幕| 69p69国产精品| 欧美国产一区视频在线观看| 亚洲国产精品自拍| 成人精品免费看| 欧美精品一二三| 中文一区二区完整视频在线观看| 亚洲成人一区二区| www.亚洲精品| 日韩欧美国产精品| 一区二区三区日韩精品视频| 国产成人自拍高清视频在线免费播放| 91色.com| 久久久精品人体av艺术| 天堂成人国产精品一区| 99v久久综合狠狠综合久久| 日韩午夜电影av| 亚洲国产日日夜夜| caoporen国产精品视频| 欧美一级艳片视频免费观看| 亚洲精品免费在线观看| 国产精品一区二区三区网站| 7777精品伊人久久久大香线蕉最新版| 国产精品国产三级国产aⅴ中文| 久久国产乱子精品免费女| 欧美综合视频在线观看| 国产视频一区二区在线观看| 免费看黄色91| 欧美日韩视频在线第一区| 成人欧美一区二区三区白人| 国产精品中文字幕日韩精品| 7777精品伊人久久久大香线蕉完整版 | 精品成人免费观看| 午夜精品一区二区三区电影天堂| 99久久精品情趣| 中文字幕欧美国产| 国产高清亚洲一区| 精品少妇一区二区三区在线播放 | 欧美日韩成人一区| 一区二区三区**美女毛片| 99久久精品免费观看| 国产精品免费视频网站| 国产高清不卡一区| 久久亚洲免费视频| 狠狠色综合日日| 精品国产一区久久| 久久丁香综合五月国产三级网站| 91精品国产综合久久久久久漫画 | 亚洲午夜在线视频| 91免费国产视频网站| 中文字幕字幕中文在线中不卡视频| 粉嫩一区二区三区在线看| 久久久精品免费观看| 国产精品一区二区三区四区| 久久精品亚洲一区二区三区浴池| 精品一二三四在线| 精品国产乱码久久| 黄网站免费久久| 国产性做久久久久久| 成人一区二区在线观看| 日本一区二区在线不卡| 99久精品国产| 一区二区三区四区不卡视频| 欧美特级限制片免费在线观看| 首页国产欧美日韩丝袜| 日韩女优视频免费观看| 国产一区二区看久久| 亚洲国产精品99久久久久久久久| 国产精品456| 国产精品美女一区二区| 日本韩国欧美一区| 天天av天天翘天天综合网色鬼国产| 在线电影一区二区三区| 久久疯狂做爰流白浆xx| 欧美激情一区二区| 91一区二区三区在线观看| 亚洲国产成人av网| 精品少妇一区二区三区日产乱码| 国产精品一区专区| 亚洲精品国产高清久久伦理二区| 欧美三级午夜理伦三级中视频| 日本中文字幕一区二区视频| 精品黑人一区二区三区久久| 不卡一区二区三区四区| 一区二区三区在线观看视频| 3atv在线一区二区三区| 国产精品1区2区3区| 亚洲人成在线观看一区二区| 91精品国模一区二区三区| 国产精品乡下勾搭老头1| 亚洲欧美韩国综合色| 7777精品久久久大香线蕉| 国产成人亚洲精品狼色在线| 一区二区三区精品视频在线| 欧美电影免费观看高清完整版在| 成人自拍视频在线| 亚洲成人1区2区| 国产亚洲欧美中文| 欧美日韩精品一区二区| 国产一区二区三区免费观看| 亚洲男人的天堂在线aⅴ视频| 欧美精品vⅰdeose4hd| 国产一区不卡在线| 午夜在线电影亚洲一区| 国产日韩精品一区二区浪潮av| 在线观看区一区二| 国产91丝袜在线观看| 五月天中文字幕一区二区| 欧美激情在线一区二区| 日韩一级成人av| 91福利社在线观看| 国产超碰在线一区| 久久99久久精品| 亚洲国产日韩av| 国产精品美女久久久久久久| 日韩精品一区在线| 在线电影一区二区三区| 色综合久久中文综合久久牛| 国产91精品在线观看| 毛片一区二区三区| 亚洲一卡二卡三卡四卡五卡|