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

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

?? crfpclient.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// **********************************************************************// // <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/rpf/corba/CRFPClient.java,v $// $RCSfile: CRFPClient.java,v $// $Revision: 1.3.2.2 $// $Date: 2005/08/09 21:17:59 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.rpf.corba;import java.awt.Point;import java.awt.image.BufferedImage;import java.io.ByteArrayInputStream;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.util.Vector;import com.bbn.openmap.Environment;import com.bbn.openmap.layer.rpf.RpfCoverageBox;import com.bbn.openmap.layer.rpf.RpfFrameProvider;import com.bbn.openmap.layer.rpf.RpfIndexedImageData;import com.bbn.openmap.layer.rpf.RpfViewAttributes;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.CRFPCADRGProjection;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.CRFPCoverageBox;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.CRFPViewAttributes;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.LLPoint;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.RawImage;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.Server;import com.bbn.openmap.layer.rpf.corba.CRpfFrameProvider.ServerHelper;import com.bbn.openmap.omGraphics.OMColor;import com.bbn.openmap.proj.CADRG;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageDecoder;/** * An implementation of the RpfFrameProvider interface that uses CORBA * to get the subframe data via a server. The image data is * transmitted in jpeg format. This class requires the sunw package * that handles jpeg encoding/decoding. * <P> *  * The client can connect to the server in two different ways. The * client can locate the server using an IOR file that the server has * written. This IOR file is read using an URL. The server can also be * located using the CORBA naming service. The name should be in a * three part fomat <ROOT name>/ <PART2>/ <PART3>. The root name has * to be known by the nameserver and the entire string has to be used * by the server on startup. If both the IOR and name string are set, * the IOR is the thing that gets used. */public class CRFPClient implements RpfFrameProvider {    /** 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 nameProperty = "name";    /** The property specifying the initial JPEG quality. */    public static final String JPEGQualityProperty = "jpegQuality";    /** The CRFPServer. */    protected transient Server server = null;    /** The string used for the CORBA naming service. */    protected String naming = null;    /** The URL used for the IOR, to connect to the server that way. */    protected URL iorURL = null;    private String clientID = Environment.generateUniqueString();    /**     * The compression quality of the images. Lower quality images are     * smaller.     */    public float jpegQuality = .8f;    /**     * We'll set up the connection to the server when it's needed, but     * not here.     */    public CRFPClient() {}    /**     * Set the JPEG quality parameter for subframe transfer.     *      * @param jq number between 0 and 1, should be between .4 and .8.     *        Anything else is a waste.     */    public void setJpegQuality(float jq) {        jpegQuality = jq;    }    /**     * Get the quality setting for JPEG subframe retrieval.     *      * @return float reflecting JPEG quality.     */    public float getJpegQuality() {        return jpegQuality;    }    /**     * 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;    }    /**     * Get the clientID string that is used by the server to keep     * track of clients. This string in internally generated.     */    public String getClientID() {        return clientID;    }    /**     * Set all the RPF properties from a properties object.     */    public void setProperties(String prefix, java.util.Properties properties) {        prefix = PropUtils.getScopedPropertyPrefix(prefix);        jpegQuality = PropUtils.floatFromProperties(properties, prefix                + JPEGQualityProperty, .8f);        String url = properties.getProperty(prefix + iorUrlProperty);        if (url != null) {            try {                iorURL = PropUtils.getResourceOrFileOrURL(url);            } catch (MalformedURLException e) {                throw new IllegalArgumentException("\"" + url + "\""                        + " is malformed.");            }        }        naming = properties.getProperty(prefix + nameProperty);    }    /**     * When the client is deleted, it should sign off from the server,     * so that it can free up it's cache for it.     */    protected void finalize() {        if (Debug.debugging("crfp")) {            Debug.output("CRFPClient.finalize(): calling shutdown");        }        try {            if (server != null) {                server.signoff(clientID);            }            server = null;        } catch (org.omg.CORBA.SystemException e) {            Debug.error("CRFPClient.finalize(): " + e);        } catch (Throwable t) {            Debug.error("CRFPClient.finalize(): " + t);        }    }    /**     * Returns true because the view attributes should be set if they     * change at the RpfCacheHandler/RpfCacheManager.     */    public boolean needViewAttributeUpdates() {        return true;    }    /**     * Set the RpfViewAttribute object parameters, which describes     * alot about what you'll be asking for later.     *      * @param rva the view attributes.     */    public void setViewAttributes(RpfViewAttributes rva) {        Server serv = getServer();        if (serv == null || rva == null) {            return;        }        try {            serv.setViewAttributes(new CRFPViewAttributes((short) rva.numberOfColors, (short) rva.opaqueness, rva.scaleImages, rva.imageScaleFactor, rva.chartSeries),                    clientID);            Debug.message("crfp", "CRFPClient: setting attributes.");        } catch (org.omg.CORBA.SystemException e) {            handleCORBAError(e);        }    }    /**     * Given a projection that describes a map or geographical area,     * return RpfCoverageBoxes that let you know how to locate and ask     * for RpfSubframes.     *      * @param ullat NW latitude.     * @param ullon NW longitude     * @param lrlat SE latitude     * @param lrlon SE longitude     * @param p a CADRG projection     */    public Vector getCoverage(float ullat, float ullon, float lrlat,                              float lrlon, CADRG p) {        CRFPCoverageBox[] boxes;        Server serv = getServer();        if (serv == null)            return new Vector();        LLPoint llpoint = new LLPoint(p.getCenter().getLatitude(), p.getCenter()                .getLongitude());        CRFPCADRGProjection proj = new CRFPCADRGProjection(llpoint, (short) p.getHeight(), (short) p.getWidth(), p.getScale(), (short) p.getZone());        Debug.message("crfp", "CRFPClient: getting coverage from server.");        try {            boxes = serv.getCoverage(ullat, ullon, lrlat, lrlon, proj, clientID);            return translateCRFPCoverageBoxes(boxes);        } catch (org.omg.CORBA.SystemException e) {            handleCORBAError(e);        }        return new Vector();    }    /**     * Given a projection that describes a map or geographical area,     * return RpfCoverageBoxes that let you know what bounding boxes     * of data are available.     *      * @param ullat NW latitude.     * @param ullon NW longitude     * @param lrlat SE latitude     * @param lrlon SE longitude     * @param p a CADRG projection     */    public Vector getCatalogCoverage(float ullat, float ullon, float lrlat,                                     float lrlon, CADRG p,                                     String chartSeriesCode) {        CRFPCoverageBox[] boxes;        Server serv = getServer();        if (serv == null)            return new Vector();        LLPoint llpoint = new LLPoint(p.getCenter().getLatitude(), p.getCenter()                .getLongitude());        CRFPCADRGProjection proj = new CRFPCADRGProjection(llpoint, (short) p.getHeight(), (short) p.getWidth(), p.getScale(), (short) p.getZone());        Debug.message("crfp",                "CRFPClient: getting catalog coverage from server.");        try {            boxes = serv.getCatalogCoverage(ullat,                    ullon,                    lrlat,                    lrlon,                    proj,                    chartSeriesCode,                    clientID);            return translateCRFPCoverageBoxes(boxes);        } catch (org.omg.CORBA.SystemException e) {            handleCORBAError(e);        }        return new Vector();    }    /**     * Given an area and a two-letter chart series code, find the     * percentage of coverage on the map that that chart series can     * offer. If you want specific coverage information, use the     * getCatalogCoverage call.     *      * @see #getCatalogCoverage(float ullat, float ullon, float lrlat,     *      float lrlon, CADRG p, String chartSeriesCode)     */    public float getCalculatedCoverage(float ullat, float ullon, float lrlat,                                       float lrlon, CADRG p, String chartSeries) {        if (chartSeries.equalsIgnoreCase(RpfViewAttributes.ANY)) {            return 0f;        }        Vector results = getCatalogCoverage(ullat,                ullon,                lrlat,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美女孩性生活视频| 五月婷婷久久丁香| 欧美国产一区视频在线观看| 精品欧美黑人一区二区三区| 日韩欧美国产一区在线观看| 欧美一区二区美女| 日韩欧美在线网站| 337p日本欧洲亚洲大胆精品| 亚洲精品在线三区| 久久久一区二区三区捆绑**| 国产亚洲成aⅴ人片在线观看| 日本成人在线不卡视频| 日韩经典中文字幕一区| 久久精品国产网站| 久久99精品久久久久婷婷| 国产伦精品一区二区三区在线观看| 亚洲乱码国产乱码精品精98午夜| 日韩久久精品一区| 久久综合99re88久久爱| 国产精品久久久久永久免费观看 | 中文乱码免费一区二区| 亚洲国产精品av| 国产婷婷色一区二区三区| 国产精品麻豆视频| 亚洲精品国产成人久久av盗摄| 国产目拍亚洲精品99久久精品 | 一区在线观看视频| 亚洲欧美日韩在线| 日韩精品成人一区二区在线| 国内精品久久久久影院色| 成人午夜私人影院| 欧美日韩一区二区不卡| 精品国产sm最大网站免费看| 国产精品理论片| 亚洲国产成人高清精品| 国产自产高清不卡| 色偷偷久久一区二区三区| 日韩午夜电影av| 国产精品乱人伦中文| 亚洲精品乱码久久久久久黑人| 日本一区二区三区四区 | 成人免费在线播放视频| 亚洲精品免费在线| 精品亚洲免费视频| 91免费视频网| 精品剧情在线观看| 一区二区三区91| 国产一本一道久久香蕉| 欧美性videosxxxxx| 精品国产精品网麻豆系列| 一区二区三区在线播放| 国产尤物一区二区在线| 欧美性受xxxx黑人xyx性爽| 精品国产凹凸成av人网站| 亚洲精品水蜜桃| 国产永久精品大片wwwapp| 欧美日韩在线播放三区四区| 久久午夜羞羞影院免费观看| 亚洲国产精品嫩草影院| 成人福利在线看| 日韩欧美在线1卡| 一区二区三区在线观看动漫| 国产精品91一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 久久精品国产一区二区| av中文字幕在线不卡| 欧美一区二区黄色| 亚洲视频 欧洲视频| 国产在线不卡一卡二卡三卡四卡| 国产精品香蕉一区二区三区| 欧美图区在线视频| 久久中文娱乐网| 首页综合国产亚洲丝袜| 91亚洲资源网| 欧美激情在线观看视频免费| 美女一区二区三区| 欧美人与性动xxxx| 一个色在线综合| 91在线你懂得| 中文字幕一区二区在线播放| 狠狠色综合色综合网络| 欧美一区二区视频观看视频| 亚洲大片在线观看| 色8久久精品久久久久久蜜| 国产精品日日摸夜夜摸av| 国产一区二区导航在线播放| 日韩精品自拍偷拍| 免费观看一级欧美片| 欧美精品v日韩精品v韩国精品v| 精品成人一区二区三区| 秋霞av亚洲一区二区三| 欧美浪妇xxxx高跟鞋交| 亚洲综合成人在线视频| 99精品在线观看视频| 国产色产综合产在线视频 | www.欧美色图| 国产精品天美传媒| 成人av资源站| 欧美激情一区二区三区全黄| 国产乱码一区二区三区| www激情久久| 国产福利精品一区| 国产片一区二区| 粉嫩欧美一区二区三区高清影视| 欧美三日本三级三级在线播放| 91精品国产乱码久久蜜臀| 午夜精品久久久久久久| 欧美日韩国产一区二区三区地区| 日韩一级片网站| 蜜桃在线一区二区三区| 欧美tk丨vk视频| 国产激情一区二区三区| 中文字幕欧美日韩一区| 99精品国产一区二区三区不卡| 制服.丝袜.亚洲.另类.中文| 日韩高清不卡一区| 日韩一区二区三区在线| 精品一区二区影视| 国产午夜精品在线观看| av一区二区三区四区| 亚洲三级理论片| 91国内精品野花午夜精品| 午夜视频一区在线观看| 日韩亚洲欧美在线观看| 国产大陆a不卡| 亚洲欧美一区二区久久| 欧美精品久久一区二区三区| 看国产成人h片视频| 久久夜色精品一区| 99久久综合99久久综合网站| 亚洲综合在线第一页| 欧美一区二区三区人| 国产黄色精品视频| 一区二区三区四区精品在线视频| 成人黄色电影在线 | 91精品国产综合久久久蜜臀粉嫩| 国产精品毛片a∨一区二区三区| 裸体在线国模精品偷拍| 久久精品日产第一区二区三区高清版| 午夜不卡av免费| 久久久精品天堂| 在线观看91精品国产入口| 麻豆免费看一区二区三区| 国产精品色呦呦| 在线播放亚洲一区| 国产精品一区一区三区| 亚洲精品自拍动漫在线| 日韩欧美在线影院| 成人一区在线看| 视频一区视频二区在线观看| 国产视频911| 欧美日韩国产精品成人| 国产乱码精品一品二品| 一区二区不卡在线视频 午夜欧美不卡在| 波多野洁衣一区| 丝袜亚洲另类丝袜在线| 久久久亚洲精品一区二区三区| 精品在线免费视频| 一区二区三区四区激情| 精品99一区二区| 色综合天天性综合| 国内精品久久久久影院一蜜桃| 精品区一区二区| 欧美自拍偷拍一区| 国产精品一区三区| 亚洲一区二区欧美激情| 国产视频一区二区三区在线观看| 成人性视频网站| 久久精品国产亚洲高清剧情介绍 | 成人小视频免费观看| 日韩精品三区四区| 中文字幕亚洲不卡| 久久青草欧美一区二区三区| 欧美性受xxxx黑人xyx性爽| 成人性生交大片免费看中文| 另类综合日韩欧美亚洲| 亚洲va韩国va欧美va| 中文字幕一区二区不卡| 精品国产91乱码一区二区三区| 国产高清亚洲一区| 日本中文字幕一区| 亚洲激情在线播放| 中文字幕乱码亚洲精品一区| 欧美成人精品福利| 欧美精品在线一区二区| 欧洲一区在线观看| 99国产精品久久久久久久久久| 亚洲成av人片在www色猫咪| **性色生活片久久毛片| 国产欧美日韩卡一| 久久久久久电影| 久久亚洲综合av| 精品久久久久久久久久久久久久久 | 日本在线不卡视频| 亚洲国产综合人成综合网站| 日韩一区欧美一区| 国产精品久久久久影视| 中文幕一区二区三区久久蜜桃| 欧美日韩在线直播| 欧美日韩一卡二卡三卡 |