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

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

?? drawingattributes.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    /**     * Set the pixel radius given to OMPoint objects.     */    public void setPointRadius(int radius) {        pointRadius = radius;    }    /**     * Get the pixel radius given to OMPoint objects.     */    public int getPointRadius() {        return pointRadius;    }    /**     * Set the oval setting given to OMPoint objects.     */    public void setPointOval(boolean value) {        pointOval = value;    }    /**     * Get the oval setting given to OMPoint objects.     */    public boolean isPointOval() {        return pointOval;    }    /**     * Set the DrawingAttributes parameters based on the current     * settings of an OMGraphic.     */    public void setFrom(OMGraphic graphic) {        if (graphic == null)            return;        matted = graphic.isMatted();        mattingPaint = graphic.getMattingPaint();        linePaint = graphic.getLinePaint();        selectPaint = graphic.getSelectPaint();        fillPaint = graphic.getFillPaint();        fillPattern = graphic.getTextureMask();        // Need to put this in to keep the gui up to date. Calling        // setStroke fires off a propertyChange reaction that        // potentially harms other parameters, like renderType.        stroke = graphic.getStroke();        if (graphic instanceof OMPoint) {            pointRadius = ((OMPoint) graphic).getRadius();            pointOval = ((OMPoint) graphic).isOval();        }        // Don't want to call this here, it is CPU intensive.        // resetGUI should be called only when the GUI needs to be        // updated.        //      resetGUI();        if (propertyChangeSupport != null) {            propertyChangeSupport.firePropertyChange("all", true, true);        }    }    /**     * Set all the attributes for the graphic that are contained     * within this DrawingAttributes class.     * <P>     *      * If the fillPattern is set to a TexturePaint, and the fillPaint     * is null or clear, then the fillPattern will be set as the fill     * paint. Otherwise, the fillPaint will be set in the OMGraphic,     * and the fillPattern will be set too. If the     * OMGraphic.textureMask is != null, then it will get painted on     * top of the fillPaint. Makes for effects if the fillPattern has     * some transparent spots.     *      * @param graphic OMGraphic.     */    public void setTo(OMGraphic graphic) {        if (graphic == null)            return;        setOMGraphicEdgeAttributes(graphic);        // If the fillPattern is set to a TexturePaint, and the        // fillPaint is null or clear, then the fillPattern will be        // set as the fill paint. Otherwise, the fillPaint will be        // set in the OMGraphic, and the fillPattern will be set too.        // If the OMGraphic.textureMask is != null, then it will get        // painted on top of the fillPaint. Makes for effects if the        // fillPattern has some transparent spots.        if (fillPattern != null                && (fillPaint == null || OMGraphic.isClear(fillPaint))) {            graphic.setFillPaint(fillPattern);        } else {            graphic.setFillPaint(fillPaint);            graphic.setTextureMask(fillPattern);        }        graphic.setMatted(matted);        graphic.setMattingPaint(mattingPaint);        if (graphic instanceof OMPoint) {            ((OMPoint) graphic).setRadius(pointRadius);            ((OMPoint) graphic).setOval(pointOval);        }    }    /**     * Set the graphic attributes that only pertain to boundaries.     * This is good for polylines, where setting the fill paint will     * close up the polyline making it a polygon. So if you want to     * paint edge data, use this function. Sets line paint, line     * width, and stroke if graphic is a OMGraphic     *      * @param graphic OMGraphic     */    public void setOMGraphicEdgeAttributes(OMGraphic graphic) {        graphic.setLinePaint(linePaint);        graphic.setSelectPaint(selectPaint);        if (stroke != null) {            graphic.setStroke(stroke);        } else {            graphic.setStroke(OMGraphic.BASIC_STROKE);        }    }    /**     * Set all the attributes for the graphic that are contained     * within this DrawingAttributes class. Get the TexturePaint for     * these attributes, and scale it for the scale compaired to the     * base scale set. If the base scale equals NONE, the fill pattern     * is not changed with relation to scale.     *      * @param graphic OMGraphic.     * @param scale scale to compare to the base scale.     */    public void setOMGraphicAttributesForScale(OMGraphic graphic, float scale) {        setOMGraphicEdgeAttributesForScale(graphic, scale);        graphic.setFillPaint(getFillPaintForScale(scale));    }    /**     * Set the graphic attributes that only pertain to boundaries.     * This is good for polylines, where setting the fill paint will     * close up the polyline making it a polygon. So if you want to     * paint edge data, use this function. Sets line paint, line     * width, and stroke if graphic is a OMGraphic The stroke, if the     * base scale is set, is adjusted accordingly.     *      * @param graphic OMGraphic.     * @param scale scale to compare to the base scale.     */    public void setOMGraphicEdgeAttributesForScale(OMGraphic graphic,                                                   float scale) {        graphic.setLinePaint(linePaint);        graphic.setSelectPaint(selectPaint);        if (stroke != null) {            graphic.setStroke(getStrokeForScale(scale));        } else {            graphic.setStroke(OMGraphic.BASIC_STROKE);        }    }    /**     * A lock to use to limit the number of JColorChoosers that can     * pop up for a given DrawingAttributes GUI.     */    private boolean colorChooserLock = false;    /**     * Get the lock to use a JColorChooser. Returns true if you got     * the lock, false if you didn't.     */    protected synchronized boolean getLock() {        if (colorChooserLock == false) {            colorChooserLock = true;            return colorChooserLock;        } else {            return false;        }    }    /**     * Release the lock on the JColorChooser.     */    protected synchronized void releaseLock() {        colorChooserLock = false;    }    /**     * The DrawingAttributes method for handling ActionEvents. Used to     * handle the GUI actions, like changing the colors, line widths,     * etc.     */    public void actionPerformed(ActionEvent e) {        Object source = e.getSource();        String command = e.getActionCommand();        String interString;        Paint tmpPaint;        if (command == LineColorCommand && linePaint instanceof Color) {            interString = i18n.get(DrawingAttributes.class,                    "chooseLineColor",                    "Choose Line Color");            tmpPaint = getNewPaint((Component) source,                    interString,                    (Color) linePaint);            if (tmpPaint != null) {                setLinePaint(tmpPaint);            }        } else if (command == FillColorCommand && fillPaint instanceof Color) {            interString = i18n.get(DrawingAttributes.class,                    "chooseFillColor",                    "Choose Fill Color");            tmpPaint = getNewPaint((Component) source,                    interString,                    (Color) fillPaint);            if (tmpPaint != null) {                setFillPaint(tmpPaint);            }        } else if (command == SelectColorCommand                && selectPaint instanceof Color) {            interString = i18n.get(DrawingAttributes.class,                    "chooseSelectColor",                    "Choose Select Color");            tmpPaint = getNewPaint((Component) source,                    interString,                    (Color) selectPaint);            if (tmpPaint != null) {                setSelectPaint(tmpPaint);            }        } else if (command == MattingColorCommand                && mattingPaint instanceof Color) {            interString = i18n.get(DrawingAttributes.class,                    "chooseMattingColor",                    "Choose Matting Color");            tmpPaint = getNewPaint((Component) source,                    interString,                    (Color) mattingPaint);            if (tmpPaint != null) {                setMattingPaint(tmpPaint);            }        } else if (command == MattedCommand) {            JToggleButton check = (JToggleButton) e.getSource();            setMatted(check.isSelected());        } else {            if (Debug.debugging("drawingattributes")) {                Debug.output("DrawingAttributes.actionPerformed: unrecognized command > "                        + command);            }        }    }    /**     * A convenience method to get a color from a JColorChooser. Null     * will be returned if the JColorChooser lock is in place, or if     * something else is done where the JColorChooser would normally     * return null.     *      * @param source the source component for the JColorChooser.     * @param title the String to label the JColorChooser window.     * @param startingColor the color to give to the JColorChooser to     *        start with. Returned if the cancel button is pressed.     * @return Color chosen from the JColorChooser, null if lock for     *         chooser can't be sequired.     */    protected Color getNewPaint(Component source, String title,                                Color startingColor) {        Color newPaint = null;        if (getLock()) {            newPaint = OMColorChooser.showDialog(source, title, startingColor);            releaseLock();        }        return newPaint;    }    protected JPanel palette = null;    protected JToolBar toolbar = null;    /**     * Get the GUI components that control the DrawingAttributes. This     * method gets the color and line toolbar and embeds it into a     * JPanel.     */    public Component getGUI() {        if (Debug.debugging("drawingattributes")) {            Debug.output("DrawingAttributes: creating palette.");        }        return getColorAndLineGUI();    }    /**     * Gets the JToolBar that contains controls for changing the     * colors and line stroke. You get the toolbar, so any additions     * to this tend to be a little permanent. You might want to wrap     * this in a JPanel if you just want to enhance the GUI, and add     * stuff to the panel instead.     */    protected JPanel getColorAndLineGUI() {        if (palette == null || toolbar == null) {            palette = new JPanel();            if (Debug.debugging("layout")) {                palette.setBorder(BorderFactory.createLineBorder(Color.red));            }            GridBagLayout gridbag = new GridBagLayout();            GridBagConstraints c = new GridBagConstraints();            palette.setLayout(gridbag);            toolbar = new GridBagToolBar();            gridbag.setConstraints(toolbar, c);        }        resetGUI();        palette.removeAll(); // Remove cruft from past OMGraphics        toolbar.removeAll(); // Remove cruft from past OMGraphics        palette.add(toolbar); // Add back the basic toolbar        toolbar.add(lineColorButton);        toolbar.add(fillColorButton);        toolbar.add(selectColorButton);        toolbar.add(mattingColorButton);        toolbar.add(new JLabel(" "));        toolbar.add(mattedCheckBox);        if (stroke instanceof BasicStroke) {            BasicStrokeEditorMenu tmpbse = getBasicStrokeEditor();            if (tmpbse != null) {                ImageIcon icon = BasicStrokeEditorMenu.createIcon(tmpbse.getBasicStroke(),                        50,                        icon_height,                        true);                lineButton = new JButton(icon);                lineButton.setToolTipText(i18n.get(DrawingAttributes.class,                        "lineButton",                        I18n.TOOLTIP,                        "Modify Line Parameters"));                lineButton.addActionListener(new ActionListener() {                    public void actionPerformed(ActionEvent ae) {                        JButton button = getLineButton();                        JPopupMenu popup = new JPopupMenu();                        JMenu menu = getLineTypeMenu();                        if (menu != null) {                            popup.add(menu);                        }                        getBasicStrokeEditor().setGUI(popup);                        JMenu[] menus = getLineMenuAdditions();                        if (menus != null) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品乱码av一区二区| 日韩有码一区二区三区| 亚洲一区在线观看免费| 五月婷婷激情综合网| 国产真实精品久久二三区| 国产精品1024久久| 欧美亚洲另类激情小说| 久久奇米777| 日本欧美韩国一区三区| 99在线精品免费| 6080国产精品一区二区| 国产精品网站在线观看| 热久久国产精品| 欧美在线视频不卡| 中文字幕免费一区| 韩日精品视频一区| 91网址在线看| 久久欧美中文字幕| 蜜桃传媒麻豆第一区在线观看| 成人一区二区三区在线观看| 99久久99久久久精品齐齐| 久久综合久久99| 日本成人中文字幕在线视频| 99久久精品免费看| 久久久高清一区二区三区| 奇米四色…亚洲| 欧美日韩国产成人在线免费| 亚洲人妖av一区二区| 国产91综合一区在线观看| 久久综合狠狠综合| 国内精品伊人久久久久影院对白| 欧美日韩小视频| 一区二区三区中文字幕| 91网站最新地址| 国产精品久久久久久久久搜平片 | 国产酒店精品激情| 91精品久久久久久蜜臀| 蜜桃视频一区二区| 欧美一区二区三区影视| 日韩不卡手机在线v区| 欧美一区二区三区在线观看 | 欧美一区二区三区在线| 日本不卡免费在线视频| 日韩欧美亚洲另类制服综合在线| 久久精品国产第一区二区三区| 日韩西西人体444www| 奇米精品一区二区三区在线观看| 欧美一区二区三区四区久久| 日韩av一二三| 欧美老人xxxx18| 捆绑调教一区二区三区| 欧美tickling挠脚心丨vk| 久久国产精品99精品国产| 2023国产精品| 国产91精品入口| 亚洲欧洲综合另类在线| 欧美色图免费看| 日韩电影免费一区| 国产丝袜在线精品| 色婷婷激情久久| 爽好久久久欧美精品| 日韩免费视频线观看| 国产98色在线|日韩| 伊人一区二区三区| 6080午夜不卡| 成人黄动漫网站免费app| 亚洲电影第三页| 久久久亚洲欧洲日产国码αv| 成人国产亚洲欧美成人综合网| 亚洲超碰97人人做人人爱| 日韩欧美一区在线观看| 波多野结衣亚洲| 国内久久精品视频| 中文字幕一区二区在线观看| 欧美精品三级在线观看| 国产91露脸合集magnet| 日日骚欧美日韩| 国产精品久久久久久福利一牛影视 | 亚洲自拍偷拍麻豆| 亚洲最大成人综合| 欧美一级高清片| 高清视频一区二区| 偷拍一区二区三区四区| 欧美一二三四区在线| 亚洲激情成人在线| 欧美日韩一级黄| 91日韩一区二区三区| 亚洲在线一区二区三区| 欧美午夜在线观看| 久久亚洲综合色| 成人av综合一区| 91香蕉国产在线观看软件| 综合电影一区二区三区 | 久久国产尿小便嘘嘘尿| 久久久噜噜噜久久中文字幕色伊伊| 蜜桃av噜噜一区| 国产亚洲欧美日韩俺去了| 老司机一区二区| 午夜精品一区二区三区电影天堂 | 中文字幕免费在线观看视频一区| 99精品久久只有精品| 亚洲在线视频免费观看| 中文字幕不卡的av| 欧美午夜在线一二页| 久久久久国产精品麻豆ai换脸 | 久久成人综合网| 国产欧美精品一区aⅴ影院| 97久久精品人人做人人爽50路| 国产精品第四页| 国产精品久久久久久亚洲伦| 欧美中文字幕一区二区三区| 寂寞少妇一区二区三区| 亚洲视频一二区| 色婷婷精品久久二区二区蜜臂av| 日本va欧美va瓶| 亚洲日本在线天堂| 国产亚洲污的网站| 成人免费va视频| 国产精品美女www爽爽爽| 91亚洲国产成人精品一区二区三| 午夜久久久影院| 精品区一区二区| 国产福利视频一区二区三区| 日韩二区三区四区| 亚洲蜜臀av乱码久久精品| 2019国产精品| 欧美激情一区二区| 欧美一卡二卡三卡| 在线欧美日韩国产| 国产电影一区在线| www.在线欧美| 国产一区二区在线观看免费| 五月婷婷综合网| 亚洲图片另类小说| 一区二区三区免费看视频| 国产视频视频一区| 欧美成人高清电影在线| 欧美午夜片在线看| 日韩午夜av电影| 欧美在线你懂的| 国产精品久久久久久一区二区三区 | 99精品国产视频| 视频一区二区三区中文字幕| 久久精品国产77777蜜臀| 亚洲aⅴ怡春院| 夜夜夜精品看看| 欧美日韩黄视频| 久久精品人人做人人爽人人| 日韩欧美综合在线| 7777精品伊人久久久大香线蕉完整版 | 精品国产乱码久久久久久久久 | 91同城在线观看| av一区二区三区在线| 国产成a人亚洲精| 一区二区三区在线视频免费观看| 亚洲成av人片观看| 日日夜夜精品视频免费| 日韩一区精品字幕| 亚洲综合偷拍欧美一区色| 精品一区二区免费视频| 国产一区二区三区国产| 国产一区二区三区免费观看| 午夜a成v人精品| 99久久99久久免费精品蜜臀| 91在线高清观看| 日本精品一区二区三区高清| 狠狠色丁香婷综合久久| 欧美日韩视频在线观看一区二区三区 | 欧美放荡的少妇| 91精品国产色综合久久| 国产视频一区在线观看 | 欧美片在线播放| 精品久久久久av影院| 欧美一级二级三级乱码| 337p日本欧洲亚洲大胆精品| 国产午夜精品福利| 日韩伦理av电影| 成人黄色电影在线| 在线观看不卡一区| 欧美成人一区二区三区在线观看| 久久婷婷成人综合色| 日韩av网站免费在线| 精品一区二区三区久久久| 成人开心网精品视频| 精品一区二区影视| 日韩午夜在线观看| 国产精品久久久久久久久免费相片| 亚洲国产视频一区二区| 欧美激情综合五月色丁香| 国产欧美一区二区三区鸳鸯浴 | 欧美在线观看一区二区| 在线观看免费一区| 欧美精品aⅴ在线视频| 精品欧美久久久| 亚洲男人电影天堂| 久久精品久久99精品久久| 欧美日韩不卡一区| 欧美国产精品一区二区| 午夜欧美视频在线观看| 国产高清成人在线|