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

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

?? cspeclayer.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
// **********************************************************************// // <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/layer/specialist/CSpecLayer.java,v $// $RCSfile: CSpecLayer.java,v $// $Revision: 1.6.2.2 $// $Date: 2005/08/09 21:17:53 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.specialist;/*  Java Core  */import java.awt.Component;import java.awt.event.MouseEvent;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import org.omg.CORBA.BooleanHolder;import org.omg.CORBA.ShortHolder;import org.omg.CORBA.StringHolder;import com.bbn.openmap.Environment;import com.bbn.openmap.LatLonPoint;import com.bbn.openmap.CSpecialist.CProjection;import com.bbn.openmap.CSpecialist.GraphicChange;import com.bbn.openmap.CSpecialist.LLPoint;import com.bbn.openmap.CSpecialist.Server;import com.bbn.openmap.CSpecialist.ServerHelper;import com.bbn.openmap.CSpecialist.UGraphic;import com.bbn.openmap.CSpecialist.UWidget;import com.bbn.openmap.CSpecialist.GraphicPackage.GraphicType;import com.bbn.openmap.event.InfoDisplayEvent;import com.bbn.openmap.event.MapMouseListener;import com.bbn.openmap.event.SelectMouseMode;import com.bbn.openmap.layer.OMGraphicHandlerLayer;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMGraphicList;import com.bbn.openmap.proj.Projection;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/** * CSpecLayer is a Layer which communicates to CORBA Specialists. * <P> * Properties: * <P> *  * <pre> *  *  # If you have an ior for the server: *  cspeclayermarker.ior= URL to ior *  # If you are using the Naming Service: *  cspeclayermarker.name= SERVER NAME *  # Static Arguments for the server, to be sent on every map request: *  cspeclayermarker.staticArgs= space separated arguments *  # If the network setup allows the server to contact the client (no firewall) *  cspeclayermarker.allowServerUpdates=true/false (false is default) *   * </pre> */public class CSpecLayer extends OMGraphicHandlerLayer implements        MapMouseListener {//    private final static String[] debugTokens = { "debug.cspec" };    /** The property specifying the IOR URL. */    public static final String iorUrlProperty = "ior";    public static final String namingProperty = "name";    /** The property specifying the static arguments. */    public static final String staticArgsProperty = "staticArgs";    /**     * The property to use for specifying whether the GraphicChange     * object should be sent to the server. The server can use the     * GraphicChange object to contact the client to notify it that     * updates are available. This should only be true if the network     * setup allows it to be. Running the client behind a firewall,     * taking with the server through a Gatekeeper, will not allow the     * GraphicChange object to be set. You get a BOA instantiation     * error.     */    public static final String serverUpdateProperty = "allowServerUpdates";    /** IOR URL for the server. */    protected URL iorURL = null;    /** Name of the server. */    protected String naming = null;    /** Arguments passed in from the OverlayTable/properties file. */    protected String staticArgs = null;    /**     * Arguments modified by the Layer, or set by the Bean, at     * runtime. Historical, should use Properties instead.     */    protected String dynamicArgs = null;    protected String clientID = Environment.generateUniqueString();    protected UWidget[] widgets = null;    protected transient CSpecPalette gui = null;    protected transient Server specialist = null;    protected ShortHolder selectDist = new ShortHolder();    protected BooleanHolder wantAreaEvents = new BooleanHolder();    protected GraphicChange notifyOnChange = null;    protected MapGesture mapGesture = new MapGesture();    /**     * Used for the MapMouseListener interface, to track whether to     * listen to mouse events, or not.     */    protected boolean acceptingEvents = false;    /**     * Used to track if a info line was sent, so that a clearing     * message can be sent when it is no longer relevant.     */    protected boolean sentInfoLine = false;    // all the dirty bits    protected int dirtybits = 0;    public final transient static int PALETTE_DIRTY = 0x1;    public final transient static int PREMATURE_FINISH = 0x4;    public final transient static int EXCEPTION = 0x8;    public final transient static int DIRTYMASK = 0xFFFFFFFF;    // new slots    protected boolean showDialogs = Environment.getBoolean("com.bbn.openmap.ShowLayerMessages");    /**     * Default constructor, that sets the MapMouseListener for this     * layer to itself.     */    public CSpecLayer() {        handleGraphicChangeRequests(false);        setProjectionChangePolicy(new com.bbn.openmap.layer.policy.ListResetPCPolicy(this));    }    /**     * Sets whether the notifyOnChange object will actually be set to     * anything. This object can be used to tell the CSpecLayer to go     * to the specialist with a getRectangle. The Layer handles the     * creation of the object if this is set to true. If you are     * working through a firewall, this might not be allowed,     * especially if the client is behind the firewall.     *      * @param setting if the object should be created or not.     */    public void handleGraphicChangeRequests(boolean setting) {        if (setting) {            if (notifyOnChange == null) {                notifyOnChange = new JGraphicChange(this);            }        } else {            notifyOnChange = null;        }    }    /**     *       */    public void finalize() {        if (Debug.debugging("cspec")) {            Debug.output(getName() + "|CSpecLayer.finalize(): calling shutdown");        }        try {            if (specialist != null)                specialist.signoff(clientID);            specialist = null;        } catch (org.omg.CORBA.SystemException e) {            System.err.println(getName() + "|CSpecLayer.finalize(): " + e);        } catch (Throwable t) {            System.err.println(getName() + "|CSpecLayer.finalize(): " + t);        }    }    /**     * Set the properties for the CSpecLayer.     */    public void setProperties(String prefix, java.util.Properties props) {        super.setProperties(prefix, props);        prefix = PropUtils.getScopedPropertyPrefix(prefix);        String url = props.getProperty(prefix + iorUrlProperty);        if (url != null) {            try {                setIorUrl(PropUtils.getResourceOrFileOrURL(null, url));            } catch (MalformedURLException e) {                throw new IllegalArgumentException("\"" + url                        + "\" is malformed.");            }        }        // Get the naming context to get        naming = props.getProperty(prefix + namingProperty);        String staticArgValue = props.getProperty(prefix + staticArgsProperty);        setStaticArgs(staticArgValue);        handleGraphicChangeRequests(PropUtils.booleanFromProperties(props,                prefix + serverUpdateProperty,                notifyOnChange != null));    }    /**     * Gets the argv for the layer from the pseudo-overlay-table.     * Expecting <URL>&rest args.     */    public void setArgs(String argv[]) {        int argc = argv.length;        if (argc == 0) {            // Do nothing.            return;        }        String url = argv[0];        StringBuffer argBuf = new StringBuffer();        if (argc > 1) {            // More arguments, append them into one string and            // pass it off to setArgs.            argBuf.append(argv[1]);            for (int i = 2; i < argc; i++) {                argBuf.append(" ").append(argv[i]);            }        }        //dbg        // Debug.output("----------------------------------------------");        //dbg Debug.output("CSpecLayer " + getName() + ":");        //dbg Debug.output("\tURL: " + url);        //dbg Debug.output("\targs: " + argBuf);        try {            setIorUrl(new URL(url));            if (Debug.debugging("cspec")) {                Debug.output(getName() + "(CSpecLayer) using ior from " + url);            }        } catch (MalformedURLException e) {            throw new IllegalArgumentException("\"" + url + "\""                    + " is not a well formed URL");        }        setStaticArgs(argBuf.toString());    }    /**     * get the specialist proxy.     *      * @return Server specialist server or null if error.     */    public Server getSpecialist() {        if (specialist == null) {            initSpecialist();        }        return specialist;    }    /**     * Bind to the specialist server.     */    private void initSpecialist() {        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);            specialist = ServerHelper.narrow(object);        } catch (IOException ioe) {            if (Debug.debugging("cspec")) {                Debug.output(getName()                        + "(CSpecLayer).initSpecialist() IO Exception with ior: "                        + iorURL);            }            specialist = null;            return;        }        if (specialist == null) {            object = cs.resolveName(naming);            if (object != null) {                specialist = ServerHelper.narrow(object);                if (Debug.debugging("cspec")) {                    Debug.output("Have a specialist:");                    Debug.output("*** Specialist Server: is a "                            + specialist.getClass().getName() + "\n"                            + specialist);                }            }        }        if (specialist == null) {            if (Debug.debugging("cspec")) {                System.err.println("CSpecLayer.initSpecialist: null specialist!\n  IOR="                        + ior + "\n  Name = " + naming);            }        }    }    /**     * Set the server, if you've taken special steps to create on, or     * want to null out the current one to reset the connection.     */    public void setSpecialist(Server aSpecialist) {        specialist = aSpecialist;        if (specialist == null) {            widgets = null;            gui = null;            setList(null);        }    }    /**     * Interface Layer method to get the dynamic args.     *      * @return String args     */    public String getArgs() {        return dynamicArgs;    }    /**     * Method to set the dynamic args.     *      * @param args String     */    public void setArgs(String args) {        dynamicArgs = args;    }    /**     * Interface Layer method to get the static args, which are     * usually set via the openmap.properties file, or     * setProperties().     */    public String getStaticArgs() {        return staticArgs;    }    /**     * Interface Layer method to set the static args, which are     * usually set via the openmap.properties file.     */    public void setStaticArgs(String args) {        staticArgs = args;    }    public URL getIorUrl() {        return iorURL;    }    public void setIorUrl(URL url) {        iorURL = url;    }    /**     * Perform the getRectangle() call on the specialist.     *      * @param p Projection     * @return UGraphic[] graphic list or null if error     */    protected UGraphic[] getSpecGraphics(Projection p) {        CProjection cproj;        LLPoint ll1, ll2;        StringHolder dynamicArgsHolder;        UGraphic[] graphics = null;        Server spec = getSpecialist();        if (Debug.debugging("cspec"))            Debug.output(getName() + "|CSpecLayer.getSpecGraphics()");        cproj = new CProjection((short) (p.getProjectionType()), new LLPoint(p.getCenter()                .getLatitude(), p.getCenter().getLongitude()), (short) p.getHeight(), (short) p.getWidth(), (int) p.getScale());        // lat-lon "box", (depends on the projection)        LatLonPoint ul = p.getUpperLeft();        LatLonPoint lr = p.getLowerRight();        ll1 = new LLPoint(ul.getLatitude(), ul.getLongitude());        ll2 = new LLPoint(lr.getLatitude(), lr.getLongitude());        // check for cancellation        if (isCancelled()) {            dirtybits |= PREMATURE_FINISH;            if (Debug.debugging("cspec"))                Debug.output(getName()                        + "|CSpecLayer.getSpecGraphics(): aborted.");            return null;        }        // check for null specialist        if (spec == null) {            if (Debug.debugging("cspec")) {                System.err.println(getName()                        + "|CSpecLayer.getSpecGraphics(): null specialist!");            }            return null;        }        try {            // Keep the gestures up-to-date            mapGesture.setProjection(p);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99久久99| 成人av在线观| 亚洲日本va在线观看| 7777精品伊人久久久大香线蕉 | 91成人免费在线视频| 精品一区二区影视| 亚洲高清不卡在线| 亚洲欧洲精品一区二区精品久久久| 91精品婷婷国产综合久久竹菊| 色综合天天综合狠狠| 国产麻豆精品95视频| 麻豆中文一区二区| 亚洲电影在线播放| 亚洲男人都懂的| 国产拍欧美日韩视频二区| 日韩天堂在线观看| 亚洲三级在线观看| 久久久久国产精品免费免费搜索| 欧美三级视频在线播放| 成人在线综合网站| 国产麻豆精品theporn| 麻豆91在线播放| 日韩精品成人一区二区在线| 一区二区三区四区高清精品免费观看 | 亚洲一区二区精品视频| 中文字幕一区二区三区av| 久久久久国产免费免费| 日韩免费在线观看| 777午夜精品免费视频| 欧美色综合影院| 日本高清成人免费播放| 色婷婷久久久久swag精品| 9久草视频在线视频精品| 不卡视频一二三| 99久久777色| 91在线观看视频| 色综合久久久网| 91网页版在线| 色激情天天射综合网| 在线免费观看日本一区| 91国偷自产一区二区三区成为亚洲经典 | 91精品国产手机| 9191精品国产综合久久久久久| 欧美午夜不卡视频| 欧美日韩一区二区三区在线看| 欧美性色综合网| 欧美日韩日本视频| 欧美一级一区二区| 精品盗摄一区二区三区| 26uuuu精品一区二区| 久久精品亚洲精品国产欧美kt∨| 日本一区二区视频在线| 国产精品美女久久福利网站| 亚洲同性gay激情无套| 亚洲欧美日韩在线| 图片区日韩欧美亚洲| 蜜桃av一区二区在线观看| 国产一区在线看| av中文字幕不卡| 欧美在线一二三四区| 欧美二区乱c少妇| 精品国产91乱码一区二区三区| 国产亚洲综合在线| 1000部国产精品成人观看| 亚欧色一区w666天堂| 日本不卡视频在线| 国产成人av福利| 在线视频综合导航| 日韩欧美国产高清| 国产精品久久久久一区二区三区共| 亚洲精品ww久久久久久p站| 午夜精品久久久久影视| 国产伦精品一区二区三区免费迷| 精品人伦一区二区色婷婷| 久久精品网站免费观看| 椎名由奈av一区二区三区| 亚洲一区二区三区影院| 捆绑紧缚一区二区三区视频| gogogo免费视频观看亚洲一| 欧美日韩国产免费| 日本一区二区三区四区| 亚洲在线视频一区| 国产在线播放一区| 欧美中文字幕一区二区三区亚洲 | 91精品久久久久久蜜臀| 国产日韩精品一区二区三区在线| 亚洲一区二区五区| 国产成人日日夜夜| 欧美欧美午夜aⅴ在线观看| 亚洲国产精品传媒在线观看| 日日摸夜夜添夜夜添精品视频 | 一本色道**综合亚洲精品蜜桃冫| 精品久久久久一区| 亚洲国产一区二区在线播放| 国v精品久久久网| 91精品国产综合久久小美女| 亚洲欧洲三级电影| 国产麻豆视频精品| 538在线一区二区精品国产| 亚洲三级小视频| 国产成人在线免费观看| 欧美一级爆毛片| 亚洲高清免费一级二级三级| av电影在线观看不卡| 欧美精品一区二区三区很污很色的 | 国产麻豆午夜三级精品| 3atv一区二区三区| 一区二区三区成人在线视频| 波多野结衣中文一区| 久久精品一区二区三区不卡| 日本不卡123| 欧美麻豆精品久久久久久| 亚洲欧美日韩久久| 大尺度一区二区| 久久噜噜亚洲综合| 韩国精品主播一区二区在线观看| 亚洲精品乱码久久久久久| 成人福利电影精品一区二区在线观看| 日韩一区二区免费在线观看| 午夜激情久久久| 欧美图片一区二区三区| 亚洲黄色免费网站| 91蝌蚪porny成人天涯| 欧美国产综合一区二区| 国产综合色在线视频区| 精品国产乱码久久久久久牛牛| 日本人妖一区二区| 欧美一区午夜视频在线观看 | 成人听书哪个软件好| 26uuu成人网一区二区三区| 美女网站视频久久| 538在线一区二区精品国产| 视频一区中文字幕国产| 欧美卡1卡2卡| 麻豆精品视频在线观看| 日韩视频在线一区二区| 日韩成人免费电影| 91麻豆精品国产| 免费成人美女在线观看.| 欧美一级久久久久久久大片| 免费成人在线网站| 日韩欧美视频一区| 久久精品国产成人一区二区三区| 欧美一区二区三区四区五区 | 欧美人伦禁忌dvd放荡欲情| 亚洲成人免费电影| 欧美一区二区不卡视频| 精品一区二区久久久| 久久精品日韩一区二区三区| 成人午夜激情片| 一二三区精品视频| 亚洲一区二区中文在线| 91精品免费观看| 国产在线精品一区二区三区不卡| 国产日韩欧美制服另类| 99久久国产综合精品麻豆| 一区二区三区四区高清精品免费观看 | 成人欧美一区二区三区视频网页| 91丨九色porny丨蝌蚪| 日欧美一区二区| 久久综合一区二区| 92国产精品观看| 亚洲妇熟xx妇色黄| 久久夜色精品国产欧美乱极品| 国产91精品在线观看| 一区二区在线看| 日韩欧美视频在线| 不卡的电影网站| 日韩成人av影视| 国产拍欧美日韩视频二区| 91精品办公室少妇高潮对白| 强制捆绑调教一区二区| 中文在线资源观看网站视频免费不卡| 色综合天天综合色综合av | 国产精品视频一二三区| 在线观看中文字幕不卡| 精品一区二区综合| 一区二区欧美国产| 精品乱人伦一区二区三区| 91在线视频观看| 狠狠色丁香久久婷婷综合_中 | 亚洲电影视频在线| 国产日本亚洲高清| 欧美酷刑日本凌虐凌虐| 成人影视亚洲图片在线| 日韩va欧美va亚洲va久久| 中文字幕在线不卡视频| 欧美乱熟臀69xxxxxx| k8久久久一区二区三区 | 亚洲国产日韩综合久久精品| 久久精品人人做人人爽人人 | 国产精品三级av| 亚洲国产视频一区| 国产欧美精品一区| 欧美一区二区三区白人 | 久久综合九色综合欧美98| 欧美视频在线一区| www.久久精品| 国产aⅴ精品一区二区三区色成熟| 亚洲大片在线观看|