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

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

?? palettehelper.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
字號:
// **********************************************************************// // <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/util/PaletteHelper.java,v $// $RCSfile: PaletteHelper.java,v $// $Revision: 1.2.2.1 $// $Date: 2004/10/14 18:27:46 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.util;/*  AWT & Schwing  */import java.awt.Component;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.ComponentListener;import javax.swing.BorderFactory;import javax.swing.Box;import javax.swing.BoxLayout;import javax.swing.ButtonGroup;import javax.swing.JButton;import javax.swing.JCheckBox;import javax.swing.JComponent;import javax.swing.JFrame;import javax.swing.JInternalFrame;import javax.swing.JLabel;import javax.swing.JPanel;import javax.swing.JRadioButton;import javax.swing.JScrollPane;import javax.swing.JTextArea;import javax.swing.JTextField;import javax.swing.ScrollPaneConstants;import javax.swing.event.InternalFrameListener;import com.bbn.openmap.Layer;/** * Helps create palette GUI widgets. */public class PaletteHelper {    /**     * This class has only static methods, so there isn't any need to     * instantiate an object.     */    private PaletteHelper() {}    /**     * Create a panel containing a checkbox.     *      * @param boxlabel the string to use for the box title     * @param buttons the list of button names     * @param checked the initial state of each checkbox item     * @param al the actionlistener to invoke for a button. the     *        actioncommand is set to a string containing the integer     *        index of the button.     * @return the JPanel the the buttons are placed in     * @see javax.swing.AbstractButton#setActionCommand(String)     * @see javax.swing.JCheckBox     */    public static JPanel createCheckbox(String boxlabel, String[] buttons,                                        boolean[] checked, ActionListener al) {        JPanel jp = createPaletteJPanel(boxlabel);        for (int j = 0; j < buttons.length; j++) {            JCheckBox jcb = new JCheckBox(buttons[j]);            jcb.setActionCommand(Integer.toString(j));//index of                                                      // checked            if (al != null)                jcb.addActionListener(al);            jcb.setSelected(checked[j]);            jp.add(jcb);        }        return jp;    }    /**     * Create a panel containing a radiobox.     *      * @param boxlabel the string to use for the box title     * @param buttons the list of button names     * @param initiallySelected the index of the initially selected     *        button. -1 for no button initially selected.     * @param al the actionlistener to invoke for a button. the     *        actioncommand is set to a string containing the integer     *        index of the button.     * @return the JPanel the the buttons are placed in     * @see javax.swing.AbstractButton#setActionCommand(String)     * @see javax.swing.ButtonGroup     */    public static JPanel createRadiobox(String boxlabel, String[] buttons,                                        int initiallySelected, ActionListener al) {        JPanel jp = createPaletteJPanel(boxlabel);        ButtonGroup buttongroup = new ButtonGroup();        for (int j = 0; j < buttons.length; j++) {            JRadioButton jrb = new JRadioButton(buttons[j]);            jrb.setActionCommand("" + j);//index in list            jp.add(jrb);            buttongroup.add(jrb);            if (al != null) {                jrb.addActionListener(al);            }            if (j == initiallySelected) {                jrb.setSelected(true);            } else {                jrb.setSelected(false);            }        }        return jp;    }    /**     * Create a panel that does horizontal layout     *      * @param title the title of the panel (null allowed)     * @return the panel that got created     */    public static JPanel createHorizontalPanel(String title) {        JPanel panel = new JPanel();        //      panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));        panel.setLayout(new GridLayout(1, 0));        if (title != null) {            panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),                    title));        } else {            panel.setBorder(BorderFactory.createEtchedBorder());        }        return panel;    }    /**     * Create a panel that does vertical layout     *      * @param title the title of the panel (null allowed)     * @return the panel that got created     */    public static JPanel createVerticalPanel(String title) {        JPanel panel = new JPanel();        //      panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));        panel.setLayout(new GridLayout(0, 1));        if (title != null) {            panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),                    title));        } else {            panel.setBorder(BorderFactory.createEtchedBorder());        }        return panel;    }    /**     * Create a panel with a border and title     *      * @param title the title of the panel (null allowed)     * @return the panel that got created     */    public static JPanel createPaletteJPanel(String title) {        JPanel panel = new JPanel();        if (title != null) {            panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),                    title));        } else {            panel.setBorder(BorderFactory.createEtchedBorder());        }        panel.setLayout(new GridLayout(0, 1));        return panel;    }    /**     * Create and add a text entry field to a JComponent.     *      * @param title the title of the frame     * @param entry the name of the entry field     * @param parent the component to add ourselves to     * @return the text field     */    public static JTextField createTextEntry(String title, String entry,                                             JComponent parent) {        JPanel pal = PaletteHelper.createHorizontalPanel(null);        JLabel label = new JLabel(title);        label.setHorizontalTextPosition(JLabel.RIGHT);        JTextField tf = new JTextField(entry);        label.setLabelFor(tf);        pal.add(label);        pal.add(tf);        parent.add(pal);        return tf;    }    /**     * Create and add a text area to a JComponent.     *      * @param title the title of the frame     * @param entry the name of the entry field     * @param parent the component to add ourselves to     * @param rows the number of rows     * @param cols the number of columns     * @return the text area     */    public static JTextArea createTextArea(String title, String entry,                                           JComponent parent, int rows, int cols) {        JPanel pal = PaletteHelper.createHorizontalPanel(null);        JLabel label = new JLabel(title);        label.setHorizontalTextPosition(JLabel.RIGHT);        JTextArea ta = new JTextArea(entry, rows, cols);        JScrollPane jsp = new JScrollPane(ta);        label.setLabelFor(jsp);        pal.add(label);        pal.add(jsp);        parent.add(pal);        return ta;    }    /**     * Get a layer's associated palette as an internal window     *      * @param layer the layer to get the palette for     * @param ifl the listener to associate with the palette     * @return the frame that the palette is in     */    public static JInternalFrame getPaletteInternalWindow(                                                          Layer layer,                                                          InternalFrameListener ifl) {        return getPaletteInternalWindow(layer.getGUI(), layer.getName()                + " Palette", ifl);    }    /**     * Get a layer's associated palette as a top-level window     *      * @param layer the layer to get the palette for     * @param cl the listener to associate with the palette     * @return the frame that the palette is in     */    public static JFrame getPaletteWindow(Layer layer, ComponentListener cl) {        Component layerGUI = getLayerGUIComponent(layer);        JPanel dismissBox = new JPanel();        dismissBox.setLayout(new BoxLayout(dismissBox, BoxLayout.X_AXIS));        dismissBox.setAlignmentX(Component.LEFT_ALIGNMENT);        dismissBox.setAlignmentY(Component.BOTTOM_ALIGNMENT);        dismissBox.add(Box.createHorizontalGlue());        JButton dismiss = new JButton("Close");        dismissBox.add(dismiss);        dismissBox.add(Box.createHorizontalGlue());        JPanel pane = new JPanel();        pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));        pane.setAlignmentX(Component.CENTER_ALIGNMENT);        pane.setAlignmentY(Component.BOTTOM_ALIGNMENT);        pane.add(layerGUI);        pane.add(dismissBox);        final JFrame frame = getPaletteWindow(pane, layer.getName()                + " Palette", cl);        dismiss.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                frame.hide();            }        });        return frame;    }    /**     * Get a Component that represents a layer's GUI.     *      * @param layer the layer to get the palette for     * @return the Component that represents the GUI for the layer.     */    public static Component getLayerGUIComponent(Layer layer) {        Component pal = layer.getGUI();        if (pal == null) {            pal = new JLabel("No Palette");        }        JPanel p = new JPanel();        p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS));        p.setAlignmentX(Component.LEFT_ALIGNMENT);        p.setAlignmentY(Component.BOTTOM_ALIGNMENT);        p.add(pal);        return p;    }    /**     * Get a layer's associated palette as an internal window     *      * @param gui the Component to place in the window     * @param ifl the listener to associate with the palette     * @return the frame that the palette is in     */    public static JInternalFrame getPaletteInternalWindow(                                                          Component gui,                                                          String windowName,                                                          InternalFrameListener ifl) {        JInternalFrame paletteWindow;        // create the palette's scroll pane        JScrollPane scrollPane = new JScrollPane(gui, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);        scrollPane.setAlignmentX(Component.LEFT_ALIGNMENT);        scrollPane.setAlignmentY(Component.TOP_ALIGNMENT);        // create the palette internal window        paletteWindow = new JInternalFrame(windowName, true, //resizable                true, //closable                false, //maximizable                true //iconifiable        );        // add a window listener that destroys the palette when        // the window is closed        paletteWindow.addInternalFrameListener(ifl);        paletteWindow.getContentPane().add(scrollPane);        paletteWindow.setOpaque(true);        //layout all the components        paletteWindow.pack();        return paletteWindow;    }    /**     * Get a layer's associated palette as a top-level window     *      * @param gui the Component to place in the window     * @param cl the listener to associate with the palette     * @return the frame that the palette is in     */    public static JFrame getPaletteWindow(Component gui, String windowName,                                          ComponentListener cl) {        JScrollPane scrollPane = new JScrollPane(gui, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);        scrollPane.setAlignmentX(Component.LEFT_ALIGNMENT);        scrollPane.setAlignmentY(Component.TOP_ALIGNMENT);        // create the palette internal window        JFrame paletteWindow = new JFrame(windowName);        paletteWindow.addComponentListener(cl);        paletteWindow.getContentPane().add(scrollPane);        //layout all the components        paletteWindow.pack();        return paletteWindow;    }    /**     * Get a layer's associated palette as a top-level window     *      * @param gui the Component to place in the window     * @param cl the listener to associate with the palette     * @return the frame that the palette is in     */    public static JFrame getNoScrollPaletteWindow(Component gui,                                                  String windowName,                                                  ComponentListener cl) {        JPanel pane = new JPanel();        pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));        pane.setAlignmentX(Component.CENTER_ALIGNMENT);        pane.setAlignmentY(Component.BOTTOM_ALIGNMENT);        pane.add(gui);        JFrame paletteWindow = new JFrame(windowName);        paletteWindow.addComponentListener(cl);        paletteWindow.getContentPane().add(pane);        paletteWindow.pack();        return paletteWindow;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩免费高清视频| 日韩精品午夜视频| 99re热这里只有精品视频| 亚洲一区二区三区视频在线播放| 中文字幕一区二区在线播放| 成人黄色片在线观看| 中文字幕亚洲一区二区va在线| 欧美精品一区二区三区四区| 国产麻豆91精品| 亚洲乱码日产精品bd| 美女在线一区二区| 中文字幕欧美日韩一区| 亚洲一区免费在线观看| 日韩欧美中文一区二区| 99v久久综合狠狠综合久久| 欧美午夜电影网| 成人精品一区二区三区四区| 男女视频一区二区| 欧美午夜精品一区二区三区| 成人激情综合网站| 亚洲精品中文在线影院| 亚洲欧美自拍偷拍| 欧美日韩午夜影院| 成人晚上爱看视频| 日韩影院免费视频| 免费观看在线综合色| 久久久久国产精品厨房| 日韩视频一区二区三区在线播放| 精品国产乱码久久久久久老虎| 中文字幕不卡的av| 26uuu久久天堂性欧美| 免费三级欧美电影| 色视频一区二区| 亚洲444eee在线观看| 一区二区三区四区av| 国产精品国产三级国产a| 亚洲成人av免费| 五月天激情综合网| 蜜桃视频免费观看一区| 国产一区在线视频| 欧美丝袜丝nylons| 男女男精品视频| 亚洲国产欧美在线| 亚洲永久免费av| 亚洲va欧美va天堂v国产综合| 日韩美女主播在线视频一区二区三区| 欧美一区二区久久久| 日本人妖一区二区| 国产成人综合精品三级| 99久久精品国产精品久久| 91激情五月电影| 欧美tickling挠脚心丨vk| 精品国产乱码久久久久久久久| 91麻豆精品久久久久蜜臀| ...av二区三区久久精品| 日本不卡视频在线| aaa国产一区| 精品国产一区二区在线观看| 国产亚洲成av人在线观看导航| 国产精品久久久久久久久免费桃花| 亚洲一二三四区不卡| 国产成人丝袜美腿| 欧美激情一区二区三区四区| 亚洲欧美另类图片小说| 久久99国产乱子伦精品免费| 日本精品视频一区二区三区| 精品国产91亚洲一区二区三区婷婷 | 5858s免费视频成人| 国产精品久久久久久久久免费丝袜 | 91蜜桃网址入口| 国产欧美精品区一区二区三区 | 久久久久久久精| 久久精品国产秦先生| 欧美久久高跟鞋激| 亚洲第一主播视频| 在线精品视频一区二区三四| 成人欧美一区二区三区视频网页 | xfplay精品久久| 久久电影网站中文字幕| 久久久国产精华| 国产激情视频一区二区三区欧美 | 国产精品视频九色porn| 成人一区二区视频| 日韩理论片一区二区| 欧美午夜片在线观看| 天天综合网天天综合色| 日韩视频一区在线观看| 精品一区二区三区免费视频| 国产视频一区不卡| 色视频一区二区| 精品一区二区三区免费毛片爱| 久久五月婷婷丁香社区| www.欧美.com| 日韩国产欧美在线视频| 国产日韩欧美综合在线| 在线观看免费亚洲| 国产一区91精品张津瑜| 亚洲在线视频一区| 国产精品午夜电影| 欧美一区二区三区成人| eeuss影院一区二区三区| 性欧美大战久久久久久久久| 日韩精品专区在线影院观看| 一本一道综合狠狠老| 国产一区二区中文字幕| 丝袜亚洲另类丝袜在线| 亚洲综合无码一区二区| 国产午夜精品一区二区| 久久一区二区三区四区| 欧美一区二区三区四区五区 | 风间由美一区二区av101| 日本怡春院一区二区| 亚洲五月六月丁香激情| 自拍偷自拍亚洲精品播放| 精品国产网站在线观看| 欧美日韩国产高清一区二区三区| 99热99精品| 成人国产在线观看| 色哟哟一区二区三区| 日本大香伊一区二区三区| 色老汉一区二区三区| 日本精品视频一区二区| 欧美在线视频你懂得| 欧美一级欧美三级| 久久亚洲综合色一区二区三区| 国产三级一区二区| 亚洲婷婷在线视频| 亚洲国产精品人人做人人爽| 午夜视频在线观看一区二区| 国产精品美女视频| 亚洲成av人片在www色猫咪| 午夜久久久久久久久| 黑人巨大精品欧美一区| 久久成人免费日本黄色| 国产91对白在线观看九色| a4yy欧美一区二区三区| 欧美视频在线一区二区三区| 亚洲精品一区二区三区99| 日韩美女视频19| 国产一区不卡在线| 欧美专区在线观看一区| 欧美一区二区三区在线观看视频 | 精品乱人伦一区二区三区| 日韩欧美黄色影院| 亚洲精品日韩一| 成人综合在线观看| 欧美xxxx老人做受| 免费在线欧美视频| 欧美日韩一二区| 亚洲精品一卡二卡| 91网站最新网址| 国产精品免费久久久久| 韩国欧美一区二区| 中文字幕中文字幕在线一区| 国产成人免费视| 久久蜜桃一区二区| 一区二区日韩电影| 国产一区二区剧情av在线| 97se亚洲国产综合自在线| 精品在线你懂的| 国产成人在线视频免费播放| 成人丝袜视频网| 成人黄色综合网站| 欧美电影一区二区三区| 国产视频一区不卡| 成人av免费网站| 亚洲你懂的在线视频| 欧美性色综合网| 日本最新不卡在线| 精品久久久久99| 不卡的电视剧免费网站有什么| 亚洲欧美日韩国产综合在线| 色噜噜狠狠成人网p站| 亚洲观看高清完整版在线观看| 欧美日韩黄色影视| 国产大陆亚洲精品国产| 亚洲色图色小说| 精品福利在线导航| 另类的小说在线视频另类成人小视频在线| 在线观看91精品国产入口| 免费成人小视频| 一级精品视频在线观看宜春院| 精品国精品自拍自在线| 国产999精品久久久久久绿帽| 国产精品欧美精品| 日韩欧美国产一区二区三区| 成人美女视频在线看| 人人超碰91尤物精品国产| 中文字幕中文字幕一区二区| 欧美日韩不卡在线| 91激情在线视频| 成人黄色在线网站| 国产乱妇无码大片在线观看| 亚洲国产精品久久人人爱蜜臀| 久久先锋影音av鲁色资源 | 亚洲成av人在线观看| 国产精品午夜在线| 亚洲国产精品激情在线观看 | 日韩视频一区二区三区| 欧美精品xxxxbbbb|