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

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

?? xylineandshaperenderer.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.]
 *
 * ---------------------------
 * XYLineAndShapeRenderer.java
 * ---------------------------
 * (C) Copyright 2004, 2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: XYLineAndShapeRenderer.java,v 1.20.2.5 2005/11/28 12:06:35 mungady Exp $
 *
 * Changes:
 * --------
 * 27-Jan-2004 : Version 1 (DG);
 * 10-Feb-2004 : Minor change to drawItem() method to make cut-and-paste 
 *               overriding easier (DG);
 * 25-Feb-2004 : Replaced CrosshairInfo with CrosshairState (DG);
 * 25-Aug-2004 : Added support for chart entities (required for tooltips) (DG);
 * 24-Sep-2004 : Added flag to allow whole series to be drawn as a path 
 *               (necessary when using a dashed stroke with many data 
 *               items) (DG);
 * 04-Oct-2004 : Renamed BooleanUtils --> BooleanUtilities (DG);
 * 11-Nov-2004 : Now uses ShapeUtilities to translate shapes (DG);
 * 27-Jan-2005 : The getLegendItem() method now omits hidden series (DG);
 * 28-Jan-2005 : Added new constructor (DG);
 * 09-Mar-2005 : Added fillPaint settings (DG);
 * 20-Apr-2005 : Use generators for legend tooltips and URLs (DG);
 * 22-Jul-2005 : Renamed defaultLinesVisible --> baseLinesVisible, 
 *               defaultShapesVisible --> baseShapesVisible and
 *               defaultShapesFilled --> baseShapesFilled (DG);
 * 29-Jul-2005 : Added code to draw item labels (DG);
 *
 */

package org.jfree.chart.renderer.xy;

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.event.RendererChangeEvent;
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.BooleanList;
import org.jfree.util.BooleanUtilities;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;
import org.jfree.util.ShapeUtilities;

/**
 * A renderer that can be used with the {@link XYPlot} class.
 */
public class XYLineAndShapeRenderer extends AbstractXYItemRenderer 
                                    implements XYItemRenderer, 
                                               Cloneable,
                                               PublicCloneable,
                                               Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -7435246895986425885L;
    
    /** A flag that controls whether or not lines are visible for ALL series. */
    private Boolean linesVisible;

    /** 
     * A table of flags that control (per series) whether or not lines are 
     * visible. 
     */
    private BooleanList seriesLinesVisible;

    /** The default value returned by the getLinesVisible() method. */
    private boolean baseLinesVisible;

    /** The shape that is used to represent a line in the legend. */
    private transient Shape legendLine;
    
    /** 
     * A flag that controls whether or not shapes are visible for ALL series. 
     */
    private Boolean shapesVisible;

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

    /** The default value returned by the getShapeVisible() method. */
    private boolean baseShapesVisible;

    /** 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 outlines are drawn for shapes. */
    private boolean drawOutlines;
    
    /** 
     * A flag that controls whether the fill paint is used for filling 
     * shapes. 
     */
    private boolean useFillPaint;
    
    /** 
     * A flag that controls whether the outline paint is used for drawing shape 
     * outlines. 
     */
    private boolean useOutlinePaint;
    
    /** 
     * A flag that controls whether or not each series is drawn as a single 
     * path. 
     */
    private boolean drawSeriesLineAsPath;

    /**
     * Creates a new renderer with both lines and shapes visible.
     */
    public XYLineAndShapeRenderer() {
        this(true, true);
    }
    
    /**
     * Creates a new renderer.
     * 
     * @param lines  lines visible?
     * @param shapes  shapes visible?
     */
    public XYLineAndShapeRenderer(boolean lines, boolean shapes) {
        this.linesVisible = null;
        this.seriesLinesVisible = new BooleanList();
        this.baseLinesVisible = lines;
        this.legendLine = new Line2D.Double(-7.0, 0.0, 7.0, 0.0);
        
        this.shapesVisible = null;
        this.seriesShapesVisible = new BooleanList();
        this.baseShapesVisible = shapes;
        
        this.shapesFilled = null;
        this.useFillPaint = false;     // use item paint for fills by default
        this.seriesShapesFilled = new BooleanList();
        this.baseShapesFilled = true;

        this.drawOutlines = true;     
        this.useOutlinePaint = false;  // use item paint for outlines by 
                                       // default, not outline paint
        
        this.drawSeriesLineAsPath = false;
    }
    
    /**
     * Returns a flag that controls whether or not each series is drawn as a 
     * single path.
     * 
     * @return A boolean.
     * 
     * @see #setDrawSeriesLineAsPath(boolean)
     */
    public boolean getDrawSeriesLineAsPath() {
        return this.drawSeriesLineAsPath;
    }
    
    /**
     * Sets the flag that controls whether or not each series is drawn as a 
     * single path.
     * 
     * @param flag  the flag.
     * 
     * @see #getDrawSeriesLineAsPath()
     */
    public void setDrawSeriesLineAsPath(boolean flag) {
        if (this.drawSeriesLineAsPath != flag) {
            this.drawSeriesLineAsPath = flag;
            notifyListeners(new RendererChangeEvent(this));
        }
    }
    
    /**
     * Returns the number of passes through the data that the renderer requires 
     * in order to draw the chart.  Most charts will require a single pass, but 
     * some require two passes.
     * 
     * @return The pass count.
     */
    public int getPassCount() {
        return 2;
    }
    
    // LINES VISIBLE

    /**
     * Returns the flag used to control whether or not the shape for an item is 
     * visible.
     *
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     *
     * @return A boolean.
     */
    public boolean getItemLineVisible(int series, int item) {
        Boolean flag = this.linesVisible;
        if (flag == null) {
            flag = getSeriesLinesVisible(series);
        }
        if (flag != null) {
            return flag.booleanValue();
        }
        else {
            return this.baseLinesVisible;   
        }
    }

    /**
     * Returns a flag that controls whether or not lines are drawn for ALL 
     * series.  If this flag is <code>null</code>, then the "per series" 
     * settings will apply.
     * 
     * @return A flag (possibly <code>null</code>).
     */
    public Boolean getLinesVisible() {
        return this.linesVisible;   
    }
    
    /**
     * Sets a flag that controls whether or not lines are drawn between the 
     * items in ALL series, and sends a {@link RendererChangeEvent} to all 
     * registered listeners.  You need to set this to <code>null</code> if you 
     * want the "per series" settings to apply.
     *
     * @param visible  the flag (<code>null</code> permitted).
     */
    public void setLinesVisible(Boolean visible) {
        this.linesVisible = visible;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Sets a flag that controls whether or not lines are drawn between the 
     * items in ALL series, and sends a {@link RendererChangeEvent} to all 
     * registered listeners.
     *
     * @param visible  the flag.
     */
    public void setLinesVisible(boolean visible) {
        setLinesVisible(BooleanUtilities.valueOf(visible));
    }

    /**
     * Returns the flag used to control whether or not the lines for a series 
     * are visible.
     *
     * @param series  the series index (zero-based).
     *
     * @return The flag (possibly <code>null</code>).
     */
    public Boolean getSeriesLinesVisible(int series) {
        return this.seriesLinesVisible.getBoolean(series);
    }

    /**
     * Sets the 'lines visible' flag for a series.
     *
     * @param series  the series index (zero-based).
     * @param flag  the flag (<code>null</code> permitted).
     */
    public void setSeriesLinesVisible(int series, Boolean flag) {
        this.seriesLinesVisible.setBoolean(series, flag);
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Sets the 'lines visible' flag for a series.
     * 
     * @param series  the series index (zero-based).
     * @param visible  the flag.
     */
    public void setSeriesLinesVisible(int series, boolean visible) {
        setSeriesLinesVisible(series, BooleanUtilities.valueOf(visible));
    }
    
    /**
     * Returns the base 'lines visible' attribute.
     *
     * @return The base flag.
     */
    public boolean getBaseLinesVisible() {
        return this.baseLinesVisible;
    }

    /**
     * Sets the base 'lines visible' flag.
     *
     * @param flag  the flag.
     */
    public void setBaseLinesVisible(boolean flag) {
        this.baseLinesVisible = 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));
    }

    // SHAPES VISIBLE

    /**
     * Returns the flag used to control whether or not the shape for an item is
     * visible.
     * <p>
     * The default implementation passes control to the 
     * <code>getSeriesShapesVisible</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 getItemShapeVisible(int series, int item) {
        Boolean flag = this.shapesVisible;
        if (flag == null) {
            flag = getSeriesShapesVisible(series);
        }
        if (flag != null) {
            return flag.booleanValue();   
        }
        else {
            return this.baseShapesVisible;
        }
    }

    /**
     * Returns the flag that controls whether the shapes are visible for the 
     * items in ALL series.
     * 
     * @return The flag (possibly <code>null</code>).
     */
    public Boolean getShapesVisible() {
        return this.shapesVisible;    
    }
    
    /**
     * Sets the 'shapes visible' for ALL series and sends a 
     * {@link RendererChangeEvent} to all registered listeners.
     *
     * @param visible  the flag (<code>null</code> permitted).
     */
    public void setShapesVisible(Boolean visible) {
        this.shapesVisible = visible;
        notifyListeners(new RendererChangeEvent(this));
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产美女精品一区二区三区| 在线视频亚洲一区| 91尤物视频在线观看| 欧美日韩精品一区二区| xfplay精品久久| 亚洲成av人片一区二区三区| 国产精品中文字幕一区二区三区| 欧美三日本三级三级在线播放| 精品国产乱码久久久久久免费| 亚洲国产综合人成综合网站| 国产成人综合在线播放| 在线不卡欧美精品一区二区三区| 国产精品久久久久久久久晋中| 韩国欧美国产一区| 911精品国产一区二区在线| 成人欧美一区二区三区视频网页 | 欧美年轻男男videosbes| 中文在线一区二区| 蜜臀av性久久久久蜜臀aⅴ| 色婷婷亚洲婷婷| 中文字幕第一区二区| 韩国欧美一区二区| 日韩欧美一级片| 日本强好片久久久久久aaa| 欧美性大战久久| 亚洲免费观看在线视频| 播五月开心婷婷综合| 国产色产综合产在线视频| 精品一区二区三区免费观看| 欧美一区二区三区啪啪| 亚洲18女电影在线观看| 精品视频在线看| 亚洲成人综合在线| 日本久久精品电影| 亚洲码国产岛国毛片在线| 99re热视频精品| 亚洲日本韩国一区| 91伊人久久大香线蕉| 综合激情网...| 色8久久人人97超碰香蕉987| 一区二区在线观看不卡| 在线视频一区二区免费| 亚洲6080在线| 日韩美一区二区三区| 国内精品在线播放| 久久免费视频色| 国产a精品视频| 最新中文字幕一区二区三区| 色噜噜狠狠一区二区三区果冻| 玉米视频成人免费看| 欧美精品一卡二卡| 美女脱光内衣内裤视频久久网站| 精品国产在天天线2019| 国产精品2024| 亚洲欧洲国产日本综合| 91黄视频在线观看| 日韩国产精品久久久久久亚洲| 欧美电影影音先锋| 韩国v欧美v亚洲v日本v| 国产精品久久777777| 在线免费观看日本一区| 视频一区中文字幕| 日韩欧美亚洲国产精品字幕久久久| 麻豆91在线播放| 国产精品久久久久婷婷| 欧美视频中文一区二区三区在线观看 | 一区二区三区色| 欧美一区二区三区在线观看| 成人综合激情网| 亚洲成人资源网| 国产亚洲精品资源在线26u| 91蜜桃婷婷狠狠久久综合9色| 午夜精品福利一区二区三区蜜桃| 精品久久人人做人人爽| av中文字幕一区| 奇米综合一区二区三区精品视频| 欧美激情一区二区三区蜜桃视频| 欧美视频一区在线| 国产一区二区三区日韩| 亚洲婷婷国产精品电影人久久| 欧美一区三区四区| 99久久精品国产一区| 美女免费视频一区| 亚洲黄色免费电影| 久久久久久久av麻豆果冻| 欧美性猛交xxxxxx富婆| 国产成人av影院| 奇米影视7777精品一区二区| 亚洲精品日韩综合观看成人91| 久久影院视频免费| 欧美一区二区三区视频免费| 在线影院国内精品| 国产凹凸在线观看一区二区| 五月天视频一区| 亚洲精品高清视频在线观看| 日本一区二区三区在线不卡| 日韩精品在线看片z| 欧美日韩大陆一区二区| 99国产精品久久久| 国产成人在线视频网站| 久久国产视频网| 日韩高清电影一区| 一级做a爱片久久| 亚洲日本在线天堂| 亚洲国产精品ⅴa在线观看| 欧美一级二级三级蜜桃| 精品视频999| 欧美性生交片4| 日本二三区不卡| 色综合天天综合| 91啪亚洲精品| 91毛片在线观看| 色婷婷久久久久swag精品| 91亚洲午夜精品久久久久久| 成人精品免费网站| 国产99精品在线观看| 国产精品1区2区| 成人在线视频首页| 国产成人午夜视频| 国产伦精品一区二区三区视频青涩| 久久精品久久精品| 久久精工是国产品牌吗| 热久久久久久久| 久久精品国产澳门| 极品少妇xxxx精品少妇偷拍| 国内不卡的二区三区中文字幕 | 日韩欧美在线影院| 51精品视频一区二区三区| 精品婷婷伊人一区三区三| 欧美欧美午夜aⅴ在线观看| 欧美精品乱人伦久久久久久| 91超碰这里只有精品国产| 日韩一级二级三级精品视频| 精品国产伦理网| 日本一区二区三区免费乱视频| 亚洲桃色在线一区| 亚洲大尺度视频在线观看| 琪琪久久久久日韩精品| 国产在线视频一区二区三区| 成人综合在线观看| 欧美无砖专区一中文字| 日韩一区二区在线看片| 久久久.com| 亚洲欧美区自拍先锋| 五月天亚洲婷婷| 国产成人免费视| 欧美中文字幕一二三区视频| 日韩精品资源二区在线| 国产日韩在线不卡| 亚洲国产视频直播| 久久99九九99精品| 国产成人精品亚洲777人妖 | 国产精品自拍网站| 91在线播放网址| 日韩一卡二卡三卡| 欧美国产精品v| 亚洲成人一区二区在线观看| 国产一区二区在线电影| 色综合天天综合色综合av | 欧美在线不卡一区| 日韩视频一区二区| 国产精品护士白丝一区av| 亚洲成a人v欧美综合天堂下载 | 日韩av电影天堂| 成人av免费在线观看| 日韩一级片在线观看| 一色屋精品亚洲香蕉网站| 日产精品久久久久久久性色| 成人aaaa免费全部观看| 欧美一区二区三区在线电影| 综合欧美亚洲日本| 国产综合久久久久久久久久久久| 一本色道久久综合亚洲91| 欧美xxxxxxxxx| 性久久久久久久久久久久| 粉嫩av一区二区三区| 日韩欧美一级在线播放| 亚洲在线视频免费观看| 国产成人午夜高潮毛片| 精品国产99国产精品| 污片在线观看一区二区| 一本一本大道香蕉久在线精品 | 日韩国产高清影视| 91久久精品一区二区| 国产香蕉久久精品综合网| 日韩av不卡在线观看| 欧美视频完全免费看| 亚洲少妇屁股交4| 成人理论电影网| 中文字幕国产一区| 精品午夜一区二区三区在线观看| 欧美日韩一本到| 亚洲午夜三级在线| 972aa.com艺术欧美| 国产精品护士白丝一区av| 成人自拍视频在线| 欧美国产精品中文字幕| 成人午夜又粗又硬又大| 久久久亚洲精华液精华液精华液| 久久99精品一区二区三区|