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

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

?? xydifferencerenderer.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.]
 *
 * -------------------------
 * XYDifferenceRenderer.java
 * -------------------------
 * (C) Copyright 2003-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Christian W. Zuckschwerdt;
 *
 * $Id: XYDifferenceRenderer.java,v 1.12.2.6 2005/12/10 21:51:02 mungady Exp $
 *
 * Changes:
 * --------
 * 30-Apr-2003 : Version 1 (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 20-Aug-2003 : Implemented Cloneable and PublicCloneable (DG);
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 09-Feb-2004 : Updated to support horizontal plot orientation (DG);
 * 10-Feb-2004 : Added default constructor, setter methods and updated 
 *               Javadocs (DG);
 * 25-Feb-2004 : Replaced CrosshairInfo with CrosshairState (DG);
 * 30-Mar-2004 : Fixed bug in getNegativePaint() method (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 25-Aug-2004 : Fixed a bug preventing the use of crosshairs (DG);
 * 11-Nov-2004 : Now uses ShapeUtilities to translate shapes (DG);
 * 19-Jan-2005 : Now accesses only primitive values from dataset (DG);
 * 22-Feb-2005 : Override getLegendItem(int, int) to return "line" items (DG);
 * 13-Apr-2005 : Fixed shape positioning bug (id = 1182062) (DG);
 * 20-Apr-2005 : Use generators for legend tooltips and URLs (DG);
 * 04-May-2005 : Override equals() method, renamed get/setPlotShapes() -->
 *               get/setShapesVisible (DG);
 * 09-Jun-2005 : Updated equals() to handle GradientPaint (DG);
 * 16-Jun-2005 : Fix bug (1221021) affecting stroke used for each series (DG);
 * 
 */

package org.jfree.chart.renderer.xy;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import org.jfree.chart.LegendItem;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.entity.XYItemEntity;
import org.jfree.chart.event.RendererChangeEvent;
import org.jfree.chart.labels.XYToolTipGenerator;
import org.jfree.chart.plot.CrosshairState;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.xy.XYDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.PaintUtilities;
import org.jfree.util.PublicCloneable;
import org.jfree.util.ShapeUtilities;

/**
 * A renderer for an {@link XYPlot} that highlights the differences between two
 * series.  The renderer expects a dataset that:
 * <ul>
 * <li>has exactly two series;</li>
 * <li>each series has the same x-values;</li>
 * <li>no <code>null</code> values;
 * </ul>
 */
public class XYDifferenceRenderer extends AbstractXYItemRenderer 
                                  implements XYItemRenderer, 
                                             Cloneable,
                                             PublicCloneable,
                                             Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -8447915602375584857L;
    
    /** The paint used to highlight positive differences (y(0) > y(1)). */
    private transient Paint positivePaint;

    /** The paint used to highlight negative differences (y(0) < y(1)). */
    private transient Paint negativePaint;

    /** Display shapes at each point? */
    private boolean shapesVisible;
    
    /** The shape to display in the legend item. */
    private transient Shape legendLine;

    /**
     * Creates a new renderer with default attributes.
     */
    public XYDifferenceRenderer() {
        this(Color.green, Color.red, false);
    }
    
    /**
     * Creates a new renderer.
     *
     * @param positivePaint  the highlight color for positive differences 
     *                       (<code>null</code> not permitted).
     * @param negativePaint  the highlight color for negative differences 
     *                       (<code>null</code> not permitted).
     * @param shapes  draw shapes?
     */
    public XYDifferenceRenderer(Paint positivePaint, Paint negativePaint, 
                                boolean shapes) {
        if (positivePaint == null) {
            throw new IllegalArgumentException(
                    "Null 'positivePaint' argument.");
        }
        if (negativePaint == null) {
            throw new IllegalArgumentException(
                    "Null 'negativePaint' argument.");
        }
        this.positivePaint = positivePaint;
        this.negativePaint = negativePaint;
        this.shapesVisible = shapes;
        this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
    }

    /**
     * Returns the paint used to highlight positive differences.
     *
     * @return The paint (never <code>null</code>).
     */
    public Paint getPositivePaint() {
        return this.positivePaint;
    }

    /**
     * Sets the paint used to highlight positive differences.
     * 
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setPositivePaint(Paint paint) {
        if (paint == null) {
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.positivePaint = paint;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Returns the paint used to highlight negative differences.
     *
     * @return The paint (never <code>null</code>).
     */
    public Paint getNegativePaint() {
        return this.negativePaint;
    }
    
    /**
     * Sets the paint used to highlight negative differences.
     * 
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setNegativePaint(Paint paint) {
        if (paint == null) {
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.negativePaint = paint;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Returns a flag that controls whether or not shapes are drawn for each 
     * data value.
     * 
     * @return A boolean.
     */
    public boolean getShapesVisible() {
        return this.shapesVisible;
    }

    /**
     * Sets a flag that controls whether or not shapes are drawn for each 
     * data value.
     * 
     * @param flag  the flag.
     */
    public void setShapesVisible(boolean flag) {
        this.shapesVisible = flag;
        notifyListeners(new RendererChangeEvent(this));
    }
    
    /**
     * Returns the shape used to represent a line in the legend.
     * 
     * @return The legend line (never <code>null</code>).
     */
    public Shape getLegendLine() {
        return this.legendLine;   
    }
    
    /**
     * Sets the shape used as a line in each legend item and sends a 
     * {@link RendererChangeEvent} to all registered listeners.
     * 
     * @param line  the line (<code>null</code> not permitted).
     */
    public void setLegendLine(Shape line) {
        if (line == null) {
            throw new IllegalArgumentException("Null 'line' argument.");   
        }
        this.legendLine = line;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Initialises the renderer and returns a state object that should be 
     * passed to subsequent calls to the drawItem() method.  This method will 
     * be called before the first item is rendered, giving the renderer an 
     * opportunity to initialise any state information it wants to maintain.  
     * The renderer can do nothing if it chooses.
     *
     * @param g2  the graphics device.
     * @param dataArea  the area inside the axes.
     * @param plot  the plot.
     * @param data  the data.
     * @param info  an optional info collection object to return data back to 
     *              the caller.
     *
     * @return A state object.
     */
    public XYItemRendererState initialise(Graphics2D g2,
                                          Rectangle2D dataArea,
                                          XYPlot plot,
                                          XYDataset data,
                                          PlotRenderingInfo info) {

        return super.initialise(g2, dataArea, plot, data, info);

    }

    /**
     * Returns <code>2</code>, the number of passes required by the renderer.  
     * The {@link XYPlot} will run through the dataset this number of times.
     * 
     * @return The number of passes required by the renderer.
     */
    public int getPassCount() {
        return 2;
    }
    
    /**
     * Draws the visual representation of a single data item.
     *
     * @param g2  the graphics device.
     * @param state  the renderer state.
     * @param dataArea  the area within which the data is being drawn.
     * @param info  collects information about the drawing.
     * @param plot  the plot (can be used to obtain standard color 
     *              information etc).
     * @param domainAxis  the domain (horizontal) axis.
     * @param rangeAxis  the range (vertical) axis.
     * @param dataset  the dataset.
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     * @param crosshairState  crosshair information for the plot 
     *                        (<code>null</code> permitted).
     * @param pass  the pass index.
     */
    public void drawItem(Graphics2D g2,
                         XYItemRendererState state,
                         Rectangle2D dataArea,
                         PlotRenderingInfo info,
                         XYPlot plot,
                         ValueAxis domainAxis,
                         ValueAxis rangeAxis,
                         XYDataset dataset,
                         int series,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美一级在线播放| 欧美在线高清视频| 亚洲女人****多毛耸耸8| 色噜噜夜夜夜综合网| 国产精品成人免费在线| 欧美色区777第一页| 精品在线播放免费| 亚洲视频在线一区观看| 欧美精品国产精品| www.日韩av| 日本亚洲三级在线| 国产精品国产馆在线真实露脸| 欧美日韩一本到| 国产不卡一区视频| 日韩av电影免费观看高清完整版| 国产片一区二区| 欧美电影影音先锋| 成人99免费视频| 日日嗨av一区二区三区四区| 久久综合色天天久久综合图片| 色999日韩国产欧美一区二区| 久草这里只有精品视频| 亚洲国产精品久久人人爱蜜臀| 久久久91精品国产一区二区精品 | 国产在线精品一区在线观看麻豆| 亚洲欧美日韩系列| ww亚洲ww在线观看国产| 欧美在线小视频| 国产99一区视频免费| 亚洲精品成a人| 国产区在线观看成人精品| 3d成人动漫网站| 在线观看日韩精品| 97久久精品人人做人人爽 | 国产精品灌醉下药二区| 精品美女一区二区| 51精品视频一区二区三区| 91视频一区二区三区| 国产精品一区二区果冻传媒| 日韩成人精品在线| 亚洲va欧美va人人爽| 亚洲精品一卡二卡| 国产夜色精品一区二区av| 欧美一卡二卡在线观看| 欧美性受xxxx黑人xyx性爽| a4yy欧美一区二区三区| 国产精品996| 日本欧美在线看| 日韩黄色免费电影| 婷婷中文字幕综合| 日本三级韩国三级欧美三级| 三级影片在线观看欧美日韩一区二区| 一区二区三区四区蜜桃| 亚洲精选视频免费看| 亚洲男人的天堂av| 亚洲欧美韩国综合色| 一区二区三区在线不卡| 亚洲一级在线观看| 亚洲综合清纯丝袜自拍| 亚洲成精国产精品女| 亚洲一区在线看| 亚洲精品欧美激情| 亚洲国产日韩在线一区模特| 亚洲主播在线播放| 亚洲高清视频中文字幕| 性做久久久久久免费观看欧美| 亚洲一区二区三区四区在线免费观看 | 久久综合久久综合九色| 日韩欧美国产综合在线一区二区三区| 欧美一区二区三区婷婷月色| 欧美一区二区精品在线| 日韩丝袜美女视频| 精品国一区二区三区| 久久蜜臀精品av| 国产精品久久免费看| 亚洲欧洲精品一区二区三区| 亚洲欧洲av在线| 亚洲综合一区二区三区| 日韩一区精品字幕| 午夜精品久久久久久久99水蜜桃 | 国产精品久久久久一区二区三区| 国产精品久久毛片| 亚洲午夜av在线| 久久99九九99精品| 国产91精品在线观看| 色老综合老女人久久久| 欧美一区二区三区精品| 2023国产一二三区日本精品2022| 国产精品网站在线播放| 国产精品久久三| 亚洲综合丁香婷婷六月香| 蜜臀a∨国产成人精品| 国产成人在线视频播放| 91国产丝袜在线播放| 宅男噜噜噜66一区二区66| 日韩一级免费一区| 久久综合色一综合色88| 日韩伦理av电影| 韩国欧美国产1区| av成人老司机| 精品成人免费观看| 亚洲欧美在线aaa| 日本亚洲一区二区| av一本久道久久综合久久鬼色| 欧美日韩中文字幕一区二区| 精品久久国产字幕高潮| 亚洲美女视频在线| 国产乱人伦偷精品视频免下载| 91福利视频网站| 久久久精品综合| 天天综合天天做天天综合| 成人免费视频国产在线观看| 欧美精品一二三四| 亚洲人精品一区| 国产专区综合网| 在线综合视频播放| 亚洲视频一区二区免费在线观看| 亚洲国产中文字幕| 波多野结衣中文字幕一区二区三区| 欧美精品123区| 日韩美女视频一区| 国产成人精品午夜视频免费| 91精品免费观看| 亚洲一级二级三级在线免费观看| 成人一区在线观看| 欧美一区二区免费观在线| 亚洲黄色av一区| 99久久国产综合色|国产精品| 久久日韩粉嫩一区二区三区| 天堂资源在线中文精品| 色哟哟一区二区| 国产精品免费网站在线观看| 麻豆国产欧美日韩综合精品二区| av激情成人网| 久久久九九九九| 国产伦精一区二区三区| 欧美一卡二卡三卡| 亚洲h精品动漫在线观看| 在线区一区二视频| 亚洲制服丝袜av| 国产精品亚洲一区二区三区妖精 | 欧洲精品一区二区| 亚洲精品老司机| 欧美在线免费播放| 一区二区三区免费看视频| 在线观看免费视频综合| 亚洲大尺度视频在线观看| 欧美高清精品3d| 久久精品国产亚洲高清剧情介绍| 精品国产乱子伦一区| 国产成人免费视频| 亚洲人成网站精品片在线观看| 91美女在线看| 亚洲成人在线免费| 日韩久久久久久| 国产69精品久久久久777| 中文字幕一区二区三区蜜月| 欧洲av在线精品| 日韩一级免费观看| 欧美人妖巨大在线| 99精品视频一区| 欧美三级电影精品| 欧美色精品在线视频| 久久精品国产999大香线蕉| 久草热8精品视频在线观看| 亚洲精品国产第一综合99久久| 国产欧美日韩综合精品一区二区 | 一区二区三区小说| 亚洲成av人在线观看| 亚洲免费色视频| 亚洲午夜激情网页| 久久国产婷婷国产香蕉| 亚洲大片精品永久免费| 午夜久久久久久久久| 性久久久久久久久| 日本在线播放一区二区三区| 蜜臀av性久久久久蜜臀aⅴ| 亚洲一区二区视频在线| 亚洲bdsm女犯bdsm网站| 午夜精品久久久久久久久久| 日韩av电影免费观看高清完整版 | 日韩一级二级三级精品视频| 99精品黄色片免费大全| 粉嫩嫩av羞羞动漫久久久 | 自拍偷拍欧美精品| 亚洲午夜精品网| 麻豆国产精品官网| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产成人精品免费| 国产成人精品亚洲日本在线桃色| 成人午夜av在线| 欧美精品久久久久久久多人混战| 国产农村妇女精品| 日本不卡一区二区| 国产精品灌醉下药二区| 91免费视频网址| 狠狠色丁香久久婷婷综合丁香| 亚洲欧美一区二区三区久本道91 | 国产精品一区二区在线观看不卡 | 香港成人在线视频|