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

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

?? polarplot.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ===========================================================
 * 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.]
 *
 * --------------
 * PolarPlot.java
 * --------------
 * (C) Copyright 2004, 2005, by Solution Engineering, Inc. and Contributors.
 *
 * Original Author:  Daniel Bridenbecker, Solution Engineering, Inc.;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: PolarPlot.java,v 1.13.2.3 2005/10/25 20:52:08 mungady Exp $
 *
 * Changes
 * -------
 * 19-Jan-2004 : Version 1, contributed by DB with minor changes by DG (DG);
 * 07-Apr-2004 : Changed text bounds calculation (DG);
 * 05-May-2005 : Updated draw() method parameters (DG);
 * 09-Jun-2005 : Fixed getDataRange() and equals() methods (DG);
 * 25-Oct-2005 : Implemented Zoomable (DG);
 *
 */

package org.jfree.chart.plot;

import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Point;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.LegendItem;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.axis.AxisState;
import org.jfree.chart.axis.NumberTick;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.event.RendererChangeEvent;
import org.jfree.chart.event.RendererChangeListener;
import org.jfree.chart.renderer.PolarItemRenderer;
import org.jfree.data.Range;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetUtilities;
import org.jfree.data.xy.XYDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.text.TextUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RectangleInsets;
import org.jfree.ui.TextAnchor;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PaintUtilities;


/**
 * Plots data that is in (theta, radius) pairs where
 * theta equal to zero is due north and and increases clockwise.
 *
 * @author Daniel Bridenbecker, Solution Engineering, Inc.
 */
public class PolarPlot extends Plot implements ValueAxisPlot, 
                                               Zoomable,
                                               RendererChangeListener, 
                                               Cloneable, 
                                               Serializable {
   
    /** For serialization. */
    private static final long serialVersionUID = 3794383185924179525L;
    
    /** The default margin. */
    private static final int MARGIN = 20;
   
    /** The annotation margin. */
    private static final double ANNOTATION_MARGIN = 7.0;
   
    /** The default grid line stroke. */
    public static final Stroke DEFAULT_GRIDLINE_STROKE 
        = new BasicStroke(
            0.5f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 
            0.0f, new float[]{2.0f, 2.0f}, 0.0f
          );
   
    /** The default grid line paint. */
    public static final Paint DEFAULT_GRIDLINE_PAINT = Color.gray;
   
    /** The resourceBundle for the localization. */
    protected static ResourceBundle localizationResources 
        = ResourceBundle.getBundle("org.jfree.chart.plot.LocalizationBundle");
   
    // ------------------------
    // --- Member Variables ---
    // ------------------------
    /** The angles that are marked with gridlines. */
    private List angleTicks;
    
    /** The axis (used for the y-values). */
    private ValueAxis axis;
    
    /** The dataset. */
    private XYDataset dataset;
   
    /** 
     * Object responsible for drawing the visual representation of each point 
     * on the plot. 
     */
    private PolarItemRenderer renderer;
   
    /** A flag that controls whether or not the angle labels are visible. */
    private boolean angleLabelsVisible = true;
    
    /** The font used to display the angle labels - never null. */
    private Font angleLabelFont = new Font("SansSerif", Font.PLAIN, 12);
    
    /** The paint used to display the angle labels. */
    private Paint angleLabelPaint = Color.black;
    
    /** A flag that controls whether the angular grid-lines are visible. */
    private boolean angleGridlinesVisible;
   
    /** The stroke used to draw the angular grid-lines. */
    private transient Stroke angleGridlineStroke;
   
    /** The paint used to draw the angular grid-lines. */
    private transient Paint angleGridlinePaint;
   
    /** A flag that controls whether the radius grid-lines are visible. */
    private boolean radiusGridlinesVisible;
   
    /** The stroke used to draw the radius grid-lines. */
    private transient Stroke radiusGridlineStroke;
   
    /** The paint used to draw the radius grid-lines. */
    private transient Paint radiusGridlinePaint;
   
    /** The annotations for the plot. */
    private List cornerTextItems = new ArrayList();
   
    // --------------------
    // --- Constructors ---
    // --------------------
    /**
     * Default constructor.
     */
    public PolarPlot() {
        this(null, null, null);
    }
   
   /**
     * Creates a new plot.
     *
     * @param dataset  the dataset (<code>null</code> permitted).
     * @param radiusAxis  the radius axis (<code>null</code> permitted).
     * @param renderer  the renderer (<code>null</code> permitted).
     */
    public PolarPlot(XYDataset dataset, 
                     ValueAxis radiusAxis,
                     PolarItemRenderer renderer) {
      
        super();
            
        this.dataset = dataset;
        if (this.dataset != null) {
            this.dataset.addChangeListener(this);
        }
      
        this.angleTicks = new java.util.ArrayList();
        this.angleTicks.add(new NumberTick(new Double(0.0), "0", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(45.0), "45", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(90.0), "90", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(135.0), "135", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(180.0), "180", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(225.0), "225", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(270.0), "270", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        this.angleTicks.add(new NumberTick(new Double(315.0), "315", 
                TextAnchor.CENTER, TextAnchor.CENTER, 0.0));
        
        this.axis = radiusAxis;
        if (this.axis != null) {
            this.axis.setPlot(this);
            this.axis.addChangeListener(this);
        }
      
        this.renderer = renderer;
        if (this.renderer != null) {
            this.renderer.setPlot(this);
            this.renderer.addChangeListener(this);
        }
      
        this.angleGridlinesVisible = true;
        this.angleGridlineStroke = DEFAULT_GRIDLINE_STROKE;
        this.angleGridlinePaint = DEFAULT_GRIDLINE_PAINT;
      
        this.radiusGridlinesVisible = true;
        this.radiusGridlineStroke = DEFAULT_GRIDLINE_STROKE;
        this.radiusGridlinePaint = DEFAULT_GRIDLINE_PAINT;      
    }
   
    /**
     * Add text to be displayed in the lower right hand corner.
     * 
     * @param text  the text to display (<code>null</code> not permitted).
     */
    public void addCornerTextItem(String text) {
        if (text == null) {
            throw new IllegalArgumentException("Null 'text' argument.");
        }
        this.cornerTextItems.add(text);
        this.notifyListeners(new PlotChangeEvent(this));
    }
   
    /**
     * Remove the given text from the list of corner text items.
     * 
     * @param text  the text to remove (<code>null</code> ignored).
     */
    public void removeCornerTextItem(String text) {
        boolean removed = this.cornerTextItems.remove(text);
        if (removed) {
            this.notifyListeners(new PlotChangeEvent(this));        
        }
    }
   
    /**
     * Clear the list of corner text items.
     */
    public void clearCornerTextItems() {
        if (this.cornerTextItems.size() > 0) {
            this.cornerTextItems.clear();
            this.notifyListeners(new PlotChangeEvent(this));        
        }
    }
   
    /**
     * Returns the plot type as a string.
     *
     * @return A short string describing the type of plot.
     */
    public String getPlotType() {
       return PolarPlot.localizationResources.getString("Polar_Plot");
    }
    
    /**
     * Returns the axis for the plot.
     *
     * @return The radius axis.
     */
    public ValueAxis getAxis() {
        return this.axis;
    }
   
    /**
     * Sets the axis for the plot and sends a {@link PlotChangeEvent} to all
     * registered listeners.
     *
     * @param axis  the new axis (<code>null</code> permitted).
     */
    public void setAxis(ValueAxis axis) {
        if (axis != null) {
            axis.setPlot(this);
        }
       
        // plot is likely registered as a listener with the existing axis...
        if (this.axis != null) {
            this.axis.removeChangeListener(this);
        }
       
        this.axis = axis;
        if (this.axis != null) {
            this.axis.configure();
            this.axis.addChangeListener(this);
        }
        notifyListeners(new PlotChangeEvent(this));
    }
   
    /**
     * Returns the primary dataset for the plot.
     *
     * @return The primary dataset (possibly <code>null</code>).
     */
    public XYDataset getDataset() {
        return this.dataset;
    }
    
    /**
     * Sets the dataset for the plot, replacing the existing dataset if there 
     * is one.
     *
     * @param dataset  the dataset (<code>null</code> permitted).
     */
    public void setDataset(XYDataset dataset) {
        // if there is an existing dataset, remove the plot from the list of 
        // change listeners...
        XYDataset existing = this.dataset;
        if (existing != null) {
            existing.removeChangeListener(this);
        }
       
        // set the new m_Dataset, and register the chart as a change listener...
        this.dataset = dataset;
        if (this.dataset != null) {
            setDatasetGroup(this.dataset.getGroup());
            this.dataset.addChangeListener(this);
        }
       
        // send a m_Dataset change event to self...
        DatasetChangeEvent event = new DatasetChangeEvent(this, this.dataset);
        datasetChanged(event);
    }
   
    /**
     * Returns the item renderer.
     *
     * @return The renderer (possibly <code>null</code>).
     */
    public PolarItemRenderer getRenderer() {
        return this.renderer;
    }
   
    /**
     * Sets the item renderer, and notifies all listeners of a change to the 
     * plot.
     * <P>
     * If the renderer is set to <code>null</code>, no chart will be drawn.
     *
     * @param renderer  the new renderer (<code>null</code> permitted).
     */
    public void setRenderer(PolarItemRenderer renderer) {
        if (this.renderer != null) {
            this.renderer.removeChangeListener(this);
        }
       
        this.renderer = renderer;
        if (this.renderer != null) {
            this.renderer.setPlot(this);
        }
       
        notifyListeners(new PlotChangeEvent(this));
    }
   
    /**
     * Returns a flag that controls whether or not the angle labels are visible.
     * 
     * @return A boolean.
     */
    public boolean isAngleLabelsVisible() {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产亚洲一区二区三区| 国产高清久久久| 美腿丝袜亚洲综合| 国产不卡视频在线观看| 在线综合视频播放| 中文字幕亚洲不卡| 国内精品免费在线观看| 欧美另类变人与禽xxxxx| 亚洲国产成人在线| 精品一区二区三区在线观看 | 一区二区三区91| 国产一区欧美日韩| 日韩欧美亚洲一区二区| 亚洲成人动漫在线免费观看| 91麻豆国产福利在线观看| 亚洲国产高清不卡| 久久不见久久见中文字幕免费| 欧美视频一区二区三区在线观看| 国产精品免费久久久久| 狠狠色丁香婷综合久久| 欧美一二三区精品| 日日夜夜免费精品| 欧美性色欧美a在线播放| 国产精品美女一区二区| 国产传媒日韩欧美成人| 精品区一区二区| 久久国产精品无码网站| 制服丝袜亚洲色图| 午夜精品123| 欧美日韩情趣电影| 午夜精品久久久久久久久| 一本久道久久综合中文字幕| 亚洲欧美一区二区三区久本道91| 不卡的电影网站| 国产精品久99| 成人h动漫精品一区二区 | 欧美一区二区福利视频| 日韩成人一区二区三区在线观看| 欧美日韩综合不卡| 亚洲v中文字幕| 欧美区一区二区三区| 午夜视频一区二区三区| 欧美一区二区观看视频| 精品在线你懂的| 久久精品欧美一区二区三区不卡| 国产精品一二三区在线| 中文字幕国产一区| 91天堂素人约啪| 亚洲香蕉伊在人在线观| 91精品国产入口在线| 紧缚捆绑精品一区二区| 国产精品久久久久一区二区三区共 | 午夜精品视频一区| 欧美挠脚心视频网站| 久久精品国产免费| 国产欧美一区二区三区网站| 91在线小视频| 丝瓜av网站精品一区二区| 日韩视频一区二区在线观看| 国产一区二区三区免费在线观看| 国产精品久久久久一区| 精品视频在线看| 美日韩一区二区三区| 国产精品久久久久久久久免费丝袜| 91女人视频在线观看| 日韩精品国产精品| 国产欧美日韩另类一区| 精品视频免费看| 国产在线乱码一区二区三区| 亚洲欧洲综合另类| 欧美电影免费观看高清完整版在线观看| 国产99一区视频免费| 亚洲国产精品视频| 国产视频一区不卡| 欧美日韩高清一区二区不卡 | 青青草国产成人av片免费 | 久久影院电视剧免费观看| 96av麻豆蜜桃一区二区| 蜜乳av一区二区| 亚洲一区二区三区四区在线免费观看 | 日韩激情在线观看| 国产人成亚洲第一网站在线播放| 欧洲一区二区三区免费视频| 精品一区二区三区久久久| 亚洲人吸女人奶水| 久久免费精品国产久精品久久久久| 一本色道亚洲精品aⅴ| 狠狠久久亚洲欧美| 天堂av在线一区| 亚洲欧美一区二区不卡| 精品国产一区二区三区久久影院| 欧美在线免费观看视频| av在线一区二区三区| 国产精品中文欧美| 青草国产精品久久久久久| 亚洲另类色综合网站| 国产日韩三级在线| 26uuu另类欧美亚洲曰本| 欧美日韩精品免费| 色狠狠综合天天综合综合| 狠狠色丁香婷婷综合久久片| 免费人成在线不卡| 日韩成人一区二区三区在线观看| 一区二区三区四区亚洲| 亚洲天堂网中文字| 国产精品国产精品国产专区不片| 久久午夜色播影院免费高清| 日韩美一区二区三区| 欧美一区二区视频观看视频| 欧美少妇bbb| 欧美日韩一区二区在线观看| 欧洲亚洲国产日韩| 91久久国产综合久久| 91久久奴性调教| 在线观看国产一区二区| 一本一道综合狠狠老| 在线精品视频一区二区三四 | 日韩一级免费观看| 欧美精品vⅰdeose4hd| 8x福利精品第一导航| 欧美一区2区视频在线观看| 日韩精品中午字幕| 精品国产欧美一区二区| 2023国产精品视频| 国产欧美日韩久久| 日韩毛片视频在线看| 一区二区三区**美女毛片| 亚洲一区二区三区三| 五月天丁香久久| 日本视频在线一区| 国内精品伊人久久久久av影院 | 在线观看亚洲一区| 欧美美女视频在线观看| 91精品在线一区二区| 精品国产亚洲在线| 国产精品免费av| 樱桃视频在线观看一区| 同产精品九九九| 韩国av一区二区三区| av成人老司机| 欧美美女直播网站| 欧美xxx久久| 国产精品久久久久影院亚瑟| 亚洲sss视频在线视频| 美女脱光内衣内裤视频久久网站| 国产精品亚洲第一| 97se亚洲国产综合自在线| 91精品国产色综合久久不卡电影| 久久蜜桃av一区精品变态类天堂 | 亚洲国产成人在线| 亚洲国产欧美在线人成| 精品一区二区av| 99精品久久久久久| 91精品国产综合久久精品| 中文天堂在线一区| 日一区二区三区| av成人老司机| 欧美xxxxx裸体时装秀| 亚洲精品乱码久久久久久日本蜜臀 | 高清不卡一二三区| 欧美日韩日日夜夜| 国产精品久久久久影院| 蜜桃视频在线观看一区| 99国产精品一区| 日韩欧美亚洲国产另类| 亚洲另类在线制服丝袜| 国产一区不卡在线| 欧美丝袜丝交足nylons图片| 久久婷婷一区二区三区| 亚洲mv在线观看| av电影天堂一区二区在线| 精品国产在天天线2019| 亚洲一区在线观看免费观看电影高清| 国产精品99久| 日韩三级中文字幕| 亚洲高清在线精品| 色哟哟在线观看一区二区三区| 久久这里只有精品6| 男人的j进女人的j一区| 欧美在线影院一区二区| 国产精品色噜噜| 国产mv日韩mv欧美| 欧美成人猛片aaaaaaa| 水野朝阳av一区二区三区| 91久久精品网| 樱花草国产18久久久久| 色综合中文字幕| 中文字幕日本乱码精品影院| 成人一区二区三区视频| 26uuu亚洲综合色| 捆绑紧缚一区二区三区视频| 7777精品伊人久久久大香线蕉经典版下载 | 99精品偷自拍| 欧美激情一区二区| 国产毛片精品视频| 久久久久久久久久久99999| 麻豆一区二区99久久久久| 欧美精品久久天天躁| 亚洲成在人线在线播放| 精品视频999|