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

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

?? compassplot.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License as published by 
 * the Free Software Foundation; either version 2.1 of the License, or 
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * ----------------
 * CompassPlot.java
 * ----------------
 * (C) Copyright 2002-2005, by the Australian Antarctic Division and 
 * Contributors.
 *
 * Original Author:  Bryan Scott (for the Australian Antarctic Division);
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Arnaud Lelievre;
 *
 * $Id: CompassPlot.java,v 1.11.2.3 2005/10/25 20:52:07 mungady Exp $
 *
 * Changes:
 * --------
 * 25-Sep-2002 : Version 1, contributed by Bryan Scott (DG);
 * 23-Jan-2003 : Removed one constructor (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 27-Mar-2003 : Changed MeterDataset to ValueDataset (DG);
 * 21-Aug-2003 : Implemented Cloneable (DG);
 * 08-Sep-2003 : Added internationalization via use of properties 
 *               resourceBundle (RFE 690236) (AL);
 * 09-Sep-2003 : Changed Color --> Paint (DG);
 * 15-Sep-2003 : Added null data value check (bug report 805009) (DG);
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 16-Mar-2004 : Added support for revolutionDistance to enable support for
 *               other units than degrees.
 * 16-Mar-2004 : Enabled LongNeedle to rotate about center.
 * 11-Jan-2005 : Removed deprecated code in preparation for 1.0.0 release (DG);
 * 17-Apr-2005 : Fixed bug in clone() method (DG);
 * 05-May-2005 : Updated draw() method parameters (DG);
 * 08-Jun-2005 : Fixed equals() method to handle GradientPaint (DG);
 * 16-Jun-2005 : Renamed getData() --> getDatasets() and 
 *               addData() --> addDataset() (DG);
 *
 */

package org.jfree.chart.plot;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.Stroke;
import java.awt.geom.Area;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.util.Arrays;
import java.util.ResourceBundle;

import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.needle.ArrowNeedle;
import org.jfree.chart.needle.LineNeedle;
import org.jfree.chart.needle.LongNeedle;
import org.jfree.chart.needle.MeterNeedle;
import org.jfree.chart.needle.MiddlePinNeedle;
import org.jfree.chart.needle.PinNeedle;
import org.jfree.chart.needle.PlumNeedle;
import org.jfree.chart.needle.PointerNeedle;
import org.jfree.chart.needle.ShipNeedle;
import org.jfree.chart.needle.WindNeedle;
import org.jfree.data.general.DefaultValueDataset;
import org.jfree.data.general.ValueDataset;
import org.jfree.ui.RectangleInsets;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PaintUtilities;

/**
 * A specialised plot that draws a compass to indicate a direction based on the
 * value from a {@link ValueDataset}.
 *
 * @author Bryan Scott
 */
public class CompassPlot extends Plot implements Cloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 6924382802125527395L;
    
    /** The default label font. */
    public static final Font DEFAULT_LABEL_FONT 
        = new Font("SansSerif", Font.BOLD, 10);

    /** A constant for the label type. */
    public static final int NO_LABELS = 0;

    /** A constant for the label type. */
    public static final int VALUE_LABELS = 1;

    /** The label type (NO_LABELS, VALUE_LABELS). */
    private int labelType;

    /** The label font. */
    private Font labelFont;

    /** A flag that controls whether or not a border is drawn. */
    private boolean drawBorder = false;

    /** The rose highlight paint. */
    private Paint roseHighlightPaint = Color.black;

    /** The rose paint. */
    private Paint rosePaint = Color.yellow;

    /** The rose center paint. */
    private Paint roseCenterPaint = Color.white;

    /** The compass font. */
    private Font compassFont = new Font("Arial", Font.PLAIN, 10);

    /** A working shape. */
    private transient Ellipse2D circle1;

    /** A working shape. */
    private transient Ellipse2D circle2;

    /** A working area. */
    private transient Area a1;

    /** A working area. */
    private transient Area a2;

    /** A working shape. */
    private transient Rectangle2D rect1;

    /** An array of value datasets. */
    private ValueDataset[] datasets = new ValueDataset[1];

    /** An array of needles. */
    private MeterNeedle[] seriesNeedle = new MeterNeedle[1];

    /** The resourceBundle for the localization. */
    protected static ResourceBundle localizationResources =
        ResourceBundle.getBundle("org.jfree.chart.plot.LocalizationBundle");

    /** The count to complete one revolution.  Can be arbitaly set
     * For degrees (the default) it is 360, for radians this is 2*Pi, etc
     */
    protected double revolutionDistance = 360;

    /**
     * Default constructor.
     */
    public CompassPlot() {
        this(new DefaultValueDataset());
    }

    /**
     * Constructs a new compass plot.
     *
     * @param dataset  the dataset for the plot (<code>null</code> permitted).
     */
    public CompassPlot(ValueDataset dataset) {
        super();
        if (dataset != null) {
            this.datasets[0] = dataset;
            dataset.addChangeListener(this);
        }
        this.circle1 = new Ellipse2D.Double();
        this.circle2 = new Ellipse2D.Double();
        this.rect1   = new Rectangle2D.Double();
        setSeriesNeedle(0);
    }

    /**
     * Returns the label type.  Defined by the constants: {@link #NO_LABELS}
     * and {@link #VALUE_LABELS}.
     *
     * @return The label type.
     */
    public int getLabelType() {
        return this.labelType;
    }

    /**
     * Sets the label type (either {@link #NO_LABELS} or {@link #VALUE_LABELS}.
     *
     * @param type  the type.
     */
    public void setLabelType(int type) {
        if ((type != NO_LABELS) && (type != VALUE_LABELS)) {
            throw new IllegalArgumentException(
                "MeterPlot.setLabelType(int): unrecognised type."
            );
        }
        if (this.labelType != type) {
            this.labelType = type;
            notifyListeners(new PlotChangeEvent(this));
        }
    }

    /**
     * Returns the label font.
     *
     * @return The label font.
     */
    public Font getLabelFont() {
        return this.labelFont;
    }

    /**
     * Sets the label font and sends a {@link PlotChangeEvent} to all 
     * registered listeners.
     *
     * @param font  the new label font.
     */
    public void setLabelFont(Font font) {
        if (font == null) {
            throw new IllegalArgumentException("Null 'font' not allowed.");
        }
        this.labelFont = font;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the paint used to fill the outer circle of the compass.
     * 
     * @return The paint (never <code>null</code>).
     */
    public Paint getRosePaint() {
        return this.rosePaint;   
    }
    
    /**
     * Sets the paint used to fill the outer circle of the compass, 
     * and sends a {@link PlotChangeEvent} to all registered listeners.
     * 
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setRosePaint(Paint paint) {
        if (paint == null) {   
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.rosePaint = paint;
        notifyListeners(new PlotChangeEvent(this));        
    }

    /**
     * Returns the paint used to fill the inner background area of the 
     * compass.
     * 
     * @return The paint (never <code>null</code>).
     */
    public Paint getRoseCenterPaint() {
        return this.roseCenterPaint;   
    }
    
    /**
     * Sets the paint used to fill the inner background area of the compass, 
     * and sends a {@link PlotChangeEvent} to all registered listeners.
     * 
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setRoseCenterPaint(Paint paint) {
        if (paint == null) {   
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.roseCenterPaint = paint;
        notifyListeners(new PlotChangeEvent(this));        
    }
    
    /**
     * Returns the paint used to draw the circles, symbols and labels on the
     * compass.
     * 
     * @return The paint (never <code>null</code>).
     */
    public Paint getRoseHighlightPaint() {
        return this.roseHighlightPaint;   
    }
    
    /**
     * Sets the paint used to draw the circles, symbols and labels of the 
     * compass, and sends a {@link PlotChangeEvent} to all registered listeners.
     * 
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setRoseHighlightPaint(Paint paint) {
        if (paint == null) {   
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.roseHighlightPaint = paint;
        notifyListeners(new PlotChangeEvent(this));        
    }
    
    /**
     * Returns a flag that controls whether or not a border is drawn.
     *
     * @return The flag.
     */
    public boolean getDrawBorder() {
        return this.drawBorder;
    }

    /**
     * Sets a flag that controls whether or not a border is drawn.
     *
     * @param status  the flag status.
     */
    public void setDrawBorder(boolean status) {
        this.drawBorder = status;
    }

    /**
     * Sets the series paint.
     *
     * @param series  the series index.
     * @param paint  the paint.
     */
    public void setSeriesPaint(int series, Paint paint) {
       // super.setSeriesPaint(series, paint);
        if ((series >= 0) && (series < this.seriesNeedle.length)) {
            this.seriesNeedle[series].setFillPaint(paint);
        }
    }

    /**
     * Sets the series outline paint.
     *
     * @param series  the series index.
     * @param p  the paint.
     */
    public void setSeriesOutlinePaint(int series, Paint p) {

        if ((series >= 0) && (series < this.seriesNeedle.length)) {
            this.seriesNeedle[series].setOutlinePaint(p);
        }

    }

    /**
     * Sets the series outline stroke.
     *
     * @param series  the series index.
     * @param stroke  the stroke.
     */
    public void setSeriesOutlineStroke(int series, Stroke stroke) {

      if ((series >= 0) && (series < this.seriesNeedle.length)) {
        this.seriesNeedle[series].setOutlineStroke(stroke);
      }

    }

    /**
     * Sets the needle type.
     *
     * @param type  the type.
     */
    public void setSeriesNeedle(int type) {
        setSeriesNeedle(0, type);
    }

    /**
     * Sets the needle for a series.  The needle type is one of the following:
     * <ul>
     * <li>0 = {@link ArrowNeedle};</li>
     * <li>1 = {@link LineNeedle};</li>
     * <li>2 = {@link LongNeedle};</li>
     * <li>3 = {@link PinNeedle};</li>
     * <li>4 = {@link PlumNeedle};</li>
     * <li>5 = {@link PointerNeedle};</li>
     * <li>6 = {@link ShipNeedle};</li>
     * <li>7 = {@link WindNeedle};</li>
     * <li>8 = {@link ArrowNeedle};</li>
     * <li>9 = {@link MiddlePinNeedle};</li>
     * </ul>
     * @param index  the series index.
     * @param type  the needle type.
     */
    public void setSeriesNeedle(int index, int type) {
        switch (type) {
            case 0:
                setSeriesNeedle(index, new ArrowNeedle(true));
                setSeriesPaint(index, Color.red);
                this.seriesNeedle[index].setHighlightPaint(Color.white);
                break;
            case 1:
                setSeriesNeedle(index, new LineNeedle());
                break;
            case 2:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av第一页| 欧美系列亚洲系列| 一本大道av一区二区在线播放| 欧美日韩国产综合草草| 日本一区二区高清| 激情国产一区二区| 欧美三电影在线| 亚洲天堂成人在线观看| 国产九色sp调教91| 日韩欧美一级特黄在线播放| 亚洲国产一区二区视频| 成人午夜精品一区二区三区| 精品日韩在线观看| 日韩精品一级中文字幕精品视频免费观看 | 国产欧美日韩视频一区二区| 首页国产欧美日韩丝袜| 欧美中文字幕亚洲一区二区va在线| 久久久天堂av| 久久91精品国产91久久小草| 欧美理论电影在线| 亚洲天堂中文字幕| 99久久精品免费看| 中文字幕一区二区不卡| av一区二区不卡| 国产精品污网站| 成人午夜av在线| 国产欧美日韩中文久久| 国产一本一道久久香蕉| 久久亚洲一区二区三区明星换脸| 日本不卡视频一二三区| 91精品国产黑色紧身裤美女| 日韩精品三区四区| 91.com视频| 美腿丝袜亚洲三区| 欧美精品一区二区在线观看| 国内外成人在线| 亚洲成人av一区二区| 一本大道久久精品懂色aⅴ| 亚洲精品日韩一| 欧美日韩亚洲综合| 日韩国产精品久久久久久亚洲| 7777精品伊人久久久大香线蕉的 | 中文字幕不卡三区| 成人激情免费视频| 亚洲视频 欧洲视频| 91福利在线导航| 丝袜亚洲另类丝袜在线| 精品国产一二三区| 成人h动漫精品| 亚洲六月丁香色婷婷综合久久| 欧美日韩一卡二卡三卡| 极品少妇一区二区三区精品视频| 国产日韩影视精品| 91在线无精精品入口| 亚洲午夜精品17c| 日韩美女一区二区三区四区| 成人夜色视频网站在线观看| 亚洲精品久久嫩草网站秘色| 91麻豆精品国产91久久久更新时间 | 亚洲精品国产第一综合99久久| 欧美亚日韩国产aⅴ精品中极品| 午夜电影一区二区三区| 精品国免费一区二区三区| 大白屁股一区二区视频| 亚洲一区二区精品3399| 欧美不卡一区二区三区四区| 成人精品在线视频观看| 天堂成人国产精品一区| 中文一区二区完整视频在线观看| 在线国产电影不卡| 国内精品免费在线观看| 亚洲一区二区在线免费看| 欧美成人vr18sexvr| 91免费看`日韩一区二区| 免费在线欧美视频| 一区二区三区在线免费| 精品国产一区二区三区四区四| 99re热视频这里只精品| 激情国产一区二区| 午夜久久久久久电影| 国产欧美一区二区在线观看| 欧美精品乱码久久久久久按摩 | 久久精品日产第一区二区三区高清版 | 一色桃子久久精品亚洲| 日韩欧美精品在线| 欧美综合天天夜夜久久| 成人av在线一区二区| 奇米精品一区二区三区在线观看 | 中文字幕第一区二区| 欧美一区二区三区喷汁尤物| 色婷婷亚洲一区二区三区| 国产麻豆视频精品| 男女视频一区二区| 五月婷婷综合激情| 亚洲欧美日韩国产中文在线| 久久久久久久久久久久电影| 欧美久久高跟鞋激| 欧美日韩在线播放| 91免费版在线看| 99久久99久久精品免费观看 | 免费高清在线视频一区·| 伊人色综合久久天天| 欧美韩国一区二区| 国产亚洲女人久久久久毛片| 日韩免费在线观看| 7777精品久久久大香线蕉| 欧美三级在线视频| 欧美自拍偷拍一区| 欧美综合视频在线观看| 欧美伊人久久久久久久久影院| 91麻豆免费观看| 91蜜桃传媒精品久久久一区二区| 成人高清视频在线观看| 成人亚洲精品久久久久软件| 高清在线成人网| 成人aaaa免费全部观看| av不卡在线播放| 波多野结衣一区二区三区 | 亚洲欧洲精品成人久久奇米网| 国产午夜亚洲精品午夜鲁丝片| 日韩欧美你懂的| 欧美va亚洲va| 久久九九99视频| 国产精品久久久久aaaa| 中文字幕在线观看一区二区| 综合亚洲深深色噜噜狠狠网站| ...中文天堂在线一区| 亚洲麻豆国产自偷在线| 亚洲一区二区精品久久av| 日韩和的一区二区| 激情欧美一区二区| 北岛玲一区二区三区四区| 97se亚洲国产综合在线| 欧美午夜影院一区| 欧美一卡二卡在线| 国产视频一区不卡| 亚洲自拍偷拍综合| 蜜臀国产一区二区三区在线播放| 激情综合五月天| caoporen国产精品视频| 欧美男男青年gay1069videost| 日韩欧美国产wwwww| 国产精品嫩草99a| 五月综合激情网| 国产精品主播直播| 欧美午夜不卡视频| 久久久久久夜精品精品免费| 亚洲三级电影全部在线观看高清| 日韩国产欧美视频| 99久久99精品久久久久久| 欧美一区二区精品| 欧美韩国日本一区| 日韩av一二三| 成人精品视频网站| 欧美精品自拍偷拍动漫精品| 国产精品天天摸av网| 丝袜美腿亚洲一区| 99麻豆久久久国产精品免费优播| 欧美精品久久久久久久多人混战| 国产丝袜在线精品| 日本午夜精品视频在线观看 | 国产麻豆成人传媒免费观看| 色偷偷久久一区二区三区| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲男人的天堂在线aⅴ视频| 免费的国产精品| 欧美性一区二区| 国产精品美女www爽爽爽| 麻豆精品国产91久久久久久| 色婷婷av一区二区三区大白胸| 精品国产一区二区三区不卡 | 国产一区不卡精品| 9191国产精品| 亚洲夂夂婷婷色拍ww47| 懂色av噜噜一区二区三区av| 日韩午夜激情免费电影| 亚洲国产毛片aaaaa无费看| 99视频一区二区| 久久久久9999亚洲精品| 青青草原综合久久大伊人精品| 色又黄又爽网站www久久| 国产精品毛片大码女人| 国产精品中文字幕日韩精品| 91精品国产综合久久久久久漫画 | 狠狠色丁香久久婷婷综合_中| 欧亚洲嫩模精品一区三区| 亚洲欧美一区二区三区国产精品| 国产91在线|亚洲| 国产色产综合产在线视频| 激情综合网av| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 4438x亚洲最大成人网| 亚洲国产精品麻豆| 色悠久久久久综合欧美99| 17c精品麻豆一区二区免费| 成人爽a毛片一区二区免费| 欧美经典三级视频一区二区三区| 国产99久久久国产精品潘金 | 日韩女优av电影在线观看| 男女性色大片免费观看一区二区 |