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

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

?? drawingattributes.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
// **********************************************************************// // <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/omGraphics/DrawingAttributes.java,v $// $RCSfile: DrawingAttributes.java,v $// $Revision: 1.17.2.6 $// $Date: 2005/08/09 21:17:45 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.omGraphics;/*  Java Core  */import java.awt.BasicStroke;import java.awt.Color;import java.awt.Component;import java.awt.GradientPaint;import java.awt.Graphics2D;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import java.awt.Image;import java.awt.Paint;import java.awt.Rectangle;import java.awt.Shape;import java.awt.Stroke;import java.awt.TexturePaint;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.image.BufferedImage;import java.beans.PropertyChangeEvent;import java.beans.PropertyChangeListener;import java.beans.PropertyChangeSupport;import java.io.Serializable;import java.net.MalformedURLException;import java.net.URL;import java.util.NoSuchElementException;import java.util.Properties;import java.util.StringTokenizer;import javax.swing.BorderFactory;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JLabel;import javax.swing.JMenu;import javax.swing.JPanel;import javax.swing.JPopupMenu;import javax.swing.JToggleButton;import javax.swing.JToolBar;import com.bbn.openmap.Environment;import com.bbn.openmap.I18n;import com.bbn.openmap.PropertyConsumer;import com.bbn.openmap.gui.GridBagToolBar;import com.bbn.openmap.image.BufferedImageHelper;import com.bbn.openmap.tools.icon.IconPartList;import com.bbn.openmap.tools.icon.OMIconFactory;import com.bbn.openmap.tools.icon.OpenMapAppPartCollection;import com.bbn.openmap.util.Debug;import com.bbn.openmap.util.PropUtils;/** * DrawingAttributes provides a mechanism for loading and managing * different drawing attributes that may be used. Several layers need * to be able to have Properties define how objects should be drawn, * and the list of these drawing attributes tend to be the same. The * DrawingAttributes class fishes out the applicable properties for * you, creates the objects needed, and then lets you get those * objects when needed. * <P> *  * The list of properties that the DrawingAttributes object can handle * are listed below. If a property is not set, the default value will * be used. *  * <pre> *  *   *    *     *     # The Edge or Line color *     lineColor=AARRGGBB (Hex ARGB Color, black is default) *     # The Fill color for 2D shapes *     fillColor=AARRGGBB (Hex ARGB Color, clean is default) *     # The Text Color for objects where any text should be different than the line color. *     textColor=AARRGGBB (Hex ARGB Color, black is default) *     # A highlight color to switch a graphic to when &quot;selected&quot;. *     selectColor=AARRGGBB (Hex ARGB Color, black is default) *     # A file or URL that can be used for a fill pattern, in place of the fill color. *     fillPattern=file://file (default is N/A) *     # The line width of the edge of the graphic *     lineWidth=int (1 is default) *     # A pattern to use for a dashed line, reflected as a *     # space-separated list of numbers, which are interpreted as on dash *     # length, off dash length, on dash length, etc.   *     dashPattern=10 5 3 5 (5 5 is the default if an error occurs reading the numbers, a non-dashed line is the default.)   *     The phase for the dash pattern, *     dashPhase=0.0f (0 is the default) *     # The scale to use for certain measurements, so that fill patterns *     # can be scaled depending on the map scale compaired to the *     # baseScale. *     baseScale=XXXXXX (where 1:XXXXXX is the scale to use.  N/A for the default). *     # Set whether any OMPoints that are given to the DrawingAttributes object are oval or rectangle. *     pointOval=false *     # Set the pixel radius of any OMPoint given to the DrawingAttributes object. *     pointRadius=2 *    *   *  *  */public class DrawingAttributes implements ActionListener, Serializable,        Cloneable, PropertyConsumer, PropertyChangeListener {    /**     * The name of the property that holds the line paint of the     * graphics.     */    public final static String linePaintProperty = "lineColor";    //     /**    //      * The name of the property that holds the text paint for Text,    //      * in case that should be different for labels, etc.    //      */    //     public final static String textPaintProperty = "textColor";    /**     * The name of the property that holds the fill paint of the     * graphics.     */    public final static String fillPaintProperty = "fillColor";    /**     * The name of the property that holds the select paint of the     * graphics, which is the line paint that gets set with the     * default OMGraphic.select() action.     */    public final static String selectPaintProperty = "selectColor";    /**     * The name of the property that holds the matting paint of the     * graphics, which is the wider line paint that gets set when     * matting is enabled.     */    public final static String mattingPaintProperty = "mattingColor";    /**     * The property that specifies an URL or file a image file to be     * used to construct the Paint object for a texture fill pattern.     * If the fillPattern is null, the fillPaint will be used.     */    public static final String fillPatternProperty = "fillPattern";    /**     * The name of the property that holds the lineWidth of the     * graphics.     */    public final static String lineWidthProperty = "lineWidth";    /**     * The name of the property that holds a dashed pattern for lines.     * This will be used to build the stroke object for lines. This     * pattern should be two space-separated numbers, the first     * representing the pixel length of the line in the dash, the     * second being the space pixel length of the dash.     */    public final static String dashPatternProperty = "dashPattern";    /**     * The name of the property that holds a dashed phase for lines.     * This will be used to build the stroke object for lines.     */    public final static String dashPhaseProperty = "dashPhase";    /**     * The base scale to use for the image provided for the fill     * pattern. As the scale of the map changes, the base scale can be     * used as a reference to change the resolution of the pattern.     * This scale will also be used for strokes.     */    public static final String baseScaleProperty = "baseScale";    /**     * Set whether a thin black matting should be drawing around the     * OMGraphic.     */    public static final String mattedProperty = "matted";    /** Property for whether OMPoints should be oval. "pointOval" */    public static final String PointOvalProperty = "pointOval";    /** Property for the pixel radius of OMPoints. "pointRadius" */    public static final String PointRadiusProperty = "pointRadius";    public final static int NONE = -1;    /** The default line paint. (black) */    public final static String defaultLinePaintString = "0"; // black    /** The default fill paint. (none) */    public final static String defaultFillPaintString = "-1"; // none    /** The default fill paint. (black) */    public final static String defaultSelectPaintString = "0"; // black    /** The default matting paint. (black) */    public final static String defaultMattingPaintString = "0"; // black    /** The default line width */    public final static float defaultLineWidth = 1f;    /** The default dash phase, which is zero. */    public final static float defaultDashPhase = 0f;    /** The defaule dash length, for opaque and transparent parts. */    public final static float defaultDashLength = 5f;    /** The paint to outline the shapes. */    protected Paint linePaint = Color.black;    //     /** The paint for text. Default to black. */    //     protected Paint textPaint = linePaint;    /** The select paint for the shapes. */    protected Paint selectPaint = Color.black;    /** The paint to fill the shapes. */    protected Paint fillPaint = OMColor.clear;    /** The paint to use for matting. */    protected Paint mattingPaint = OMColor.black;    /**     * A TexturePaint pattern, if defined. Overrules fillPaint if     * fillPaint is null or clear.     */    protected TexturePaint fillPattern = null;    /** The line stroke, for dashes, etc. */    protected transient Stroke stroke = new BasicStroke(1);    /**     * The base scale for scaling the fill pattern image. If NONE,     * then the resolution of the raw image will always be used.     */    protected float baseScale = NONE;    /**     * Whether a thin black matting line should be rendered around the     * OMGraphic.     */    protected boolean matted = false;    protected String propertyPrefix = null;    protected String fPattern = null; // for writing out the    // properties    /**     * The isOval setting to set on OMPoints.     */    protected boolean pointOval = OMPoint.DEFAULT_ISOVAL;    /**     * The pixel radius to set on OMPoints.     */    protected int pointRadius = OMPoint.DEFAULT_RADIUS;    /**     * A good ol' generic DrawingAttributes object for all to use.     * Black lines, clear fill paint.     */    public final static DrawingAttributes DEFAULT = new DrawingAttributes();    /**     * Support object to notify listeners when something has changed.     */    protected PropertyChangeSupport propertyChangeSupport = null;    /**     * For internationalization.     */    protected I18n i18n = Environment.getI18n();    /** Command for line color string adjustments. */    public final static String LineColorCommand = "LineColor";    /** Command for fill color string adjustments. */    public final static String FillColorCommand = "FillColor";    /** Command for select color string adjustments. */    public final static String SelectColorCommand = "SelectColor";    /** Command for matting color string adjustments. */    public final static String MattingColorCommand = "MattingColor";    /** Command for adding matting. */    public final static String MattedCommand = "MattedCommand";    private JButton lineColorButton;    private JButton fillColorButton;    private JButton selectColorButton;    private JButton mattingColorButton;    private JToggleButton mattedCheckBox;    protected final static int icon_width = 20;    protected final static int icon_height = 20;    public static boolean alwaysSetTextToBlack = false;    protected transient BasicStrokeEditorMenu bse;    /**     * The JButton used to bring up the line menu.     */    protected JButton lineButton;    /**     * Any additional JMenu items that should be added to the line     * menu.     */    protected JMenu[] lineMenuAdditions = null;    /**     * Create a DrawingAttributes with the default settings - clear     * fill paint and pattern, sold black edge line of width 1.     */    public DrawingAttributes() {        setProperties(null, null);    }    /**     * Create the DrawingAttributes and call setProperties without a     * prefix for the properties. Call setProperties without a prefix     * for the properties.     *      * @param props the Properties to look in.     */    public DrawingAttributes(Properties props) {        setProperties(null, props);    }    /**     * Create the DrawingAttributes and call setProperties with a     * prefix for the properties.     *      * @param prefix the prefix marker to use for a property, like     *        prefix.propertyName. The period is added in this     *        function.     * @param props the Properties to look in.     */    public DrawingAttributes(String prefix, Properties props) {        setProperties(prefix, props);    }    /**     * Shallow clone.     */    public Object clone() {        try {            return super.clone();        } catch (CloneNotSupportedException e) {            return null;        }    }    public Stroke cloneBasicStroke() {        if (stroke instanceof BasicStroke) {            BasicStroke bs = (BasicStroke) stroke;            return new BasicStroke(bs.getLineWidth(), bs.getEndCap(), bs.getLineJoin(), bs.getMiterLimit(), bs.getDashArray(), bs.getDashPhase());        } else {            return new BasicStroke(1);        }    }    /**     * Shallow.     */    public void setTo(DrawingAttributes clone) {        clone.linePaint = linePaint;        //      clone.textPaint = textPaint;        clone.selectPaint = selectPaint;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费观看91视频大全| 一区二区三区在线视频观看| 久久电影国产免费久久电影| 欧美成人性福生活免费看| 日本女人一区二区三区| 日韩午夜精品电影| 紧缚奴在线一区二区三区| 久久婷婷国产综合精品青草 | 国产精品久久久久精k8| 本田岬高潮一区二区三区| 亚洲视频在线观看三级| 欧美亚洲一区三区| 老司机精品视频在线| 久久久99免费| 色婷婷av一区二区三区gif | 欧美亚一区二区| 青娱乐精品在线视频| 欧美激情在线一区二区| 一本到不卡精品视频在线观看| 天天色综合天天| 久久精品免视看| 色综合天天综合在线视频| 三级欧美韩日大片在线看| 欧美精品一区二区高清在线观看| 成人性生交大片免费看在线播放| 怡红院av一区二区三区| 欧美成人精品福利| 99精品国产99久久久久久白柏| 视频一区二区三区中文字幕| 国产午夜精品福利| 精品视频1区2区3区| 国产精品中文字幕欧美| 亚洲大片一区二区三区| 国产午夜亚洲精品不卡| 欧美少妇bbb| 国产成人免费在线观看不卡| 亚洲成人av一区| 国产精品二三区| 日韩视频免费观看高清完整版在线观看 | 99精品视频中文字幕| 日韩av中文字幕一区二区三区| 中文字幕精品一区二区三区精品| 欧美日韩国产123区| 国产a区久久久| 蜜桃视频在线一区| 亚洲精品一二三区| 欧美国产综合色视频| 欧美一区二区三区四区视频| 91浏览器打开| 顶级嫩模精品视频在线看| 日本不卡一区二区三区高清视频| 亚洲免费视频中文字幕| 久久久久久久久久美女| 欧美高清一级片在线| 99精品视频在线免费观看| 国产精品亚洲视频| 久久精品国产在热久久| 亚洲二区在线视频| 日韩美女视频一区二区| 欧美激情一区不卡| 久久综合九色综合97_久久久 | 69av一区二区三区| 色婷婷av一区二区三区大白胸| 成人激情视频网站| 国产精品888| 国产精品中文有码| 极品美女销魂一区二区三区 | 精品国产区一区| 欧美久久久久中文字幕| 欧美亚洲国产一区二区三区| 粉嫩久久99精品久久久久久夜| 国产在线不卡一区| 国产最新精品免费| 国产精品一区在线观看乱码| 韩国女主播一区二区三区| 蓝色福利精品导航| 另类小说综合欧美亚洲| 久久99国产精品久久99果冻传媒| 日日骚欧美日韩| 美女脱光内衣内裤视频久久网站 | 日韩福利视频网| 五月激情综合色| 日本免费新一区视频| 麻豆91在线看| 国产做a爰片久久毛片 | 97超碰欧美中文字幕| 99久久国产免费看| 91黄色在线观看| 欧洲亚洲精品在线| 欧美丰满一区二区免费视频| 日韩视频在线你懂得| 欧美精品一区二区不卡| 欧美精彩视频一区二区三区| **欧美大码日韩| 亚洲午夜免费电影| 男女男精品视频| 国产黄人亚洲片| 99精品久久久久久| 欧美人妇做爰xxxⅹ性高电影 | 久久久久国产成人精品亚洲午夜| 国产性天天综合网| 亚洲精选在线视频| 秋霞午夜鲁丝一区二区老狼| 国产成人在线免费观看| 99国产精品99久久久久久| 欧美四级电影网| 26uuu国产电影一区二区| 日本一区二区三区免费乱视频| 亚洲日本在线看| 喷水一区二区三区| 成人av资源在线| 欧美日韩大陆在线| 国产日韩精品久久久| 一区二区三区自拍| 麻豆精品视频在线观看免费| 波多野结衣中文字幕一区| 在线精品观看国产| 久久久久国色av免费看影院| 亚洲精品欧美在线| 久久99九九99精品| 欧美视频你懂的| 国产精品区一区二区三区| 婷婷中文字幕一区三区| 成人av网址在线| 欧美一二三四区在线| 亚洲人成人一区二区在线观看 | 国产精品第五页| 久久99精品久久久久婷婷| 色婷婷综合在线| 久久久久久久网| 日韩精品电影一区亚洲| jiyouzz国产精品久久| 91精品国产综合久久精品麻豆| 国产精品日日摸夜夜摸av| 国产一区二区精品在线观看| 99久久夜色精品国产网站| 欧美mv和日韩mv国产网站| 亚洲免费在线电影| 国产·精品毛片| 精品国产一二三区| 午夜欧美电影在线观看| 一本久道久久综合中文字幕 | 日韩午夜激情电影| 亚洲综合丁香婷婷六月香| 成人污污视频在线观看| 欧美成人综合网站| 亚洲成av人片在线| 在线精品视频一区二区三四| 国产精品女上位| 国产精品亚洲成人| 欧美成人官网二区| 污片在线观看一区二区| 欧美在线观看一二区| 亚洲蜜臀av乱码久久精品| 国产成人免费在线视频| 久久欧美中文字幕| 另类欧美日韩国产在线| 日韩手机在线导航| 免费看黄色91| 日韩你懂的在线观看| 青青草97国产精品免费观看 | 精品美女被调教视频大全网站| 午夜精品爽啪视频| 欧美日韩亚洲国产综合| 亚洲v日本v欧美v久久精品| 欧美视频精品在线观看| 亚洲高清视频在线| 欧美日韩国产在线观看| 亚洲午夜免费电影| 欧美久久一二三四区| 日韩中文字幕91| 欧美电影在线免费观看| 日韩激情中文字幕| 7777精品久久久大香线蕉| 日韩不卡免费视频| 亚洲精品在线一区二区| 国产激情一区二区三区| 国产精品―色哟哟| 91女厕偷拍女厕偷拍高清| 亚洲乱码中文字幕综合| 在线视频亚洲一区| 日本强好片久久久久久aaa| 日韩一区二区三区四区| 黑人巨大精品欧美黑白配亚洲| 久久久99久久精品欧美| www.视频一区| 亚洲综合小说图片| 7777精品伊人久久久大香线蕉最新版| 日本vs亚洲vs韩国一区三区二区 | 亚洲高清视频中文字幕| 91精品久久久久久久99蜜桃| 免费观看一级特黄欧美大片| 26uuu另类欧美亚洲曰本| 不卡在线观看av| 亚洲一区二区欧美激情| 日韩欧美高清dvd碟片| 福利视频网站一区二区三区| 成人免费一区二区三区视频 | 成人欧美一区二区三区白人| 欧美无乱码久久久免费午夜一区|