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

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

?? plotlayer.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/layer/plotLayer/PlotLayer.java,v $// $RCSfile: PlotLayer.java,v $// $Revision: 1.4.2.3 $// $Date: 2005/08/09 21:17:55 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.plotLayer;import java.awt.Color;import java.awt.Component;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.MouseEvent;import java.io.File;import java.io.FileInputStream;import java.io.IOException;import java.util.Enumeration;import java.util.Properties;import java.util.Vector;import javax.swing.JPanel;import com.bbn.openmap.Environment;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.util.Debug;import com.bbn.openmap.util.PaletteHelper;/** *   */public class PlotLayer extends OMGraphicHandlerLayer implements        MapMouseListener {    private ScatterGraph graph = null;    private boolean show_plot_ = false;    // The currently selected graphic.    private OMGraphic selectedGraphic;    private Vector selectedGraphics = null;    // Where do we get the data from?    // default to use GLOBE atmospheric temperature.    private String datasource = "AT.gst_small.txt";    // "http://globe.ngdc.noaa.gov/sda/student_data/AT.gst.txt";    // "file:/home/gkeith/openmap/openmap/com/bbn/openmap/plotLayer/AT.gst.txt";    // "file:/home/gkeith/openmap/openmap/com/bbn/openmap/plotLayer/AT.gst_thin.txt";    // "file:/home/gkeith/openmap/openmap/com/bbn/openmap/plotLayer/AT.gst_small.txt";    // "http://stout:80/~gkeith/plotlayer/AT.gst_small.txt";    private GLOBETempData temperature_data = null;    // The control palette    private JPanel pal = null;    /**     * X position of the plot rectangle.     */    protected int plotX = 100;    /**     * Y position of the plot rectangle.     */    protected int plotY = 100;    /**     * Width of the plot rectangle.     */    protected int plotWidth = 320;    /**     * Height of the plot rectangle.     */    protected int plotHeight = 200;    /**     * Construct the PlotLayer.     */    public PlotLayer() {        getDataSource();        graph = new ScatterGraph(678, 790, null, temperature_data.overall_min_year_, temperature_data.overall_max_year_, temperature_data.overall_min_temp_, temperature_data.overall_max_temp_);        setList(plotDataSources());    }    public synchronized OMGraphicList prepare() {        graph.resize(plotX, plotY, plotWidth, plotHeight);        return super.prepare();    }    /**     * Search for the data in the directories listing in the     * CLASSPATH. We should also check to see if the datafile is     * specified as a URL so that we can load it as such.     */    private GLOBETempData getDataSource() {        if (temperature_data != null) {            return temperature_data;        }        // load the data from the CLASSPATH        Vector dirs = Environment.getClasspathDirs();        FileInputStream is = null;        int nDirs = dirs.size();        if (nDirs > 0) {            for (int i = 0; i < nDirs; i++) {                String dir = (String) dirs.elementAt(i);                File datafile = new File(dir, datasource);                if (datafile.isFile()) {                    try {                        is = new FileInputStream(datafile);                        //                      System.out.println("datafile="+datafile);                        break;                    } catch (java.io.IOException e) {                        e.printStackTrace();                    }                }            }            if (is == null) {                System.err.println("Unable to load datafile \"" + datasource                        + "\" from CLASSPATH");            }        } else {            System.err.println("No directories in CLASSPATH!");            System.err.println("Unable to load datafile \"" + datasource                    + "\" from CLASSPATH");        }        if (is == null)            return null;        // Parse the data        try {            temperature_data = new GLOBETempData();            temperature_data.loadData(is);        } catch (IOException e) {            System.err.println(e);        }        return temperature_data;    }    /** Put the data points on the map. */    private OMGraphicList plotDataSources() {        Debug.message("basic", "PlotLayer.plotDataSources()");        int num_graphics = 0;        OMGraphicList graphics = new OMGraphicList();        graphics.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);        graphics.clear();        Enumeration site_enum = temperature_data.getAllSites();        while (site_enum.hasMoreElements()) {            GLOBESite site = (GLOBESite) site_enum.nextElement();            //Debug.message("basic", "Plotlayer adds " +            // site.getName());            graphics.addOMGraphic(site.getGraphic());            num_graphics++;        }        Debug.message("basic", "Plotlayer found " + num_graphics                + " distinct sites");        // Find the sites that are visible on the map.        return graphics;    }    /** Build and display the plot. */    private OMGraphic generatePlot() {        //      System.out.println("Generating Plot ");        if (graph != null) {            graph.setDataPoints(selectedGraphics);            graph.plotData();            return graph.getPlotGraphics();        }        return null;    }    private void showPlot() {        show_plot_ = true;        OMGraphic plot = generatePlot();        OMGraphicList list = getList();        if (plot != null) {            //          System.out.println("Making plot visible..");            list.addOMGraphic(plot);        }        // generate the graphics for rendering.        list.generate(getProjection(), false);        repaint();    }    private void hidePlot() {        //      System.out.println("Making plot IN-visible..");        show_plot_ = false;        if (graph != null) {            OMGraphic plot = graph.getPlotGraphics();            OMGraphicList list = getList();            if (list != null && plot != null) {                list.remove(plot);            }        }        repaint();    }    /**     * Add the data from the clicked site to the list of things we are     * drawing.     */    private void addSelectionToPlotList() {        if (selectedGraphic != null) {            // Change the color of the clicked ones            selectedGraphic.setLinePaint(Color.blue);            if (selectedGraphics == null) {                selectedGraphics = new Vector();            }            Object app_obj = selectedGraphic.getAppObject();            if (app_obj instanceof GLOBESite) {                GLOBESite site = (GLOBESite) app_obj;                if (!selectedGraphics.contains(app_obj)) {                    Debug.message("basic", "Adding to plot list...");                    selectedGraphics.addElement(site);                    selectedGraphic.setFillPaint(Color.yellow);                } else {                    Debug.message("basic", "Removing from plot list...");                    selectedGraphics.removeElement(site);                    selectedGraphic.setFillPaint(Color.red);                    selectedGraphic.setLinePaint(Color.red);                }            }        } else {            Debug.message("basic", "Nothing to add to plot list!");        }    }    /**     * Returns self as the <code>MapMouseListener</code> in order to     * receive <code>MapMouseEvent</code>s. If the implementation     * would prefer to delegate <code>MapMouseEvent</code>s, it

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线视频一区二区免费| 国产精品视频第一区| 91精品国产福利| 精品成人私密视频| 国产精品传媒视频| 亚洲与欧洲av电影| 国产精品一级片| 91麻豆精东视频| 一本大道综合伊人精品热热 | 欧美一级生活片| 国产精品福利在线播放| 亚洲欧美一区二区三区孕妇| 亚洲成人三级小说| 精品亚洲国产成人av制服丝袜| 国产精品一二一区| 91久久精品一区二区| 欧美日韩中文字幕一区二区| 欧美一区二区三区小说| 欧美一区二区三区四区高清| 国产拍揄自揄精品视频麻豆| 一区二区三区精品在线观看| 日韩高清欧美激情| 国产福利91精品一区二区三区| 成人av电影免费在线播放| 欧美一区二区成人6969| 久久精品一级爱片| 日本少妇一区二区| 欧美日韩亚洲国产综合| 国产精品成人免费在线| 狠狠色狠狠色综合系列| 在线视频你懂得一区| 欧美成人国产一区二区| 日韩专区中文字幕一区二区| 色国产精品一区在线观看| 国产人成一区二区三区影院| 另类调教123区| 欧美精品自拍偷拍| 一片黄亚洲嫩模| 色香蕉成人二区免费| 欧美高清在线一区二区| 久久精品国产澳门| 日韩欧美视频在线| 国产一区二区影院| 久久精品夜夜夜夜久久| 国产精品一区二区在线播放 | 亚洲精品中文字幕乱码三区| 97久久超碰国产精品电影| 国产精品看片你懂得| 国产乱码精品一品二品| 亚洲精品一区二区在线观看| 麻豆一区二区三| 久久久噜噜噜久久人人看 | 欧美高清在线一区二区| 蓝色福利精品导航| 日韩一卡二卡三卡四卡| 亚洲成a人片在线不卡一二三区| 日本久久电影网| 三级欧美韩日大片在线看| 欧美一三区三区四区免费在线看| 视频一区视频二区中文字幕| 欧美日韩性生活| 日韩**一区毛片| 777亚洲妇女| 国产91丝袜在线观看| 国产精品国产精品国产专区不片| www.日本不卡| 五月天网站亚洲| 欧美国产精品一区二区| 91美女在线看| 午夜久久久久久| 久久久蜜桃精品| 色综合久久综合网| 国产一区二区三区四| 性做久久久久久久久| 欧美电影免费观看高清完整版在线 | 日韩欧美国产一区在线观看| 一本一本久久a久久精品综合麻豆| 免费精品视频最新在线| 久久久久久久久久久黄色| 成a人片国产精品| 日本女人一区二区三区| 亚洲人吸女人奶水| 精品国免费一区二区三区| 在线亚洲精品福利网址导航| 国产高清在线精品| 美女在线一区二区| 亚洲精品国产高清久久伦理二区| 精品久久久久久亚洲综合网| 欧美色国产精品| 色天天综合久久久久综合片| 国产91丝袜在线观看| 国产在线视频精品一区| 无码av免费一区二区三区试看| 国产日韩欧美电影| 国产亚洲一二三区| 欧美成va人片在线观看| 欧美一区二区三区四区高清| 欧美精品久久久久久久多人混战 | 国模套图日韩精品一区二区| 久久精品国产**网站演员| 久久精品国产精品亚洲精品| 亚洲成人动漫av| 五月天中文字幕一区二区| 美女尤物国产一区| 久久99精品国产.久久久久久| 图片区小说区国产精品视频| 一个色在线综合| 亚洲欧美乱综合| 亚洲gay无套男同| 日本sm残虐另类| 黄色日韩三级电影| 豆国产96在线|亚洲| av激情亚洲男人天堂| 欧美伊人精品成人久久综合97| 欧美日韩激情在线| 欧美一区二区三区在线视频| 欧美一卡二卡在线| 国产亚洲一二三区| 亚洲不卡在线观看| 国产福利一区二区三区视频 | 狠狠久久亚洲欧美| 99vv1com这只有精品| 欧美日韩高清影院| 国产日韩欧美在线一区| 亚洲男人的天堂在线观看| 亚洲国产精品久久久男人的天堂| 日本视频一区二区| 99久久精品费精品国产一区二区| 色婷婷精品久久二区二区蜜臀av| 91麻豆精品国产91久久久久久久久| 欧美大片顶级少妇| 国产视频一区二区三区在线观看| 欧美日韩高清一区| 国产三级欧美三级| 亚洲成av人片www| 国产激情视频一区二区三区欧美 | 欧美一区二区福利视频| 久久久久久久久岛国免费| 亚洲精品欧美在线| 成人高清视频免费观看| 制服丝袜亚洲色图| 亚洲欧美激情视频在线观看一区二区三区 | 91麻豆成人久久精品二区三区| 欧美一区二区性放荡片| 自拍偷拍亚洲综合| 美女被吸乳得到大胸91| 欧美日韩一区 二区 三区 久久精品| 国产亚洲欧美中文| 肉肉av福利一精品导航| 成人福利视频在线看| 日韩精品一区二区三区三区免费| 亚洲高清视频中文字幕| 91丨porny丨国产| 国产视频一区在线播放| 激情综合色丁香一区二区| 日韩三级av在线播放| 日日摸夜夜添夜夜添精品视频| 91麻豆国产在线观看| 亚洲天天做日日做天天谢日日欢| 日本不卡一区二区| 欧美一区日韩一区| 午夜精品福利视频网站| 欧美二区乱c少妇| 精品一区二区av| 精品福利一二区| 精品一区二区日韩| 欧美日韩亚洲综合在线 | 欧美国产禁国产网站cc| 在线一区二区三区做爰视频网站| 亚洲精品你懂的| 中文字幕的久久| 91精品午夜视频| 91蜜桃传媒精品久久久一区二区| 青青国产91久久久久久| 1024成人网| 欧美日韩第一区日日骚| 欧美国产国产综合| 国产成人一区在线| 一区二区三区不卡视频| 日韩欧美久久一区| av影院午夜一区| 麻豆久久久久久| 一区二区三区影院| 中文成人av在线| 欧美日韩视频在线观看一区二区三区| 日韩av中文字幕一区二区三区 | 亚洲欧洲国产日本综合| 欧美日产在线观看| 夫妻av一区二区| 精品一区二区日韩| 亚洲国产精品久久久男人的天堂| 欧美变态凌虐bdsm| 国产成人av一区二区三区在线 | 欧美成人免费网站| 成人免费视频免费观看| 1区2区3区国产精品| 色乱码一区二区三区88 | 日韩欧美一区二区久久婷婷| 一区二区三区四区视频精品免费| 色香蕉成人二区免费|