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

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

?? standardxyitemrenderer.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.]
 *
 * ---------------------------
 * StandardXYItemRenderer.java
 * ---------------------------
 * (C) Copyright 2001-2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Mark Watson (www.markwatson.com);
 *                   Jonathan Nash;
 *                   Andreas Schneider;
 *                   Norbert Kiesel (for TBD Networks);
 *                   Christian W. Zuckschwerdt;
 *                   Bill Kelemen;
 *                   Nicolas Brodu (for Astrium and EADS Corporate Research 
 *                   Center);
 *
 * $Id: StandardXYItemRenderer.java,v 1.18.2.4 2005/11/28 12:06:35 mungady Exp $
 *
 * Changes:
 * --------
 * 19-Oct-2001 : Version 1, based on code by Mark Watson (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 * 21-Dec-2001 : Added working line instance to improve performance (DG);
 * 22-Jan-2002 : Added code to lock crosshairs to data points.  Based on code 
 *               by Jonathan Nash (DG);
 * 23-Jan-2002 : Added DrawInfo parameter to drawItem() method (DG);
 * 28-Mar-2002 : Added a property change listener mechanism so that the 
 *               renderer no longer needs to be immutable (DG);
 * 02-Apr-2002 : Modified to handle null values (DG);
 * 09-Apr-2002 : Modified draw method to return void.  Removed the translated 
 *               zero from the drawItem method.  Override the initialise() 
 *               method to calculate it (DG);
 * 13-May-2002 : Added code from Andreas Schneider to allow changing 
 *               shapes/colors per item (DG);
 * 24-May-2002 : Incorporated tooltips into chart entities (DG);
 * 25-Jun-2002 : Removed redundant code (DG);
 * 05-Aug-2002 : Incorporated URLs for HTML image maps into chart entities (RA);
 * 08-Aug-2002 : Added discontinuous lines option contributed by 
 *               Norbert Kiesel (DG);
 * 20-Aug-2002 : Added user definable default values to be returned by 
 *               protected methods unless overridden by a subclass (DG);
 * 23-Sep-2002 : Updated for changes in the XYItemRenderer interface (DG);
 * 02-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 25-Mar-2003 : Implemented Serializable (DG);
 * 01-May-2003 : Modified drawItem() method signature (DG);
 * 15-May-2003 : Modified to take into account the plot orientation (DG);
 * 29-Jul-2003 : Amended code that doesn't compile with JDK 1.2.2 (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 20-Aug-2003 : Implemented Cloneable and PublicCloneable (DG);
 * 24-Aug-2003 : Added null/NaN checks in drawItem (BK);
 * 08-Sep-2003 : Fixed serialization (NB);
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 21-Jan-2004 : Override for getLegendItem() method (DG);
 * 27-Jan-2004 : Moved working line into state object (DG);
 * 10-Feb-2004 : Changed drawItem() method to make cut-and-paste overriding 
 *               easier (DG);
 * 25-Feb-2004 : Replaced CrosshairInfo with CrosshairState.  Renamed 
 *               XYToolTipGenerator --> XYItemLabelGenerator (DG);
 * 08-Jun-2004 : Modified to use getX() and getY() methods (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 25-Aug-2004 : Created addEntity() method in superclass (DG);
 * 08-Oct-2004 : Added 'gapThresholdType' as suggested by Mike Watts (DG);
 * 11-Nov-2004 : Now uses ShapeUtilities to translate shapes (DG);
 * 23-Feb-2005 : Fixed getLegendItem() method to show lines.  Fixed bug
 *               1077108 (shape not visible for first item in series) (DG);
 * 10-Apr-2005 : Fixed item label positioning with horizontal orientation (DG);
 * 20-Apr-2005 : Use generators for legend tooltips and URLs (DG);
 * 27-Apr-2005 : Use generator for series label in legend (DG);
 *
 */

package org.jfree.chart.renderer.xy;

import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Point;
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.event.RendererChangeEvent;
import org.jfree.chart.labels.XYToolTipGenerator;
import org.jfree.chart.plot.CrosshairState;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.urls.XYURLGenerator;
import org.jfree.data.xy.XYDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.BooleanList;
import org.jfree.util.BooleanUtilities;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;
import org.jfree.util.ShapeUtilities;
import org.jfree.util.UnitType;

/**
 * Standard item renderer for an {@link XYPlot}.  This class can draw (a) 
 * shapes at each point, or (b) lines between points, or (c) both shapes and 
 * lines.
 */
public class StandardXYItemRenderer extends AbstractXYItemRenderer 
                                    implements XYItemRenderer,
                                               Cloneable,
                                               PublicCloneable,
                                               Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -3271351259436865995L;
    
    /** Constant for the type of rendering (shapes only). */
    public static final int SHAPES = 1;

    /** Constant for the type of rendering (lines only). */
    public static final int LINES = 2;

    /** Constant for the type of rendering (shapes and lines). */
    public static final int SHAPES_AND_LINES = SHAPES | LINES;

    /** Constant for the type of rendering (images only). */
    public static final int IMAGES = 4;

    /** Constant for the type of rendering (discontinuous lines). */
    public static final int DISCONTINUOUS = 8;

    /** Constant for the type of rendering (discontinuous lines). */
    public static final int DISCONTINUOUS_LINES = LINES | DISCONTINUOUS;

    /** A flag indicating whether or not shapes are drawn at each XY point. */
    private boolean baseShapesVisible;

    /** A flag indicating whether or not lines are drawn between XY points. */
    private boolean plotLines;

    /** A flag indicating whether or not images are drawn between XY points. */
    private boolean plotImages;

    /** A flag controlling whether or not discontinuous lines are used. */
    private boolean plotDiscontinuous;

    /** Specifies how the gap threshold value is interpreted. */
    private UnitType gapThresholdType = UnitType.RELATIVE;
    
    /** Threshold for deciding when to discontinue a line. */
    private double gapThreshold = 1.0;

    /** A flag that controls whether or not shapes are filled for ALL series. */
    private Boolean shapesFilled;

    /** 
     * A table of flags that control (per series) whether or not shapes are 
     * filled. 
     */
    private BooleanList seriesShapesFilled;

    /** The default value returned by the getShapeFilled() method. */
    private boolean baseShapesFilled;

    /** 
     * A flag that controls whether or not each series is drawn as a single 
     * path. 
     */
    private boolean drawSeriesLineAsPath;

    /** 
     * The shape that is used to represent a line in the legend. 
     * This should never be set to <code>null</code>. 
     */
    private transient Shape legendLine;
    
    /**
     * Constructs a new renderer.
     */
    public StandardXYItemRenderer() {
        this(LINES, null);
    }

    /**
     * Constructs a new renderer.
     * <p>
     * To specify the type of renderer, use one of the constants: SHAPES, LINES
     * or SHAPES_AND_LINES.
     *
     * @param type  the type.
     */
    public StandardXYItemRenderer(int type) {
        this(type, null);
    }

    /**
     * Constructs a new renderer.
     * <p>
     * To specify the type of renderer, use one of the constants: SHAPES, LINES
     * or SHAPES_AND_LINES.
     *
     * @param type  the type of renderer.
     * @param toolTipGenerator  the item label generator (<code>null</code> 
     *                          permitted).
     */
    public StandardXYItemRenderer(int type, 
                                  XYToolTipGenerator toolTipGenerator) {
        this(type, toolTipGenerator, null);
    }

    /**
     * Constructs a new renderer.
     * <p>
     * To specify the type of renderer, use one of the constants: SHAPES, LINES 
     * or SHAPES_AND_LINES.
     *
     * @param type  the type of renderer.
     * @param toolTipGenerator  the item label generator (<code>null</code> 
     *                          permitted).
     * @param urlGenerator  the URL generator.
     */
    public StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator,
                                  XYURLGenerator urlGenerator) {

        super();
        setToolTipGenerator(toolTipGenerator);
        setURLGenerator(urlGenerator);
        if ((type & SHAPES) != 0) {
            this.baseShapesVisible = true;
        }
        if ((type & LINES) != 0) {
            this.plotLines = true;
        }
        if ((type & IMAGES) != 0) {
            this.plotImages = true;
        }
        if ((type & DISCONTINUOUS) != 0) {
            this.plotDiscontinuous = true;
        }

        this.shapesFilled = null;
        this.seriesShapesFilled = new BooleanList();
        this.baseShapesFilled = true;
        this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
        this.drawSeriesLineAsPath = false;
    }

    /**
     * Returns true if shapes are being plotted by the renderer.
     *
     * @return <code>true</code> if shapes are being plotted by the renderer.
     */
    public boolean getBaseShapesVisible() {
        return this.baseShapesVisible;
    }

    /**
     * Sets the flag that controls whether or not a shape is plotted at each 
     * data point.
     *
     * @param flag  the flag.
     */
    public void setBaseShapesVisible(boolean flag) {
        if (this.baseShapesVisible != flag) {
            this.baseShapesVisible = flag;
            notifyListeners(new RendererChangeEvent(this));
        }
    }

    // SHAPES FILLED

    /**
     * Returns the flag used to control whether or not the shape for an item is
     * filled.
     * <p>
     * The default implementation passes control to the 
     * <code>getSeriesShapesFilled</code> method.  You can override this method 
     * if you require different behaviour.
     *
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     *
     * @return A boolean.
     */
    public boolean getItemShapeFilled(int series, int item) {
        return getSeriesShapesFilled(series);
    }

    /**
     * Returns the flag used to control whether or not the shapes for a series
     * are filled.
     *
     * @param series  the series index (zero-based).
     *
     * @return A boolean.
     */
    public boolean getSeriesShapesFilled(int series) {

        // return the overall setting, if there is one...
        if (this.shapesFilled != null) {
            return this.shapesFilled.booleanValue();
        }

        // otherwise look up the paint table

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区影视| 亚洲一区二区三区在线看| 国产综合色在线视频区| 亚洲国产精品成人综合| 日韩一级二级三级| 国产精品亚洲一区二区三区妖精 | 亚洲国产精品一区二区www| 欧美日韩在线播放一区| 亚洲电影激情视频网站| 国产亚洲婷婷免费| 欧美日韩一区二区三区视频| 国产一区二区免费看| 亚洲一区二三区| 亚洲丝袜美腿综合| 精品国产精品网麻豆系列| 在线欧美日韩精品| www.综合网.com| 另类小说综合欧美亚洲| 一区二区三区高清| 国产精品国产自产拍高清av| 91精品国产一区二区人妖| 91网站视频在线观看| 国产精品 欧美精品| 日韩综合在线视频| 性久久久久久久久久久久| 国产精品美女久久久久久久| 精品久久一区二区三区| 日韩精品最新网址| 欧美一区二区三区视频免费| 欧美日韩国产综合久久| 欧亚一区二区三区| 制服视频三区第一页精品| 欧美日韩国产一级二级| 7777精品久久久大香线蕉| 欧美一区二区三区免费在线看 | 一级日本不卡的影视| 亚洲日本丝袜连裤袜办公室| 一区二区三区免费网站| 亚洲v中文字幕| 蜜桃视频在线观看一区| 国产精品性做久久久久久| 成人性生交大片免费看中文| 91日韩一区二区三区| 欧美日韩一本到| 久久久久久久一区| 亚洲成人精品影院| 国产精品1024| 777欧美精品| 亚洲欧洲综合另类在线| 免费观看一级欧美片| 色网综合在线观看| 国产偷v国产偷v亚洲高清| 亚洲精品国产无天堂网2021| 老司机免费视频一区二区| 一本大道久久精品懂色aⅴ| 6080国产精品一区二区| 中文字幕精品—区二区四季| 美女久久久精品| 欧美日韩国产a| 亚洲伦理在线免费看| 成人精品鲁一区一区二区| 欧美大胆人体bbbb| 天堂在线一区二区| 在线播放/欧美激情| 日本一区中文字幕| 欧美日韩久久不卡| 亚洲成av人片一区二区三区 | 在线观看日韩高清av| 成人免费视频在线观看| 91免费视频观看| 亚洲主播在线播放| 欧美日韩亚洲综合在线 | 一区二区三区中文字幕| 成人av在线影院| 中文字幕在线不卡一区二区三区| 国产成人亚洲综合色影视| 亚洲一级二级三级在线免费观看| 91一区二区三区在线观看| 亚洲一区av在线| 制服.丝袜.亚洲.另类.中文| 国内精品视频一区二区三区八戒| 国产亚洲美州欧州综合国| 91小视频免费观看| 亚洲成人动漫av| 欧美刺激脚交jootjob| 丁香五精品蜜臀久久久久99网站| 欧美激情一区二区三区不卡| 欧美性大战xxxxx久久久| 精一区二区三区| 亚洲人快播电影网| 日韩你懂的在线播放| 91丝袜美腿高跟国产极品老师| 日韩高清在线不卡| 日本一区二区综合亚洲| 欧美日韩国产一区二区三区地区| 国产91在线看| 国产老妇另类xxxxx| 午夜成人免费视频| 国产精品久久久久久久久免费桃花 | 在线免费一区三区| 国产成人久久精品77777最新版本| 亚洲色图在线播放| 久久精品视频一区二区三区| 欧美一区二区三区日韩| 欧美在线视频你懂得| av在线一区二区| 成人黄色网址在线观看| 国内精品国产三级国产a久久| 视频在线在亚洲| 日本午夜一区二区| 麻豆精品视频在线观看免费| 午夜视黄欧洲亚洲| 亚洲免费资源在线播放| 日韩理论片在线| **性色生活片久久毛片| 国产精品乱人伦一区二区| 欧美α欧美αv大片| 日韩精品一区二区三区四区| 精品久久一区二区三区| 国产欧美一区二区三区在线看蜜臀 | 麻豆一区二区三区| 日本亚洲免费观看| 成人美女视频在线观看18| 国产成人精品亚洲777人妖 | 欧美亚洲免费在线一区| 欧美一区二区精美| 国产精品久久久久久久久免费樱桃| 亚洲天堂成人在线观看| 亚洲va国产va欧美va观看| 久久精品国产99国产| kk眼镜猥琐国模调教系列一区二区| av一区二区久久| 日韩一卡二卡三卡| 一区二区中文字幕在线| 亚洲成人av中文| 99国产精品一区| 91超碰这里只有精品国产| 久久久无码精品亚洲日韩按摩| 国产精品私人自拍| 成人午夜精品在线| 精品少妇一区二区三区| 亚洲欧美电影一区二区| 国产综合色在线视频区| 欧美乱妇15p| 悠悠色在线精品| 国产成人精品免费| 337p日本欧洲亚洲大胆精品| 亚洲一区二区三区影院| 色婷婷综合久久久中文字幕| 中文av字幕一区| 老汉av免费一区二区三区| 欧美日韩精品一区二区| 亚洲日本中文字幕区| 国产激情偷乱视频一区二区三区| 欧美日韩精品系列| 亚洲免费在线视频| 99久久久精品| 玉米视频成人免费看| 在线亚洲+欧美+日本专区| 日韩一二三四区| 在线视频一区二区三| 国产人伦精品一区二区| 91精品福利在线一区二区三区| 国产福利91精品| 蜜桃精品视频在线| 亚洲女女做受ⅹxx高潮| 欧美日韩在线综合| 国产美女视频91| 一区二区高清免费观看影视大全| 色欧美88888久久久久久影院| 亚洲成人av福利| www一区二区| 91丨九色丨蝌蚪富婆spa| 日韩二区在线观看| 中文字幕一区二区日韩精品绯色| 欧美性色aⅴ视频一区日韩精品| 奇米精品一区二区三区四区| 国产精品色噜噜| 日韩欧美一区二区在线视频| 成人激情动漫在线观看| 蜜桃av一区二区三区| 亚洲宅男天堂在线观看无病毒| 91麻豆精品国产91久久久| 成人av午夜电影| 精品一区免费av| 国产一区二区三区蝌蚪| 经典三级在线一区| 午夜精品在线看| 亚洲高清中文字幕| 亚洲高清中文字幕| 亚洲一区二区在线播放相泽| 亚洲精品视频在线观看网站| 中文字幕精品一区二区三区精品| 国产日韩精品一区二区三区| 久久精品一区二区三区av| 国产欧美一区二区精品性| 欧美精品一区二区三区四区| 久久久久99精品国产片| 中文字幕精品综合| 亚洲天堂福利av|