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

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

?? editableomscalingraster.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像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/openmap/com/bbn/openmap/omGraphics/EditableOMScalingRaster.java,v $// $RCSfile: EditableOMScalingRaster.java,v $// $Revision: 1.1.2.7 $// $Date: 2005/08/11 21:03:22 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.omGraphics;import com.bbn.openmap.Environment;import com.bbn.openmap.LatLonPoint;import com.bbn.openmap.layer.util.stateMachine.State;import com.bbn.openmap.omGraphics.editable.*;import com.bbn.openmap.proj.*;import com.bbn.openmap.util.Debug;import java.awt.image.BufferedImage;import javax.swing.JOptionPane;/** * The EditableOMScalingRaster encompasses an OMScalingRaster, * providing methods for modifying or creating it. This class only * modifies OMScaling Rasters in lat/lon space (RENDERTYPE_LATLON). * When you grab at the raster, you change the size of the entire * rect. Grabbing the center point moves the raster. If there is an * offset point, moving the center point changes the rect's position * in relation to the offset point. Moving the offset point moves the * rect, keeping the distance to the center point constant. */public class EditableOMScalingRaster extends EditableOMGraphic {    protected GrabPoint gpnw;    protected GrabPoint gpne;    protected GrabPoint gpsw;    protected GrabPoint gpse;    protected OffsetGrabPoint gpc;    protected OffsetGrabPoint gpo; // offset    protected OMScalingRaster raster;    public final static String OffsetResetCmd = "OffsetResetCmd";    public final static int CENTER_POINT_INDEX = 0;    public final static int NW_POINT_INDEX = 1;    public final static int NE_POINT_INDEX = 2;    public final static int SW_POINT_INDEX = 3;    public final static int SE_POINT_INDEX = 4;    public final static int OFFSET_POINT_INDEX = 5;    /**     * Create the EditableOMRect, setting the state machine to create     * the rect off of the gestures.     */    public EditableOMScalingRaster() {        createGraphic(null);    }    /**     * Create an EditableOMScalingRaster with the rectType and     * renderType parameters in the GraphicAttributes object.     */    public EditableOMScalingRaster(GraphicAttributes ga) {        createGraphic(ga);    }    /**     * Create the EditableOMScalingRaster with an OMScalingRaster     * already defined, ready for editing.     *      * @param omsr OMScalingRaster that should be edited.     */    public EditableOMScalingRaster(OMScalingRaster omsr) {        setGraphic(omsr);    }    /**     * Create and initialize the state machine that interprets the     * modifying gestures/commands, as well as ititialize the grab     * points. Also allocates the grab point array needed by the     * EditableOMScalingRaster.     */    public void init() {        Debug.message("eomg", "EditableOMScalingRaster.init()");        setCanGrabGraphic(false);        setStateMachine(new ScalingRasterStateMachine(this));        gPoints = new GrabPoint[6];    }    /**     * Set the graphic within the state machine. If the graphic is     * null, then one shall be created, and located off screen until     * the gestures driving the state machine place it on the map.     */    public void setGraphic(OMGraphic graphic) {        init();        if (graphic instanceof OMScalingRaster) {            raster = (OMScalingRaster) graphic;            stateMachine.setSelected();            setGrabPoints(raster);        } else {            createGraphic(null);        }    }    /**     * Create and set the graphic within the state machine. The     * GraphicAttributes describe the type of rect to create.     */    public void createGraphic(GraphicAttributes ga) {        init();        stateMachine.setUndefined();                String pathToFile = null;        /// This would be an ideal place to bring up a chooser!        if (!Environment.isApplet()) {            pathToFile = com.bbn.openmap.util.FileUtils.getFilePathToOpenFromUser("Choose Image File for Raster");        } else {            JOptionPane.showMessageDialog(null, "Can't search for images in an applet!", "Can't Choose Image", JOptionPane.ERROR_MESSAGE);        }        if (pathToFile == null)            return;        try {            javax.swing.ImageIcon ii = new javax.swing.ImageIcon(pathToFile);            raster = new OMScalingRaster(90f, -180f, 89f, -179f, ii);        } catch (IllegalArgumentException iae) {            // Not an image file, punch            Debug.error("EditableOMScalingRaster:  " + pathToFile                    + " doesn't appear to be an image file");            raster = new OMScalingRaster(90f, -180f, 89f, -179f, new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB));        }        if (ga != null) {            ga.setTo(raster);        }        assertGrabPoints();    }    /**     * Get the OMGraphic being created/modified by the     * EditableOMScalingRaster.     */    public OMGraphic getGraphic() {        return raster;    }    /**     * Set the GrabPoint that is in the middle of being modified, as a     * result of a mouseDragged event, or other selection process.     */    public void setMovingPoint(GrabPoint gp) {        super.setMovingPoint(gp);    }    float diffx;    float diffy;    // Called from the state machine...    public void initRectSize() {        diffx = Math.abs(raster.getLRLon() - raster.getULLon()) / 2f;        diffy = Math.abs(raster.getULLat() - raster.getLRLat()) / 2f;        //      Debug.output("initRectSize(): diffx:" + diffx + ", diffy:"        // + diffy);    }    protected int lastRenderType = -1;    /**     * Check to make sure the grab points are not null. If they are,     * allocate them, and them assign them to the array.     */    public void assertGrabPoints() {        OMGraphic omg = getGraphic();        if (omg == null)            return;        int rt = omg.getRenderType();        if (rt != lastRenderType) {            clearGrabPoints();            lastRenderType = rt;        }        if (gpnw == null) {            gpnw = new GrabPoint(-1, -1);            gPoints[NW_POINT_INDEX] = gpnw;            //          gpnw.setFillPaint(Color.yellow);        }        if (gpne == null) {            gpne = new GrabPoint(-1, -1);            gPoints[NE_POINT_INDEX] = gpne;            //          gpne.setFillPaint(Color.blue);        }        if (gpsw == null) {            gpsw = new GrabPoint(-1, -1);            gPoints[SW_POINT_INDEX] = gpsw;            //          gpsw.setFillPaint(Color.green);        }        if (gpse == null) {            gpse = new GrabPoint(-1, -1);            gPoints[SE_POINT_INDEX] = gpse;            //          gpse.setFillPaint(Color.orange);        }        if (gpc == null) {            gpc = new OffsetGrabPoint(-1, -1);            //          gpc.setFillPaint(Color.red);            gPoints[CENTER_POINT_INDEX] = gpc;            if (getGraphic().getRenderType() != OMGraphic.RENDERTYPE_LATLON) {                gpc.addGrabPoint(gpnw);                gpc.addGrabPoint(gpne);                gpc.addGrabPoint(gpsw);                gpc.addGrabPoint(gpse);            }        }        if (gpo == null) {            gpo = new OffsetGrabPoint(-1, -1);            gPoints[OFFSET_POINT_INDEX] = gpo;            gpo.addGrabPoint(gpc);        }    }    protected void clearGrabPoints() {        gpc = null;        gpnw = null;        gpne = null;        gpsw = null;        gpse = null;        gpo = null;        gPoints[CENTER_POINT_INDEX] = gpc;        gPoints[NW_POINT_INDEX] = gpnw;        gPoints[NE_POINT_INDEX] = gpne;        gPoints[SW_POINT_INDEX] = gpsw;        gPoints[SE_POINT_INDEX] = gpse;        gPoints[OFFSET_POINT_INDEX] = gpo;    }    /**     * Set the grab points for the graphic provided, setting them on     * the extents of the graphic. Called when you want to set the     * grab points off the location of the graphic.     */    public void setGrabPoints(OMGraphic graphic) {        Debug.message("eomg", "EditableOMScalingRaster.setGrabPoints(graphic)");        if (!(graphic instanceof OMScalingRaster)) {            return;        }        assertGrabPoints();        OMScalingRaster raster = (OMScalingRaster) graphic;        if (graphic instanceof OMScalingIcon) {            setGrabPointsForOMSI((OMScalingIcon) graphic);            return;        }        boolean ntr = raster.getNeedToRegenerate();        int renderType = raster.getRenderType();        int top = 0;        int bottom = 0;        int left = 0;        int right = 0;        LatLonPoint llp;        int latoffset = 0;        int lonoffset = 0;        boolean doStraight = true;        if (ntr == false) {            if (renderType == OMGraphic.RENDERTYPE_LATLON                    || renderType == OMGraphic.RENDERTYPE_OFFSET) {                if (projection != null) {                    float wlon = raster.getULLon();                    float nlat = raster.getULLat();                    float elon = raster.getLRLon();                    float slat = raster.getLRLat();                    llp = new LatLonPoint(nlat, wlon);                    java.awt.Point p = projection.forward(llp);                    if (renderType == OMGraphic.RENDERTYPE_LATLON) {                        doStraight = false;                        top = (int) p.getY();                        left = (int) p.getX();                        gpnw.set((int) p.getX(), (int) p.getY());                        p = projection.forward(slat, elon);                        gpse.set((int) p.getX(), (int) p.getY());                        p = projection.forward(nlat, elon);                        gpne.set((int) p.getX(), (int) p.getY());                        p = projection.forward(slat, wlon);                        gpsw.set((int) p.getX(), (int) p.getY());                        p = projection.forward(nlat - (nlat - slat) / 2f, wlon                                + (elon - wlon) / 2f);                        gpc.set((int) p.getX(), (int) p.getY());                    } else {                        latoffset = (int) p.getY();                        lonoffset = (int) p.getX();                        gpo.set(lonoffset, latoffset);                    }                }            }            if (doStraight) {                Debug.message("eomg",                        "EditableOMScalingRaster: drawing straight line rectangle");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜久久久久久久久久久| 国产制服丝袜一区| 日韩va亚洲va欧美va久久| 国产成人免费网站| 91精品国产综合久久久久| 国产欧美日韩三级| 美女免费视频一区| 欧美日韩国产另类一区| 亚洲素人一区二区| 国产福利91精品一区| 日韩欧美高清一区| 亚洲国产精品久久久久婷婷884 | 欧洲国产伦久久久久久久| 久久亚洲精品国产精品紫薇| 日韩成人一级片| 欧美日本一区二区| 亚洲综合一区二区三区| 99在线精品一区二区三区| 久久精品人人做人人爽97| 美女一区二区三区| 在线综合视频播放| 同产精品九九九| 欧美三级乱人伦电影| 亚洲综合一二三区| 91成人在线精品| 亚洲综合在线第一页| 欧美亚洲图片小说| 亚洲综合免费观看高清完整版在线 | 国产一区日韩二区欧美三区| 538在线一区二区精品国产| 亚洲一区日韩精品中文字幕| 欧美色涩在线第一页| 亚洲一区二区黄色| 欧美日韩精品久久久| 午夜精品123| 欧美一区二区人人喊爽| 日韩av成人高清| 日韩一本二本av| 黑人精品欧美一区二区蜜桃| 337p日本欧洲亚洲大胆色噜噜| 精品一区二区日韩| 欧美激情在线免费观看| www..com久久爱| 樱桃国产成人精品视频| 欧美日韩高清一区二区| 美女一区二区久久| 国产三级精品在线| 色综合天天天天做夜夜夜夜做| 亚洲欧美中日韩| 欧美日韩一本到| 精品一区二区在线播放| 亚洲国产精华液网站w| 色综合久久六月婷婷中文字幕| 亚洲图片欧美视频| 精品99999| 91丨porny丨中文| 亚洲国产你懂的| 欧美mv日韩mv| 一本大道av一区二区在线播放| 亚洲成人av一区二区| 久久久午夜电影| 欧美体内she精高潮| 国产在线一区二区| 亚洲美女免费在线| 日韩美女在线视频| 91香蕉视频黄| 久久狠狠亚洲综合| 亚洲精品日日夜夜| 久久人人爽爽爽人久久久| 一本色道**综合亚洲精品蜜桃冫| 亚洲一二三区不卡| 国产人成亚洲第一网站在线播放| 欧美性做爰猛烈叫床潮| 国产成人综合亚洲网站| 香蕉成人啪国产精品视频综合网 | 欧美另类一区二区三区| 国产精品2024| 日韩专区中文字幕一区二区| 国产精品国产三级国产普通话蜜臀 | 蜜臀精品久久久久久蜜臀 | 中文字幕av资源一区| 欧美日韩国产欧美日美国产精品| 国产成人精品免费| 日韩电影在线一区二区| 最近日韩中文字幕| 久久久久国产精品麻豆| 91精品婷婷国产综合久久性色| 成人99免费视频| 国产在线视频一区二区三区| 日韩福利视频网| 亚洲一区二区三区视频在线播放 | 99精品视频在线观看| 精品亚洲欧美一区| 手机精品视频在线观看| 亚洲欧美日韩精品久久久久| 国产偷国产偷亚洲高清人白洁 | 欧美喷水一区二区| 色哟哟在线观看一区二区三区| 国产一区二区三区在线观看精品 | 99麻豆久久久国产精品免费优播| 精品亚洲aⅴ乱码一区二区三区| 亚洲国产精品一区二区www在线| 亚洲日本一区二区三区| 国产精品久久久久久久久晋中| 久久欧美一区二区| 精品精品欲导航| 日韩欧美高清在线| 欧美一区永久视频免费观看| 欧美日韩国产一二三| 91搞黄在线观看| 91国偷自产一区二区开放时间| 99久久精品免费| jlzzjlzz国产精品久久| 9i看片成人免费高清| 99re8在线精品视频免费播放| av在线一区二区三区| 成人a区在线观看| av电影在线观看完整版一区二区| 播五月开心婷婷综合| 99久久99久久精品免费观看| 色综合久久天天| 欧美日韩精品专区| 日韩欧美一区二区视频| 欧美成人欧美edvon| 久久精品一区二区| 国产精品电影院| 亚洲精品免费在线播放| 五月天亚洲婷婷| 精品一区二区在线免费观看| 国产成人精品亚洲午夜麻豆| 99精品黄色片免费大全| 欧美日韩在线综合| 精品国产一区二区精华| 国产亚洲视频系列| 亚洲精品欧美激情| 蜜臀av一级做a爰片久久| 国产成人精品亚洲日本在线桃色| 91社区在线播放| 这里只有精品电影| 中文字幕国产精品一区二区| 一区二区三区高清在线| 免费高清在线一区| av中文字幕亚洲| 日韩一级大片在线| 中文字幕在线不卡一区| 午夜精品福利久久久| 高清国产一区二区| 欧美日韩综合在线免费观看| 日韩欧美中文字幕精品| 亚洲人一二三区| 看国产成人h片视频| 99re66热这里只有精品3直播 | 国产精品视频免费看| 亚洲不卡一区二区三区| 国产99久久精品| 7777精品伊人久久久大香线蕉超级流畅 | 色婷婷精品久久二区二区蜜臀av| 欧美高清一级片在线| 久久久噜噜噜久久人人看| 亚洲曰韩产成在线| 国产福利视频一区二区三区| 欧美亚洲国产一区二区三区va| 精品欧美久久久| 一个色在线综合| 从欧美一区二区三区| 日韩欧美三级在线| 一区二区三区91| 成人黄色在线网站| 欧美成人精品3d动漫h| 亚洲线精品一区二区三区| 国产成人午夜精品影院观看视频| 欧美日韩在线三区| 一区二区三区在线观看动漫| 成人免费观看男女羞羞视频| 欧美电影免费观看高清完整版在| 一级精品视频在线观看宜春院| 国产**成人网毛片九色 | 日韩免费成人网| 日韩高清不卡一区| 欧美在线观看视频在线| 国产精品青草综合久久久久99| 精东粉嫩av免费一区二区三区| 欧美日韩一级黄| 亚洲综合免费观看高清完整版在线 | 波多野结衣的一区二区三区| 久久亚洲综合色| 激情图片小说一区| 日韩欧美国产精品一区| 裸体一区二区三区| 欧美一区欧美二区| 日日夜夜免费精品| 欧美理论在线播放| 午夜电影网一区| 欧美日韩在线观看一区二区 | 亚洲欧美另类图片小说| 97久久精品人人爽人人爽蜜臀 | 欧美激情一区二区三区蜜桃视频| 九九精品一区二区| 国产喂奶挤奶一区二区三区| 国产.欧美.日韩|