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

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

?? webgis.java

?? MapXtreme for java,MapInfo公司的地圖引擎。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package mycwebgis;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.*;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.text.NumberFormat;
import javax.swing.*;
import com.mapinfo.beans.layercontrol.LayerControl;
import com.mapinfo.beans.vmapj.VisualMapJ;
import com.mapinfo.beans.tools.MapToolBar;
import com.mapinfo.beans.tools.RadiusSelectionMapTool;
import com.mapinfo.beans.tools.ViewEntireLayer;
import com.mapinfo.beans.vmapj.RendererParams;
import com.mapinfo.beans.vmapj.ZoomPanel;
import com.mapinfo.beans.theme.AddTheme;
import com.mapinfo.beans.legend.*;
import com.mapinfo.unit.LinearUnit;
import com.mapinfo.util.DoublePoint;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */


public class MYCWebGis extends JApplet implements ActionListener,
        PropertyChangeListener {
    boolean isStandalone = false;
    BorderLayout borderLayout1 = new BorderLayout();

    // Declare visual beans used in the GUI
    VisualMapJ m_visualMapJ = new VisualMapJ();
    MapToolBar m_mapToolBar = new MapToolBar();
    ZoomPanel m_zoomPanel = new ZoomPanel();
    ViewEntireLayer m_viewEntire = new ViewEntireLayer();

    // Declare objects used to create thematic shading and legend
    AddTheme m_addTheme = new AddTheme();
    LegendContainer m_legendContainer = new LegendContainer();

    // Define a label that will display the current radius when
    // the user selects and drags with the Radius Select tool
    JLabel m_lblRadius;

    // A button the user can click to display the Add Theme wizard.
    JButton m_btnAddTheme;

    // A panel used to show/hide thematic user-interface elements
    JPanel m_panelTheme;

    // A button the user can click to show/hide the Thematic panel.
    JButton m_btnShowHide;

    // A boolean to remember whether the Thematic panel is currently visible.
    boolean m_bThemesVisible;

    // A number formatter object, used with the RadiusSelect tool
    NumberFormat m_nf = null;

    // TODO: You may want to assign the following URL string, to make it match
    // the URL you are using as your MapXtremeServlet service, such as:
    //   m_mapxtremeURL = "http://localhost:8080/mapxtreme480/mapxtreme";
    // Or, instead of specifying the URL explicitly here, you can specify it
    // in the HTML page that loads the applet (using the 'mapxtremeurl' param).
    // If you do not assign it here or in the html page, this applet will
    // attempt to build a MapXtreme URL dynamically, using the host and port
    // of the applet; however, that method may not be reliable, depending on
    // how your server contexts are configured.
    static String m_mapxtremeURL = "http://192.168.0.36:8080/mapxtreme480/mapxtreme";

    // TODO: Specify a map file name such as "uk.mdf" (if the mdf file is in
    // in same directory that the applet was loaded from),
    // or an URL to a map file, such as "http://host.com/maps/uk.mdf".
    // Or, instead of specifying this URL explicitly here, you can specify it
    // in the HTML page that loads the applet (using the 'filetoload' param).
    static String m_fileToLoad = "asia.mdf";

    static final boolean m_Debug = false; // to print debugging messages, set to true

    // define a boolean flag, to prevent displaying two Add Theme wizards at once
    boolean m_bDialogActive = false;

    String m_addThemeLabel = "Add theme..."; // a static label displayed in the applet
    String m_radiusLabel = "Radius:"; // a static label displayed in the applet


    //Get a parameter value
    public String getParameter(String key, String def) {
        return isStandalone ? System.getProperty(key, def) :
                (getParameter(key) != null ? getParameter(key) : def);
    }

    //Construct the applet
    public MYCWebGis() {
    }

    public void start() {
        // Use this method if you want to do any work
        // that should be executed after the init method.

        // Load a remote map definition file, if one was specified.
        // m_fileToLoad might contain a map definition file name such as
        // "http://www.mycompany.com/maps/world.mdf"
        // or just a filename, such as "world.mdf", in which case we will
        // assume the file is in the same directory as the html page which
        // loaded this applet.
        if (m_fileToLoad.length() > 1) {
            // See if it is a complete URL or just "filename.mdf"
            if (!m_fileToLoad.startsWith("http")) {
                // Just a filename was provided; prepend this page's host etc.
                String sDocBase = getDocumentBase().toString();
                int iLastSlash = sDocBase.lastIndexOf("/");
                m_fileToLoad = sDocBase.substring(0, iLastSlash + 1) +
                               m_fileToLoad;
            }
            InputStream isRemoteFile = null;
            try {
                URL u = new URL(m_fileToLoad);
                URLConnection conn = u.openConnection();
                isRemoteFile = conn.getInputStream();

                // Load the map
                m_visualMapJ.getMapJ().loadMapDefinition(isRemoteFile);

                /////////////////////////////////////////////20070116
                RendererParams rParams = new RendererParams();
                rParams.setURL(m_mapxtremeURL);
                rParams.setMime("image/gif");
                m_visualMapJ.setRendererParams(rParams);
                ////////////////////////////////////////////

                m_visualMapJ.setShowToolTips(true);
                m_visualMapJ.setCenter(new DoublePoint(114.07,22.51));
            } catch (Exception e) {
                //e.printStackTrace();
            } finally {
                try {
                    if (isRemoteFile != null) {
                        isRemoteFile.close();
                    }
                } catch (Exception ee) {
                }
            }

            m_visualMapJ.repaint();
        }
    } // start method

    //Initialize the applet
    public void init() {
        // If the HTML page specified parameters, use them to
        // override our default values.

        // See if a MapDef file was specified in the HTML file.
        String strParm = getParameter("filetoload");
        if (strParm != null && strParm.length() > 1) {
            m_fileToLoad = strParm;
        }

        // See if the HTML page specified text strings to use as button labels,
        // etc.  (This parameter allows you to reword the text by editing the
        // HTML page without having to modify or recompile any Java classes.)
        strParm = getParameter("addthemelabel");
        if (strParm != null && strParm.length() > 1) {
            m_addThemeLabel = strParm;
        }
        strParm = getParameter("radiuslabel");
        if (strParm != null && strParm.length() > 1) {
            m_radiusLabel = strParm;
        }

        // See if the HTML page specified the URL to the MapXtremeServlet
        /*
        strParm = getParameter("mapxtremeurl");
        if (strParm != null && strParm.length() > 1) {
            // The HTML page specified an URL, so we will use it.
            m_mapxtremeURL = strParm;
        } else {
            // The HTML file did not specify a MapXtreme URL.
            // If the m_mapxtremeURL variable was not explicitly assigned,
            // we will make an educated guess at what the URL might be:
            if (m_mapxtremeURL == null) {
                String sDocBase = getDocumentBase().toString();
                // Given the applet's document base, extract just the first
                // part of the string -- the "://host:port" portion
                // of the string -- so that we can build a MapXtreme URL
                // that references the same server.
                int lastSlashPosition = sDocBase.indexOf("/", 8);
                if (lastSlashPosition != -1) {
                    m_mapxtremeURL = sDocBase.substring(0, lastSlashPosition)
                                     + "/mapxtreme480/mapxtreme";
                }
            }
        }
        */

        // Print out some information to aid troubleshooting
        if (m_Debug) {
            System.out.println(" ");
            System.out.println("m_fileToLoad  =" + m_fileToLoad);
            System.out.println("m_mapxtremeURL  =" + m_mapxtremeURL);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产不卡视频在线播放| 成人免费毛片a| 国产精品伦理在线| 666欧美在线视频| 成人一级片网址| 麻豆免费精品视频| 亚洲色图欧美偷拍| 日本一区二区免费在线| 日韩一区二区三区视频在线观看| 色哟哟一区二区三区| 国产一区二区导航在线播放| 亚洲综合视频网| 国产精品久久久久三级| 欧美v日韩v国产v| 欧美日韩亚洲高清一区二区| 99精品久久只有精品| 国产麻豆9l精品三级站| 日本在线不卡一区| 亚洲一区在线观看视频| 国产精品久久久久精k8| 国产欧美一区二区精品性| 日韩精品一区二区在线| 欧美日韩高清一区| 欧美伊人久久久久久久久影院 | 中文字幕在线不卡视频| 久久综合九色欧美综合狠狠| 日韩一级片网站| 欧美日韩成人综合在线一区二区| 色天使色偷偷av一区二区| www.日本不卡| 成人黄色一级视频| 成人免费毛片嘿嘿连载视频| 国产iv一区二区三区| 国产一区二区三区av电影| 久久99精品视频| 久久国产尿小便嘘嘘| 麻豆国产精品官网| 久久精品国产一区二区三区免费看| 日韩电影免费一区| 青青草精品视频| 蜜桃av一区二区| 精品在线播放午夜| 国内精品第一页| 国产激情视频一区二区在线观看| 国产成人99久久亚洲综合精品| 国产一区二区毛片| av亚洲精华国产精华| 91视频在线看| 欧美日本一区二区三区| 91精品国产综合久久香蕉麻豆| 91精品国产色综合久久不卡蜜臀 | 国产一区二区三区在线看麻豆| 麻豆精品一区二区| 国产九色sp调教91| 成人app在线观看| 色老汉一区二区三区| 欧美手机在线视频| 91精品国产综合久久福利软件| 日韩欧美资源站| 欧美成人精品1314www| 久久毛片高清国产| 国产精品国产三级国产普通话蜜臀| 亚洲色图都市小说| 日韩成人伦理电影在线观看| 国产一区二区久久| 91麻豆123| 51精品国自产在线| 久久精品日韩一区二区三区| 亚洲人精品午夜| 日韩二区三区四区| 成人国产亚洲欧美成人综合网| 日本久久一区二区三区| 欧美一卡2卡3卡4卡| 国产亚洲一区字幕| 亚洲一区二区在线免费观看视频| 日本一不卡视频| 成人黄页毛片网站| 777奇米成人网| 中文字幕av在线一区二区三区| 一区二区三区视频在线看| 美腿丝袜一区二区三区| 99久久婷婷国产精品综合| 欧美精品丝袜中出| 国产女主播一区| 亚洲午夜视频在线观看| 国产一区二区三区黄视频| 色综合久久久久综合体桃花网| 欧美一区日韩一区| 自拍偷拍亚洲激情| 久久97超碰国产精品超碰| 色国产精品一区在线观看| 欧美电影免费观看高清完整版在 | 亚洲自拍偷拍图区| 紧缚奴在线一区二区三区| 色欧美片视频在线观看| 久久久亚洲综合| 亚洲高清不卡在线| 成人国产精品免费观看| 欧美mv日韩mv亚洲| 亚洲国产精品久久不卡毛片| 风间由美一区二区av101| 日韩一级片网址| 亚洲国产精品久久久久秋霞影院| 成人精品鲁一区一区二区| 欧美一区二区三区在线看| 亚洲欧美日韩国产手机在线| 国产曰批免费观看久久久| 欧美日韩精品免费| 亚洲欧美日韩国产一区二区三区 | 亚洲欧美一区二区三区国产精品 | 日本在线播放一区二区三区| 一本色道久久综合狠狠躁的推荐| 久久嫩草精品久久久久| 图片区小说区区亚洲影院| 91老师片黄在线观看| 欧美国产综合色视频| 毛片av中文字幕一区二区| 9191久久久久久久久久久| 亚洲一区二区在线免费看| 91在线视频免费91| 国产精品美女久久久久久久久久久| 麻豆成人久久精品二区三区红 | 中文欧美字幕免费| 国产制服丝袜一区| 精品乱码亚洲一区二区不卡| 日本网站在线观看一区二区三区| 欧美专区亚洲专区| 亚洲制服欧美中文字幕中文字幕| av一二三不卡影片| 国产精品短视频| 成人a区在线观看| 国产精品女同互慰在线看| 国产成人免费网站| 中文字幕欧美日韩一区| 丁香天五香天堂综合| 中文字幕欧美激情一区| 成人开心网精品视频| 国产精品成人一区二区艾草| 91香蕉视频污| 亚洲精品大片www| 欧美性猛片aaaaaaa做受| 亚洲成人手机在线| 欧美一区二区在线不卡| 蜜桃久久精品一区二区| 久久综合九色综合97婷婷| 成人综合激情网| 亚洲色图都市小说| 欧洲中文字幕精品| 日韩不卡一二三区| www成人在线观看| 成人精品鲁一区一区二区| 亚洲精品水蜜桃| 678五月天丁香亚洲综合网| 久久国内精品视频| 国产精品素人一区二区| 91丨porny丨国产入口| 亚洲高清免费观看| 日韩精品一区二| 成人免费视频网站在线观看| 亚洲欧美另类小说视频| 欧美日韩一级二级三级| 毛片一区二区三区| 中文字幕亚洲电影| 欧美日韩在线亚洲一区蜜芽| 乱中年女人伦av一区二区| 国产拍揄自揄精品视频麻豆| 92精品国产成人观看免费| 偷拍一区二区三区四区| 精品国产亚洲在线| 99精品国产一区二区三区不卡| 亚洲小少妇裸体bbw| 亚洲精品一区二区三区影院| jlzzjlzz亚洲女人18| 亚洲第一狼人社区| 国产欧美日韩综合精品一区二区| 91豆麻精品91久久久久久| 久久精品国产免费看久久精品| 欧美激情一区二区三区不卡| 欧美性xxxxxxxx| 国内精品在线播放| 亚洲在线观看免费视频| 精品福利一区二区三区免费视频| jizz一区二区| 免费观看成人鲁鲁鲁鲁鲁视频| 国产精品视频观看| 日韩欧美亚洲国产另类| 99精品视频免费在线观看| 毛片av一区二区三区| 亚洲精品写真福利| 久久久激情视频| 欧美日韩精品系列| jvid福利写真一区二区三区| 美女视频一区二区三区| 亚洲另类色综合网站| 久久伊人中文字幕| 欧美二区在线观看| 色综合中文字幕国产| 久久99在线观看| 亚洲午夜三级在线| 最新国产成人在线观看|