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

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

?? vpfconfig.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/openmap/com/bbn/openmap/layer/vpf/VPFConfig.java,v $// $RCSfile: VPFConfig.java,v $// $Revision: 1.7.2.4 $// $Date: 2005/08/09 21:17:53 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.layer.vpf;import java.awt.Component;import java.awt.Dimension;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.Insets;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.util.Enumeration;import java.util.HashSet;import java.util.Hashtable;import java.util.Iterator;import java.util.LinkedList;import java.util.Properties;import javax.swing.JButton;import javax.swing.JComponent;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JScrollPane;import javax.swing.JTextArea;import javax.swing.JTextField;import javax.swing.JTree;import javax.swing.event.TreeSelectionEvent;import javax.swing.event.TreeSelectionListener;import javax.swing.tree.DefaultMutableTreeNode;import javax.swing.tree.TreeSelectionModel;import com.bbn.openmap.Layer;import com.bbn.openmap.LayerHandler;import com.bbn.openmap.io.FormatException;import com.bbn.openmap.omGraphics.DrawingAttributes;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PaletteHelper;import com.bbn.openmap.util.PropUtils;/** * A component that can look at the VPF configuration files at the top * level of the VPF directory structure, and provide an interface for * defining an OpenMap VPFLayer for chosen features. * <p> *  * If the VPFConfig is provided a LayerHandler, it will have a button * that will create a layer with selected features. If it doesn't have * a LayerHandler, it will provide a button to print out the * properties for a VPFLayer for the selected features. This class can * be run in stand-alone mode to create properties. */public class VPFConfig extends JPanel implements ActionListener {    //private static boolean DEBUG = false;    //Optionally play with line styles. Possible values are    //"Angled", "Horizontal", and "None" (the default).    private boolean playWithLineStyle = false;    private String lineStyle = "Angled";    protected boolean showAll = false;    protected boolean standAlone = false;    public final static String AddFeatureCmd = "AddFeatureCommand";    public final static String ClearFeaturesCmd = "ClearFeaturesCommand";    public final static String CreateLayerCmd = "CreateLayerCommand";    public final static String EMPTY_FEATURE_LIST = null;    DefaultMutableTreeNode currentFeature = null;    protected DrawingAttributes drawingAttributes = new DrawingAttributes();    protected boolean searchByFeature = true;    protected String paths = "";    protected HashSet layerCoverageTypes = new HashSet();    protected HashSet layerFeatureTypes = new HashSet();    public final static String AREA = "area";    public final static String TEXT = "text";    public final static String EDGE = "edge";    public final static String POINT = "point";    public final static String CPOINT = "cpoint";    public final static String EPOINT = "epoint";    public final static String COMPLEX = "complex";    public final static String UNKNOWN = "unknown";    protected Hashtable layerFeatures;    protected Properties layerProperties;    protected LayerHandler layerHandler;    protected LibraryBean libraryBean;    protected String layerName;    protected VPFLayer layer;    JButton addFeatureButton;    JButton clearFeaturesButton;    JButton createLayerButton;    JTextArea currentFeatureList;    JTextField nameField;    LinkedList featureList = new LinkedList();    public VPFConfig(String[] dataPaths, String layerName) {        this(dataPaths, null, layerName);    }    public VPFConfig(String[] dataPaths, LayerHandler layerHandler,            String layerName) {        this(dataPaths, layerHandler, layerName, false);    }    protected VPFConfig(String[] dataPaths, LayerHandler layerHandler,            String layerName, boolean standAlone) {        this.layerHandler = layerHandler;        this.standAlone = standAlone;        this.layerName = layerName;        if (dataPaths != null && dataPaths.length > 0) {            // Take the time to replace any \ with /, it matters if            // the properties get printed out for later.            // Permanently set them from \ to / for when they get            // passed to BinaryFile.            dataPaths[0] = dataPaths[0].replace('\\', '/');            StringBuffer buf = new StringBuffer(dataPaths[0]);            for (int i = 1; i < dataPaths.length; i++) {                buf.append(";");                // Permanently set them from \ to / for when they get                // passed to BinaryFile.                dataPaths[i] = dataPaths[i].replace('\\', '/');                buf.append(dataPaths[i]);            }            paths = buf.toString();        }        //Create the nodes.        DefaultMutableTreeNode top = new DefaultMutableTreeNode("VPF Data Libraries");        try {            createNodes(top, dataPaths);        } catch (FormatException fe) {            Debug.output("Caught FormatException reading data: "                    + fe.getMessage());            if (standAlone) {                System.exit(0);            }        }        init(top);    }    public VPFConfig(LibraryBean lb, LayerHandler layerHandler, String layerName) {        this.layerHandler = layerHandler;        this.layerName = layerName;        //Create the nodes.        DefaultMutableTreeNode top = new DefaultMutableTreeNode("VPF Data Libraries");        try {            createNodes(top, lb.getLibrarySelectionTable());        } catch (FormatException fe) {            Debug.output("Caught FormatException reading data: "                    + fe.getMessage());        }        init(top);    }    public VPFConfig(VPFLayer layer) {        if (layer != null && layer.lst != null) {            this.layer = layer;            this.layerName = layer.getName();            //Create the nodes.            DefaultMutableTreeNode top = new DefaultMutableTreeNode("VPF Data Libraries");            try {                createNodes(top, layer.lst);            } catch (FormatException fe) {                Debug.output("Caught FormatException reading data: "                        + fe.getMessage());            }            init(top);        }    }    public void init(DefaultMutableTreeNode top) {        layerFeatures = new Hashtable();        //Create a tree that allows one selection at a time.        final JTree tree = new JTree(top);        tree.getSelectionModel()                .setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);        tree.setVisibleRowCount(10);        //Listen for when the selection changes.        tree.addTreeSelectionListener(new TreeSelectionListener() {            public void valueChanged(TreeSelectionEvent e) {                DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();                if (node == null)                    return;                Object nodeInfo = node.getUserObject();                if (node.isLeaf() && nodeInfo instanceof FeatureInfo) {                    currentFeature = node;                    // enable addToLayer button here.                    addFeatureButton.setEnabled(true);                } else {                    // disable addToLayer button here.                    addFeatureButton.setEnabled(false);                }            }        });        if (playWithLineStyle) {            tree.putClientProperty("JTree.lineStyle", lineStyle);        }        //Create the scroll pane and add the tree to it.        GridBagLayout outergridbag = new GridBagLayout();        GridBagConstraints outerc = new GridBagConstraints();        JScrollPane treeView = new JScrollPane(tree);        setLayout(outergridbag);        outerc.fill = GridBagConstraints.BOTH;        outerc.anchor = GridBagConstraints.WEST;        outerc.insets = new Insets(10, 10, 10, 10);        outerc.gridx = GridBagConstraints.REMAINDER;        outerc.weighty = .75;        outerc.weightx = 1.0;        outergridbag.setConstraints(treeView, outerc);        add(treeView);        // Create the configuration pane        JPanel configPanel = new JPanel();        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        configPanel.setLayout(gridbag);        c.gridheight = GridBagConstraints.REMAINDER;        Component da = drawingAttributes.getGUI();        gridbag.setConstraints(da, c);        configPanel.add(da);        c.gridx = 1;        c.gridheight = 1;        c.gridy = 0;        c.fill = GridBagConstraints.HORIZONTAL;        c.insets = new Insets(0, 5, 0, 5);        addFeatureButton = new JButton("Add Feature");        addFeatureButton.addActionListener(this);        addFeatureButton.setActionCommand(AddFeatureCmd);        gridbag.setConstraints(addFeatureButton, c);        configPanel.add(addFeatureButton);        addFeatureButton.setEnabled(false);        clearFeaturesButton = new JButton("Clear Features");        clearFeaturesButton.addActionListener(this);        clearFeaturesButton.setActionCommand(ClearFeaturesCmd);        c.gridy = GridBagConstraints.RELATIVE;        gridbag.setConstraints(clearFeaturesButton, c);        configPanel.add(clearFeaturesButton);        clearFeaturesButton.setEnabled(false);        if (layer != null) {            createLayerButton = new JButton("Set Features on Layer");        } else if (layerHandler != null) {            createLayerButton = new JButton("Create Layer");        } else {            createLayerButton = new JButton("Print Properties");        }        createLayerButton.addActionListener(this);        createLayerButton.setActionCommand(CreateLayerCmd);        gridbag.setConstraints(createLayerButton, c);        configPanel.add(createLayerButton);        createLayerButton.setEnabled(false);        JPanel currentFeatureListPanel = PaletteHelper.createVerticalPanel(" Current Features: ");        currentFeatureList = new JTextArea(EMPTY_FEATURE_LIST);        currentFeatureList.setEditable(false);        JScrollPane featureListScrollPane = new JScrollPane(currentFeatureList);        featureListScrollPane.setPreferredSize(new Dimension(150, 10));        currentFeatureListPanel.add(featureListScrollPane);        c.gridx = 2;        c.gridy = 0;        c.weightx = 1.0;        c.anchor = GridBagConstraints.NORTHWEST;        c.gridheight = GridBagConstraints.REMAINDER;        c.fill = GridBagConstraints.BOTH;        gridbag.setConstraints(currentFeatureListPanel, c);        configPanel.add(currentFeatureListPanel);        GridBagLayout gridbag2 = new GridBagLayout();        GridBagConstraints c2 = new GridBagConstraints();        JPanel namePanel = new JPanel();        namePanel.setLayout(gridbag2);        c2.weightx = 0;        c2.weighty = 0;        c2.anchor = GridBagConstraints.WEST;        JLabel nameLabel = new JLabel("Layer Name: ");        gridbag2.setConstraints(nameLabel, c2);        namePanel.add(nameLabel);        c2.fill = GridBagConstraints.HORIZONTAL;        c2.weightx = 1.0;        c2.weighty = 1.0;        nameField = new JTextField(layerName);        gridbag2.setConstraints(nameField, c2);        namePanel.add(nameField);        outerc.anchor = GridBagConstraints.WEST;        outerc.weighty = 0;        outergridbag.setConstraints(namePanel, outerc);        add(namePanel);        outerc.fill = GridBagConstraints.HORIZONTAL;        outerc.weighty = .25;        outerc.anchor = GridBagConstraints.CENTER;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久综合精品| 久久在线免费观看| 麻豆91精品视频| ...av二区三区久久精品| 日韩欧美色电影| 日本精品一级二级| 成人一区二区三区| 蜜桃视频在线一区| 亚洲亚洲精品在线观看| 国产精品嫩草99a| 国产精品久久久久久久久果冻传媒| 91麻豆精品国产| 一本大道久久a久久综合婷婷| 国精产品一区一区三区mba桃花| 亚洲五码中文字幕| 亚洲精品成人天堂一二三| 中文字幕va一区二区三区| 亚洲精品一区二区三区蜜桃下载 | 香蕉成人伊视频在线观看| 欧美激情一区在线观看| 日韩美女一区二区三区四区| 欧美色图免费看| 一本色道久久加勒比精品| 国产乱码一区二区三区| 另类成人小视频在线| 日韩电影在线免费看| 一区二区在线看| 自拍偷拍亚洲激情| 亚洲欧美成aⅴ人在线观看| 中文一区二区在线观看| 久久久久久久性| 久久综合狠狠综合久久激情| 欧美哺乳videos| 欧美一区二区三区视频免费| 制服丝袜中文字幕一区| 在线免费视频一区二区| 日本道免费精品一区二区三区| 91影院在线观看| 91丨九色porny丨蝌蚪| 亚洲精品一区二区三区四区高清 | 一区二区三区久久久| 日韩毛片精品高清免费| 自拍偷拍亚洲欧美日韩| 亚洲女女做受ⅹxx高潮| 一区二区三区欧美在线观看| 一区二区三区欧美| 亚洲成a人在线观看| 午夜精品久久久久久久久| 图片区小说区国产精品视频| 日本免费在线视频不卡一不卡二| 日韩精品亚洲一区| 激情综合网最新| 国产精品一区二区不卡| 丰满少妇久久久久久久| 99久久久久久| 日韩av一区二| 九九**精品视频免费播放| 久久9热精品视频| 国产精品123| av在线一区二区三区| 91麻豆免费看| 欧美日韩美少妇| 欧美成人一区二区三区在线观看| 精品美女在线观看| 国产精品无圣光一区二区| 亚洲精品国产一区二区三区四区在线| 亚洲精品国产品国语在线app| 亚洲国产精品欧美一二99| 日韩国产精品久久| 国产成人啪免费观看软件| aaa欧美大片| 4438亚洲最大| 国产网站一区二区| 亚洲午夜三级在线| 国模冰冰炮一区二区| 一本一道久久a久久精品| 91精品久久久久久久99蜜桃| 国产日韩欧美综合一区| 亚洲制服欧美中文字幕中文字幕| 国产a级毛片一区| 成人免费视频视频在线观看免费| 91丨九色丨黑人外教| 精品国产一区二区亚洲人成毛片| 国产精品护士白丝一区av| 丝袜美腿亚洲一区二区图片| 懂色中文一区二区在线播放| 欧美日韩在线一区二区| 久久久久综合网| 午夜欧美视频在线观看| 成人动漫中文字幕| 日韩欧美一级二级三级久久久| 综合色中文字幕| 精品一二线国产| 91福利精品视频| 国产欧美日韩视频在线观看| 首页国产丝袜综合| 91影院在线观看| 国产性天天综合网| 日本女人一区二区三区| 91女人视频在线观看| 久久你懂得1024| 日韩av在线发布| 91黄色免费版| 国产精品无人区| 精品在线免费视频| 欧美精品日韩综合在线| 亚洲品质自拍视频| 国产v日产∨综合v精品视频| 日韩视频免费直播| 亚洲成人一区二区在线观看| 91丝袜美腿高跟国产极品老师 | 欧美三级中文字幕| 中文字幕免费一区| 激情五月婷婷综合| 欧美另类一区二区三区| 亚洲一区二区三区四区在线免费观看| 国产91高潮流白浆在线麻豆| 久久综合久久综合亚洲| 免费成人av资源网| 在线播放/欧美激情| 亚洲影院理伦片| 91成人免费网站| 亚洲精选视频在线| av不卡在线观看| 国产精品白丝在线| 成人免费福利片| 亚洲国产精品视频| 欧美日韩国产三级| 五月综合激情婷婷六月色窝| 欧美调教femdomvk| 亚洲第一电影网| 欧美日本在线观看| 日韩制服丝袜av| 欧美私模裸体表演在线观看| 亚洲一二三四在线观看| 欧美性大战久久久| 日韩欧美一级二级| 亚洲视频一区二区在线| 国产91精品久久久久久久网曝门 | 久久久99久久精品欧美| 精品一区二区免费| 亚洲精品一区二区三区四区高清| 国产一区美女在线| 国产女人aaa级久久久级| 成人一级片网址| **性色生活片久久毛片| 日本二三区不卡| 日日噜噜夜夜狠狠视频欧美人| 制服丝袜成人动漫| 激情都市一区二区| 中文字幕精品一区| 色噜噜狠狠一区二区三区果冻| 亚洲一区二区精品视频| 91精品国产综合久久久蜜臀粉嫩 | av亚洲精华国产精华精华| 中文字幕亚洲不卡| 欧美亚洲一区三区| 美国欧美日韩国产在线播放| 国产亚洲综合色| 91亚洲国产成人精品一区二三| 亚洲午夜精品网| 欧美大黄免费观看| 高清beeg欧美| 亚洲aⅴ怡春院| 精品电影一区二区| 99精品视频一区二区三区| 亚洲一区二区精品视频| 精品少妇一区二区三区在线视频| 成人听书哪个软件好| 经典三级一区二区| 日韩片之四级片| 成人永久aaa| 石原莉奈一区二区三区在线观看| 久久综合丝袜日本网| 91麻豆免费看片| 日本欧美一区二区| 亚洲欧洲日韩一区二区三区| 欧美日韩在线播放三区四区| 色8久久精品久久久久久蜜| 五月天丁香久久| 国产亚洲精品资源在线26u| 色琪琪一区二区三区亚洲区| 免费成人在线观看| 亚洲精品免费在线播放| 精品国产伦一区二区三区观看方式| 91亚洲精品一区二区乱码| 美女视频免费一区| 亚洲精品网站在线观看| 久久综合色婷婷| 欧美人妖巨大在线| 99久久精品免费精品国产| 看电影不卡的网站| 亚洲男人都懂的| 国产午夜精品一区二区三区嫩草| 欧美日韩国产一区| 97se亚洲国产综合自在线不卡| 久久精品99久久久| 亚洲国产一区在线观看| 中文幕一区二区三区久久蜜桃| 日韩色视频在线观看|