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

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

?? featuredrawingattributes.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
字號:
// **********************************************************************////<copyright>////BBN Technologies, a Verizon Company//10 Moulton Street//Cambridge, MA 02138//(617) 873-8000////Copyright (C) BBNT Solutions LLC. All rights reserved.////</copyright>//**********************************************************************////$Source:///cvs/darwars/ambush/aar/src/com/bbn/ambush/mission/MissionHandler.java,v//$//$RCSfile: FeatureDrawingAttributes.java,v $//$Revision: 1.1.2.4 $//$Date: 2005/08/11 21:03:13 $//$Author: dietrick $////**********************************************************************package com.bbn.openmap.layer.vpf;import java.awt.Component;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.util.Properties;import javax.swing.BorderFactory;import javax.swing.JComboBox;import javax.swing.JLabel;import javax.swing.JPanel;import com.bbn.openmap.omGraphics.DrawingAttributes;import com.bbn.openmap.omGraphics.OMGraphic;import com.bbn.openmap.omGraphics.OMGraphicConstants;import com.bbn.openmap.omGraphics.OMTextLabeler;import com.bbn.openmap.util.PropUtils;import com.bbn.openmap.util.propertyEditor.OptionPropertyEditor;/** * The FeatureDrawingAttributes class is used by the * VPFFeatureGraphicWarehouse to control the fetching and display of * feature attributes out of the feature attribute file, controlled by * the FeatureClassInfo class. *  * @author dietrick */public class FeatureDrawingAttributes extends DrawingAttributes {    /**     * The main GUI panel containing the superclass GUI and     * attribute-fetching GUI.     */    protected JPanel guiPanel;    /**     * The GUI panel containing the attribute fetching choices.     */    protected JPanel attributePanel;    /**     * A handle to the FeatureClassInfo class containing the attribute     * information.     */    protected FeatureClassInfo fci;    /**     * The GUI combo box for attribute choices.     */    protected JComboBox attributeJCB;    /**     * The GUI combo box for choices on how to display the attributes.     */    protected JComboBox displayTypeJCB;    /**     * The chosen display type, which gets set as a property in each     * OMGraphic for retrieval by the layer.     */    protected String displayType;    /**     * The chosen attribute column index in the FCI file.     */    protected int attributeCol;    /**     * The desired attribute column name as specified in properties.     */    protected String attributeColName;    public static final String DisplayTypeProperty = "attributeDisplay";    public static final String AttributeProperty = "attribute";    /**     * Default creation of the FeatureDrawingAttributes.     */    public FeatureDrawingAttributes() {        super();    }    /**     * @param props     */    public FeatureDrawingAttributes(Properties props) {        super(props);    }    /**     * @param prefix     * @param props     */    public FeatureDrawingAttributes(String prefix, Properties props) {        super(prefix, props);    }    public void setProperties(String prefix, Properties props) {        super.setProperties(prefix, props);        if (props == null) {            return;        }        prefix = PropUtils.getScopedPropertyPrefix(prefix);        setDisplayType(props.getProperty(prefix + DisplayTypeProperty));        attributeColName = props.getProperty(prefix + AttributeProperty,                attributeColName);    }    /**     * PropertyConsumer method that retrieves the current values of     * settable properties.     */    public Properties getProperties(Properties props) {        props = super.getProperties(props);        String prefix = PropUtils.getScopedPropertyPrefix(this);        props.put(prefix + DisplayTypeProperty, PropUtils.unnull(displayType));        props.put(prefix + AttributeProperty,                PropUtils.unnull(attributeColName));        return props;    }    /**     * PropertyConsumer method that gathers information about the     * settable properties.     */    public Properties getPropertyInfo(Properties props) {        props = super.getPropertyInfo(props);        props.put(DisplayTypeProperty, "How the property should be displayed.");        props.put(DisplayTypeProperty + LabelEditorProperty,                "Attribute display type");        props.put(DisplayTypeProperty + ScopedEditorProperty,                "com.bbn.openmap.util.propertyEditor.ComboBoxPropertyEditor");        props.put(DisplayTypeProperty                + OptionPropertyEditor.ScopedOptionsProperty, "none tt il l");        props.put(DisplayTypeProperty + ".none", "None");        props.put(DisplayTypeProperty + ".tt", "Tooltip");        props.put(DisplayTypeProperty + ".il", "Information Line");        props.put(DisplayTypeProperty + ".l", "Label");        props.put(AttributeProperty, "The Name of the Attribute to display.");        props.put(AttributeProperty + LabelEditorProperty, "Attribute name");        return props;    }    /**     * Set the attributes chosen in the GUI on the OMGraphic.     *      * @param omg the OMGraphic to set the attribute information on.     * @param id The ID number of the map feature that the OMGraphic     *        represents.     */    public void setTo(OMGraphic omg, int id) {        super.setTo(omg);        // now set the attributes on the OMGraphic based on the        // GUI/property settings.        if (fci != null) {            String dt = getDisplayType();            if (dt != null) {                String tooltip = fci.getAttribute(id, getAttributeCol(), null);                // Might want to to .equals here, test for speed effect.//                if (dt.equals(OMGraphicConstants.LABEL)) {                if (dt == OMGraphicConstants.LABEL) {                    OMTextLabeler omtl = new OMTextLabeler(tooltip);                    super.setTo(omtl);                    omg.putAttribute(dt, omtl);                } else {                    omg.putAttribute(dt, tooltip);                }            }        }    }    /**     * Retrieve the column index number out of the feature class info     * file that is being used/displayed.     *      * @return column index of attribute information.     */    protected int getAttributeCol() {        return attributeCol;    }    /**     * Set the column index number in the feature class info file that     * will be used/displayed.     */    protected void setAttributeCol(int col) {        attributeCol = col;    }    /**     * Return the GUI controls for this feature = the basic     * DrawingAttributes GUI from the superclass, plus the other     * attribute display controls.     */    public Component getGUI() {        if (guiPanel == null) {            guiPanel = new JPanel();            GridBagLayout gridbag = new GridBagLayout();            GridBagConstraints c = new GridBagConstraints();            guiPanel.setLayout(gridbag);            c.gridwidth = GridBagConstraints.REMAINDER;            Component sgui = super.getGUI();            gridbag.setConstraints(sgui, c);            guiPanel.add(sgui);            // Attribute GUI            attributePanel = new JPanel();            attributePanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),                    " Attribute Control "));            GridBagLayout gridbag2 = new GridBagLayout();            GridBagConstraints c2 = new GridBagConstraints();            attributePanel.setLayout(gridbag2);            c2.gridwidth = GridBagConstraints.RELATIVE;            c2.anchor = GridBagConstraints.WEST;            JLabel label = new JLabel("Name: ");            label.setToolTipText("Choose which attribute to display for each instance of this feature type.");            gridbag2.setConstraints(label, c2);            attributePanel.add(label);            c2.gridwidth = GridBagConstraints.REMAINDER;            attributeJCB = new JComboBox();            attributeJCB.setToolTipText("Choose which attribute to display for each instance of this feature type.");            attributeJCB.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    JComboBox jcb = (JComboBox) ae.getSource();                    FCIChoice fcic = (FCIChoice) jcb.getSelectedItem();                    setAttributeCol(fcic.getColumn());                    setAttributeColName(fcic.getAttribute());                }            });            gridbag2.setConstraints(attributeJCB, c2);            attributePanel.add(attributeJCB);            c2.gridwidth = GridBagConstraints.RELATIVE;            label = new JLabel("How: ");            label.setToolTipText("Choose how to display the attribute.");            gridbag2.setConstraints(label, c2);            attributePanel.add(label);            c2.gridwidth = GridBagConstraints.REMAINDER;            DisplayTypeChoice[] dtc = new DisplayTypeChoice[] {                    new DisplayTypeChoice("None", null),                    new DisplayTypeChoice(OMGraphicConstants.TOOLTIP, OMGraphicConstants.TOOLTIP),                    new DisplayTypeChoice(OMGraphicConstants.INFOLINE, OMGraphicConstants.INFOLINE),                    new DisplayTypeChoice(OMGraphicConstants.LABEL, OMGraphicConstants.LABEL) };            displayTypeJCB = new JComboBox(dtc);            displayTypeJCB.setToolTipText("Choose how to display the attribute.");            displayTypeJCB.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent ae) {                    JComboBox jcb = (JComboBox) ae.getSource();                    DisplayTypeChoice dtc = (DisplayTypeChoice) jcb.getSelectedItem();                    setDisplayType(dtc.getDisplayCommand());                }            });            if (OMGraphicConstants.TOOLTIP.equalsIgnoreCase(displayType)) {                displayTypeJCB.setSelectedIndex(1);            } else if (OMGraphicConstants.INFOLINE.equalsIgnoreCase(displayType)) {                displayTypeJCB.setSelectedIndex(2);            } else if (OMGraphicConstants.LABEL.equalsIgnoreCase(displayType)) {                displayTypeJCB.setSelectedIndex(3);            }            gridbag2.setConstraints(displayTypeJCB, c2);            attributePanel.add(displayTypeJCB);            updateAttributeGUI();            // End attribute GUI            gridbag.setConstraints(attributePanel, c);            guiPanel.add(attributePanel);        }        return guiPanel;    }    /**     *       */    protected void updateAttributeGUI() {        if (attributePanel != null && attributeJCB != null                && displayTypeJCB != null) {            if (fci != null) {                attributeJCB.removeAllItems();                DcwColumnInfo[] dci = fci.getColumnInfo();                int colCount = dci.length;                // StringBuffer sb = new StringBuffer();                                // Need to save current attributeColName, because                // setting a new choice on an empty combo box will set                // it to that first added attribute automatically.                String cacn = attributeColName;                for (int i = 0; i < colCount; i++) {                    FCIChoice fcic = new FCIChoice(dci[i].getColumnName(), dci[i].getColumnDescription(), i);                    attributeJCB.addItem(fcic);                    if (dci[i].getColumnName()                            .equalsIgnoreCase(cacn)) {                        attributeJCB.setSelectedItem(fcic);                    }                }                attributePanel.setVisible(true);                attributeJCB.setEnabled(true);                displayTypeJCB.setEnabled(true);            } else {                attributePanel.setVisible(false);                attributeJCB.setEnabled(false);                displayTypeJCB.setEnabled(false);            }        }    }    /**     * @return Returns the displayType.     */    public String getDisplayType() {        return displayType;    }    /**     * @param displayType The displayType to set.     */    public void setDisplayType(String displayType) {        this.displayType = displayType;        // Check and update for not-null, so that equality check can be used later         if (displayType != null) {            if (displayType.equalsIgnoreCase(OMGraphicConstants.TOOLTIP)) {                displayType = OMGraphicConstants.TOOLTIP;            } else if (displayType.equalsIgnoreCase(OMGraphicConstants.LABEL)) {                displayType = OMGraphicConstants.LABEL;            } else if (displayType.equalsIgnoreCase(OMGraphicConstants.INFOLINE)) {                displayType = OMGraphicConstants.INFOLINE;            }        }    }    /**     * @return Returns the fci.     */    public FeatureClassInfo getFci() {        return fci;    }    /**     * @param fci The fci to set.     */    public void setFci(FeatureClassInfo fci) {        this.fci = fci;        if (attributeColName != null) {            int col = fci.whatColumn(attributeColName);            if (col >= 0) {                setAttributeCol(col);            }        }        updateAttributeGUI();    }    /**     * @return Returns the attributeColName.     */    public String getAttributeColName() {        return attributeColName;    }    /**     * @param attributeColName The attributeColName to set.     */    public void setAttributeColName(String attributeColName) {        this.attributeColName = attributeColName;    }    public class DisplayTypeChoice {        protected String displayName;        protected String displayCommand;        public DisplayTypeChoice(String dn, String dc) {            displayName = dn;            displayCommand = dc;        }        public String getDisplayCommand() {            return displayCommand;        }        public String getDisplayName() {            return displayName;        }        public String toString() {            return getDisplayName();        }    }    public class FCIChoice {        protected String attribute;        protected String description;        protected int column;        public FCIChoice(String att, String desc, int col) {            attribute = att;            description = desc;            column = col;        }        public String getAttribute() {            return attribute;        }        public String getDescription() {            return description;        }        public int getColumn() {            return column;        }        public String toString() {            return getDescription() + " (" + getAttribute() + ")";        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本美女一区二区三区| 国产精品久线在线观看| 91免费观看视频| 久久9热精品视频| 亚洲另类中文字| 日韩欧美区一区二| 日韩欧美国产一区二区在线播放| 色94色欧美sute亚洲线路二 | 精品久久久久99| 国产精品全国免费观看高清| 亚洲最大色网站| 午夜精品久久久久久久蜜桃app| 韩国成人福利片在线播放| 91丝袜美腿高跟国产极品老师 | 国产久卡久卡久卡久卡视频精品| 国内成人免费视频| 欧美伊人精品成人久久综合97| 精品国产免费久久| 亚洲国产精品一区二区尤物区| 九一久久久久久| 欧美日本一道本在线视频| 最新中文字幕一区二区三区| 免费观看在线色综合| 欧美日韩中文字幕精品| 亚洲摸摸操操av| 成人精品一区二区三区四区 | 国产福利精品一区二区| 欧美喷潮久久久xxxxx| 亚洲少妇最新在线视频| 国产成人av一区二区三区在线| 制服.丝袜.亚洲.另类.中文| 亚洲精品国产视频| 欧美中文一区二区三区| 亚洲国产中文字幕| 在线欧美小视频| xf在线a精品一区二区视频网站| 色av成人天堂桃色av| 奇米影视一区二区三区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 免费观看日韩av| 不卡av在线免费观看| 日本午夜精品视频在线观看 | 亚洲视频在线观看一区| 国产一区二区三区| 日韩视频在线永久播放| 国产欧美综合色| 国产福利91精品一区| 精品久久久久久久一区二区蜜臀| 成人av在线资源网站| 亚洲欧洲日韩在线| 一本大道久久精品懂色aⅴ| 一区二区三区在线观看网站| 94色蜜桃网一区二区三区| 欧美经典一区二区三区| 欧美一激情一区二区三区| 黄色精品一二区| 麻豆久久一区二区| 蜜桃视频免费观看一区| 奇米在线7777在线精品| 欧美一级电影网站| 91小视频在线| 久久国产福利国产秒拍| 国产精品久久久久久久久晋中| 色婷婷av一区二区三区gif| 一二三四社区欧美黄| 欧美伊人久久大香线蕉综合69| 蜜臀av性久久久久av蜜臀妖精| 国产天堂亚洲国产碰碰| 欧美一区二区在线免费播放 | 成人v精品蜜桃久久一区| 夜夜嗨av一区二区三区网页| 精品国产不卡一区二区三区| 欧美性一区二区| 成人网在线免费视频| 国产在线一区观看| 亚洲国产视频在线| 亚洲免费在线看| 中文字幕亚洲电影| 2017欧美狠狠色| 日韩免费视频一区| 欧美一级日韩不卡播放免费| 欧美日韩综合一区| 欧美日韩在线直播| 欧美一区二区久久| 51久久夜色精品国产麻豆| 欧美男男青年gay1069videost| 99久久精品免费看国产| 一本一本大道香蕉久在线精品| 不卡电影一区二区三区| 懂色av一区二区在线播放| 成人精品鲁一区一区二区| 久久久久88色偷偷免费| 欧美巨大另类极品videosbest | 国产清纯白嫩初高生在线观看91| 日韩美女天天操| 欧美国产禁国产网站cc| 国产精品久久久久久久久免费樱桃| 国产精品国产三级国产三级人妇| 久久久久国产精品麻豆| 国产精品二三区| 国产亚洲综合在线| 国产精品美女一区二区三区| 亚洲天堂2014| 日韩在线一区二区三区| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产乱子伦视频一区二区三区| 国产成人精品综合在线观看| 欧美精品在线一区二区| 久久精品综合网| 亚洲自拍欧美精品| 国产一区91精品张津瑜| 色婷婷一区二区| 中文字幕高清一区| 午夜精品一区二区三区三上悠亚| 国产做a爰片久久毛片| 欧美四级电影在线观看| 国产午夜亚洲精品理论片色戒| 樱花草国产18久久久久| 国产毛片精品视频| 高清av一区二区| 欧美成人一区二区三区在线观看 | 久久国产三级精品| 欧美日韩国产123区| 91精品国产综合久久久蜜臀粉嫩| 国产午夜亚洲精品理论片色戒| 日韩av成人高清| 欧美一级xxx| 日韩和的一区二区| 欧美一级欧美三级| 婷婷丁香激情综合| 欧美一级夜夜爽| 亚洲丶国产丶欧美一区二区三区| 一本一本大道香蕉久在线精品| 国产精品传媒入口麻豆| 91官网在线免费观看| 欧美激情综合在线| 国产精品一区二区果冻传媒| 久久精品夜色噜噜亚洲a∨| 国产成人在线观看| 国产精品日日摸夜夜摸av| 成人av网在线| 亚洲综合视频网| 欧美精品v日韩精品v韩国精品v| 天堂久久一区二区三区| 欧美第一区第二区| 成人av在线资源网站| 天天影视涩香欲综合网| 精品久久国产字幕高潮| 99国产精品久久久久| 午夜激情久久久| 欧美国产精品久久| 欧美剧在线免费观看网站| 国产福利精品导航| 亚洲激情av在线| 久久在线观看免费| 91在线国产福利| 精品一二线国产| 亚洲chinese男男1069| 国产欧美一区二区精品仙草咪| 欧美午夜电影网| www.亚洲色图| 丁香婷婷综合五月| 一区二区三区欧美久久| 韩国视频一区二区| 亚洲动漫第一页| 一区二区三区中文在线| 亚洲天堂网中文字| 欧美一区二区三区小说| 欧美亚洲禁片免费| 99精品视频一区二区三区| 国产一区二区三区不卡在线观看 | 黄色成人免费在线| 日本一区中文字幕| 亚洲午夜激情网页| 亚洲成人精品影院| 亚洲一区二区高清| 天天色 色综合| 亚洲成人午夜电影| 琪琪一区二区三区| 黄页网站大全一区二区| 国产曰批免费观看久久久| 国产iv一区二区三区| 99在线热播精品免费| 欧美亚一区二区| 5月丁香婷婷综合| 日韩欧美电影一二三| 久久伊人中文字幕| 中文字幕欧美一| 亚洲国产成人精品视频| 蜜桃久久久久久久| 成人免费福利片| 91精品国产综合久久久久久漫画| 日韩一区二区视频| 国产精品女同一区二区三区| 国产精品久久久久婷婷| 亚洲第一会所有码转帖| 久久成人综合网| 91精彩视频在线观看| 欧美精品一区二区不卡| 亚洲一区在线视频|