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

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

?? compassplot.java

?? 制作圖表的好工具
?? 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一区二区三区免费野_久草精品视频
亚洲曰韩产成在线| 日韩在线一区二区| 亚洲国产乱码最新视频| 蜜桃91丨九色丨蝌蚪91桃色| 国产精品1区2区3区| 在线观看不卡一区| 国产视频一区在线播放| 日韩国产一区二| 色综合色综合色综合色综合色综合 | 91色在线porny| 欧美一区二区三区四区高清| 国产精品久久久一本精品| 美女被吸乳得到大胸91| 欧美自拍丝袜亚洲| 中文字幕中文字幕中文字幕亚洲无线| 久久狠狠亚洲综合| 56国语精品自产拍在线观看| 亚洲欧美一区二区久久 | 日本不卡一区二区三区| 成人免费毛片高清视频| 精品国产3级a| 青娱乐精品在线视频| 欧美日韩久久一区| 亚洲精品自拍动漫在线| a美女胸又www黄视频久久| 欧美精品一区二区三区在线| 蜜臀av一区二区在线观看 | 免费视频最近日韩| 欧美精品三级在线观看| 亚洲国产你懂的| 色噜噜夜夜夜综合网| 国产精品动漫网站| 99re6这里只有精品视频在线观看| 国产午夜精品一区二区三区四区| 国产一区二区三区观看| 精品免费一区二区三区| 日韩成人免费看| 欧美日韩视频在线观看一区二区三区 | 一区二区三区四区高清精品免费观看| av成人动漫在线观看| 国产精品毛片大码女人| 成人97人人超碰人人99| 欧美激情在线一区二区| 99视频精品免费视频| 日韩一区有码在线| 91国偷自产一区二区开放时间 | 久久精品国产久精国产| 2019国产精品| 国产精品77777| 亚洲图片另类小说| 在线国产电影不卡| 日韩和欧美的一区| 欧美一区二区三区色| 精品在线播放免费| 久久久久综合网| 国产呦精品一区二区三区网站| 日本一区二区三区四区| 91美女片黄在线观看| 日韩精品一二三四| 久久久久久久电影| 国产91在线|亚洲| 亚洲精选视频在线| 日韩精品中文字幕在线一区| 欧美激情一区二区三区全黄| 中文字幕一区二区三| 黄网站免费久久| 日韩精品一区二区三区在线| 强制捆绑调教一区二区| 欧美日本国产视频| 日韩福利电影在线观看| 91精品国产一区二区三区| 亚洲精品写真福利| 色综合色狠狠综合色| 亚洲欧美日本在线| 一本一道波多野结衣一区二区| 国产欧美日韩三区| 国产成人免费在线视频| 国产日本欧美一区二区| 国产成人福利片| 国产精品少妇自拍| 成人app在线观看| 亚洲色图清纯唯美| 秋霞午夜av一区二区三区| 2020国产精品| 51午夜精品国产| 色天天综合色天天久久| 国产馆精品极品| 日本在线不卡视频一二三区| 亚洲激情图片小说视频| 久久久久高清精品| 日韩一区二区三区精品视频| 91精品福利视频| 成人免费看黄yyy456| 久久97超碰色| 蜜臀精品久久久久久蜜臀| 亚洲综合网站在线观看| 中文字幕亚洲区| 国产精品女上位| 久久久精品免费观看| 精品日韩欧美在线| 欧美一二三四区在线| 欧美电影免费观看高清完整版在 | 日韩精品在线一区二区| 欧美视频在线一区| 一本大道久久a久久精品综合| 国产成人在线免费观看| 国产美女精品一区二区三区| 精品中文av资源站在线观看| 免费三级欧美电影| 免费成人在线视频观看| 奇米影视一区二区三区| 日本麻豆一区二区三区视频| 日韩综合一区二区| 秋霞午夜av一区二区三区| 日本中文字幕一区二区有限公司| 五月天激情综合| 视频一区视频二区中文| 喷白浆一区二区| 精品一区二区成人精品| 国产一区二区三区免费观看| 国产麻豆视频精品| 波多野结衣亚洲一区| 99久久99精品久久久久久| 91麻豆蜜桃一区二区三区| 91在线精品秘密一区二区| 一本到一区二区三区| 色妹子一区二区| 欧美日韩一区二区在线观看视频 | 免费视频最近日韩| 久久99热狠狠色一区二区| 国产伦精品一区二区三区在线观看| 精品一区二区在线播放| 国产1区2区3区精品美女| 成人免费毛片片v| 在线观看亚洲a| 欧美一二三区在线| 精品国产一区二区三区av性色| 2017欧美狠狠色| 国产精品婷婷午夜在线观看| 亚洲精品日韩综合观看成人91| 亚洲一区二区综合| 久久av老司机精品网站导航| 国产成人免费视| 欧美午夜在线一二页| 欧美一级生活片| 欧美国产综合一区二区| 亚洲一区中文日韩| 韩日av一区二区| 波多野结衣视频一区| 欧美午夜精品久久久久久超碰| 日韩欧美电影一区| 自拍av一区二区三区| 日韩福利电影在线| www.亚洲人| 日韩一区二区三| 中文字幕亚洲一区二区av在线| 日韩av一区二区三区| 成人av在线影院| 欧美一区二区性放荡片| 国产精品久久久久一区| 毛片基地黄久久久久久天堂| 91视频精品在这里| 欧美日韩一卡二卡| 国产精品久久一卡二卡| 蜜桃精品在线观看| 在线免费视频一区二区| 久久久亚洲高清| 视频一区二区不卡| 色综合中文字幕国产| 精品日韩欧美一区二区| 亚洲欧美日韩国产综合| 国产高清一区日本| 精品久久久久久久久久久久久久久| 亚洲精品国产精华液| 成人性生交大合| 337p日本欧洲亚洲大胆色噜噜| 亚洲国产人成综合网站| 不卡一区二区在线| 国产日韩欧美精品综合| 日韩成人一区二区| 欧美男人的天堂一二区| 亚洲欧美日韩在线不卡| 成人永久aaa| 久久精品亚洲一区二区三区浴池 | 99久久伊人网影院| 久久婷婷久久一区二区三区| 日韩avvvv在线播放| 欧美日韩国产一二三| 一片黄亚洲嫩模| 91欧美激情一区二区三区成人| 国产精品免费网站在线观看| 国产91露脸合集magnet| 2欧美一区二区三区在线观看视频| 另类成人小视频在线| 91精品国产高清一区二区三区| 亚洲高清免费观看| 欧美性猛片aaaaaaa做受| 亚洲精品日日夜夜| 欧美性大战xxxxx久久久| 亚洲愉拍自拍另类高清精品|