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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? categoryplot.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * 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., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -----------------
 * CategoryPlot.java
 * -----------------
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Jeremy Bowman;
 *                   Arnaud Lelievre;
 *
 * $Id: CategoryPlot.java,v 1.32 2003/09/11 07:27:49 mungady Exp $
 *
 * Changes (from 21-Jun-2001)
 * --------------------------
 * 21-Jun-2001 : Removed redundant JFreeChart parameter from constructors (DG);
 * 21-Aug-2001 : Added standard header. Fixed DOS encoding problem (DG);
 * 18-Sep-2001 : Updated header (DG);
 * 15-Oct-2001 : Data source classes moved to com.jrefinery.data.* (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 * 23-Oct-2001 : Changed intro and trail gaps on bar plots to use percentage of available space
 *               rather than a fixed number of units (DG);
 * 12-Dec-2001 : Changed constructors to protected (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 16-Jan-2002 : Increased maximum intro and trail gap percents, plus added some argument checking
 *               code.  Thanks to Taoufik Romdhane for suggesting this (DG);
 * 05-Feb-2002 : Added accessor methods for the tooltip generator, incorporated alpha-transparency
 *               for Plot and subclasses (DG);
 * 06-Mar-2002 : Updated import statements (DG);
 * 14-Mar-2002 : Renamed BarPlot.java --> CategoryPlot.java, and changed code to use the
 *               CategoryItemRenderer interface (DG);
 * 22-Mar-2002 : Dropped the getCategories() method (DG);
 * 23-Apr-2002 : Moved the dataset from the JFreeChart class to the Plot class (DG);
 * 29-Apr-2002 : New methods to support printing values at the end of bars, contributed by
 *               Jeremy Bowman (DG);
 * 11-May-2002 : New methods for label visibility and overlaid plot support, contributed by
 *               Jeremy Bowman (DG);
 * 06-Jun-2002 : Removed the tooltip generator, this is now stored with the renderer.  Moved
 *               constants into the CategoryPlotConstants interface.  Updated Javadoc
 *               comments (DG);
 * 10-Jun-2002 : Overridden datasetChanged(...) method to update the upper and lower bound on the
 *               range axis (if necessary), updated Javadocs (DG);
 * 25-Jun-2002 : Removed redundant imports (DG);
 * 20-Aug-2002 : Changed the constructor for Marker (DG);
 * 28-Aug-2002 : Added listener notification to setDomainAxis(...) and setRangeAxis(...) (DG);
 * 23-Sep-2002 : Added getLegendItems() method and fixed errors reported by Checkstyle (DG);
 * 28-Oct-2002 : Changes to the CategoryDataset interface (DG);
 * 05-Nov-2002 : Base dataset is now TableDataset not CategoryDataset (DG);
 * 07-Nov-2002 : Renamed labelXXX as valueLabelXXX (DG);
 * 18-Nov-2002 : Added grid settings for both domain and range axis (previously these were set in
 *               the axes) (DG);
 * 19-Nov-2002 : Added axis location parameters to constructor (DG);
 * 17-Jan-2003 : Moved to com.jrefinery.chart.plot package (DG);
 * 14-Feb-2003 : Fixed bug in auto-range calculation for secondary axis (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 02-May-2003 : Moved render(...) method up from subclasses. Added secondary range markers.
 *               Added an attribute to control the dataset rendering order.  Added a
 *               drawAnnotations(...) method.  Changed the axis location from an int to an
 *               AxisLocation (DG);
 * 07-May-2003 : Merged HorizontalCategoryPlot and VerticalCategoryPlot into this class (DG);
 * 02-Jun-2003 : Removed check for range axis compatibility (DG);
 * 04-Jul-2003 : Added a domain gridline position attribute (DG);
 * 21-Jul-2003 : Moved DrawingSupplier to Plot superclass (DG);
 * 19-Aug-2003 : Added equals(...) method and implemented Cloneable (DG);
 * 01-Sep-2003 : Fixed bug 797466 (no change event when secondary dataset changes) (DG);
 * 02-Sep-2003 : Fixed bug 795209 (wrong dataset checked in render2 method) and 790407 (initialise 
                 method) (DG);
 * 08-Sep-2003 : Added internationalization via use of properties resourceBundle (RFE 690236) (AL); 
 * 08-Sep-2003 : Fixed bug (wrong secondary range axis being used).  Changed ValueAxis API (DG);
 * 10-Sep-2003 : Fixed bug in setRangeAxis(...) method (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.Graphics2D;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
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 java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.LegendItem;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.Marker;
import org.jfree.chart.Spacer;
import org.jfree.chart.annotations.CategoryAnnotation;
import org.jfree.chart.axis.Axis;
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.axis.AxisSpace;
import org.jfree.chart.axis.CategoryAnchor;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.Tick;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.renderer.CategoryItemRenderer;
import org.jfree.chart.renderer.RangeType;
import org.jfree.data.CategoryDataset;
import org.jfree.data.DatasetChangeEvent;
import org.jfree.data.DatasetUtilities;
import org.jfree.data.Range;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ObjectList;
import org.jfree.util.ObjectUtils;
import org.jfree.util.PublicCloneable;

/**
 * A general plotting class that uses data from a {@link CategoryDataset} and renders each data
 * item using a {@link CategoryItemRenderer}.
 *
 * @author David Gilbert
 */
public class CategoryPlot extends Plot implements ValueAxisPlot, Cloneable, Serializable {

    /** The default visibility of the grid lines plotted against the domain axis. */
    public static final boolean DEFAULT_DOMAIN_GRIDLINES_VISIBLE = false;

    /** The default visibility of the grid lines plotted against the range axis. */
    public static final boolean DEFAULT_RANGE_GRIDLINES_VISIBLE = true;

    /** 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.lightGray;

    /** The default value label font. */
    public static final Font DEFAULT_VALUE_LABEL_FONT = new Font("SansSerif", Font.PLAIN, 10);

    /** The plot orientation. */
    private PlotOrientation orientation;

    /** The offset between the data area and the axes. */
    private Spacer axisOffset;

    /** The domain axis. */
    private CategoryAxis domainAxis;

    /** The location of the domain axis. */
    private AxisLocation domainAxisLocation;

    /** Storage for the (optional) secondary domain axes. */
    private ObjectList secondaryDomainAxes;

    /** Storage for the (optional) secondary domain axis locations. */
    private ObjectList secondaryDomainAxisLocations;

    /**
     * A flag that controls whether or not the shared domain axis is drawn (only relevant when
     * the plot is being used as a subplot).
     */
    private boolean drawSharedDomainAxis;

    /** The range axis. */
    private ValueAxis rangeAxis;

    /** The range axis location. */
    private AxisLocation rangeAxisLocation;

    /** Storage for the (optional) secondary range axes. */
    private ObjectList secondaryRangeAxes;

    /** Storage for the (optional) secondary range axis locations. */
    private ObjectList secondaryRangeAxisLocations;

    /** The primary dataset for the plot. */
    private CategoryDataset dataset;

    /** Storage for the (optional) secondary datasets. */
    private ObjectList secondaryDatasets;

    /** Storage for keys that map secondary datasets to domain axes. */
    private ObjectList secondaryDatasetDomainAxisMap;
    
    /** Storage for keys that map secondary datasets to range axes. */
    private ObjectList secondaryDatasetRangeAxisMap;

    /** The renderer for the data items. */
    private CategoryItemRenderer renderer;

    /** Storage for the (optional) secondary renderers. */
    private ObjectList secondaryRenderers;

    /** The dataset rendering order. */
    private DatasetRenderingOrder renderingOrder = DatasetRenderingOrder.STANDARD;

    /** A flag that controls whether the grid-lines for the domain axis are visible. */
    private boolean domainGridlinesVisible;

    /** The position of the domain gridlines relative to the category. */
    private CategoryAnchor domainGridlinePosition;

    /** The stroke used to draw the domain grid-lines. */
    private transient Stroke domainGridlineStroke;

    /** The paint used to draw the domain  grid-lines. */
    private transient Paint domainGridlinePaint;

    /** A flag that controls whether the grid-lines for the range axis are visible. */
    private boolean rangeGridlinesVisible;

    /** The stroke used to draw the range axis grid-lines. */
    private transient Stroke rangeGridlineStroke;

    /** The paint used to draw the range axis grid-lines. */
    private transient Paint rangeGridlinePaint;

    /** The anchor value. */
    private double anchorValue;

    /** A flag that controls whether or not a range crosshair is drawn..*/
    private boolean rangeCrosshairVisible;

    /** The range crosshair value. */
    private double rangeCrosshairValue;

    /** The pen/brush used to draw the crosshair (if any). */
    private transient Stroke rangeCrosshairStroke;

    /** The color used to draw the crosshair (if any). */
    private transient Paint rangeCrosshairPaint;

    /** A flag that controls whether or not the crosshair locks onto actual data points. */
    private boolean rangeCrosshairLockedOnData = true;

    /** A list of markers (optional) for the range axis. */
    private transient List rangeMarkers;

    /** A list of secondary markers (optional) for the secondary range axis. */
    private transient List secondaryRangeMarkers;

    /** A list of annotations (optional) for the plot. */
    private transient List annotations;

    /**
     * The weight for the plot (only relevant when the plot is used as a subplot within a
     * combined plot).
     */
    private int weight;

    /** The fixed space for the domain axis. */
    private AxisSpace fixedDomainAxisSpace;

    /** The fixed space for the range axis. */
    private AxisSpace fixedRangeAxisSpace;

    /** Temporary storage. */
    private transient List axesAtTop;

    /** Temporary storage. */
    private transient List axesAtBottom;

    /** Temporary storage. */
    private transient List axesAtLeft;

    /** Temporary storage. */
    private transient List axesAtRight;

    /** The resourceBundle for the localization. */
    static protected ResourceBundle localizationResources = 
                            ResourceBundle.getBundle("org.jfree.chart.plot.LocalizationBundle");

    /**
     * Default constructor.
     */
    public CategoryPlot() {
        this(null, null, null, null);
    }

    /**
     * Creates a new plot.
     *
     * @param dataset  the dataset.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     * @param renderer  the item renderer.
     *
     */
    public CategoryPlot(CategoryDataset dataset,
                        CategoryAxis domainAxis,
                        ValueAxis rangeAxis,
                        CategoryItemRenderer renderer) {

        super();

        this.orientation = PlotOrientation.VERTICAL;

        // allocate storage for secondary dataset, axes and renderers (all optional)
        this.secondaryDomainAxes = new ObjectList();
        this.secondaryDomainAxisLocations = new ObjectList();
        this.secondaryRangeAxes = new ObjectList();
        this.secondaryRangeAxisLocations = new ObjectList();
        
        this.secondaryDatasets = new ObjectList();
        this.secondaryDatasetDomainAxisMap = new ObjectList();
        this.secondaryDatasetRangeAxisMap = new ObjectList();

        this.secondaryRenderers = new ObjectList();

        this.dataset = dataset;
        if (dataset != null) {
            dataset.addChangeListener(this);
        }

        this.axisOffset = new Spacer(Spacer.ABSOLUTE, 0.0, 0.0, 0.0, 0.0);

        setDomainAxisLocation(AxisLocation.BOTTOM_OR_LEFT, false);
        setRangeAxisLocation(AxisLocation.TOP_OR_LEFT, false);

        this.renderer = renderer;
        if (renderer != null) {
            renderer.setPlot(this);
        }

        this.domainAxis = domainAxis;
        if (domainAxis != null) {
            domainAxis.setPlot(this);
            domainAxis.addChangeListener(this);
        }
        this.drawSharedDomainAxis = false;

        this.rangeAxis = rangeAxis;
        if (rangeAxis != null) {
            rangeAxis.setPlot(this);
            rangeAxis.addChangeListener(this);
        }

        this.domainGridlinesVisible = DEFAULT_DOMAIN_GRIDLINES_VISIBLE;
        this.domainGridlinePosition = CategoryAnchor.MIDDLE;
        this.domainGridlineStroke = DEFAULT_GRIDLINE_STROKE;
        this.domainGridlinePaint = DEFAULT_GRIDLINE_PAINT;

        this.rangeGridlinesVisible = DEFAULT_RANGE_GRIDLINES_VISIBLE;
        this.rangeGridlineStroke = DEFAULT_GRIDLINE_STROKE;
        this.rangeGridlinePaint = DEFAULT_GRIDLINE_PAINT;

        this.rangeMarkers = null;
        this.secondaryRangeMarkers = null;

        Marker baseline = new Marker(0.0,
                                     new Color(0.8f, 0.8f, 0.8f, 0.5f),
                                     new java.awt.BasicStroke(1.0f),
                                     new Color(0.85f, 0.85f, 0.95f, 0.5f), 0.6f);
        addRangeMarker(baseline);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线视频你懂得一区| 日韩欧美高清dvd碟片| 91精品国产91热久久久做人人| 精品人在线二区三区| 亚洲男人电影天堂| 九九精品一区二区| 欧美精品免费视频| 亚洲久本草在线中文字幕| 国产一区 二区 三区一级| 欧美日韩在线播放三区| 国产精品国产三级国产专播品爱网 | 成人综合婷婷国产精品久久| 在线观看免费成人| 中文字幕一区二区三区精华液| 蜜桃精品视频在线观看| 在线观看日韩一区| 亚洲精品国产高清久久伦理二区| 国产精品一线二线三线| 欧美大片免费久久精品三p| 亚洲国产三级在线| 91国产免费看| 一区二区三区波多野结衣在线观看| 成人免费视频免费观看| 久久欧美一区二区| 国产精品一区二区x88av| 日韩视频一区二区三区在线播放| 亚洲影视资源网| 在线一区二区三区四区| 中文字幕在线不卡视频| 99久久综合狠狠综合久久| 中文字幕 久热精品 视频在线| 国产最新精品免费| 久久奇米777| 国产1区2区3区精品美女| 久久久国产午夜精品| 国产精品一品视频| 国产精品伦一区| 91丨九色porny丨蝌蚪| 国产精品福利一区二区三区| 97se亚洲国产综合自在线不卡| 亚洲国产成人私人影院tom| 国产91精品欧美| 国产精品欧美久久久久无广告 | 精品日韩在线一区| 国产一区二区在线看| 久久亚洲精品小早川怜子| 国产一区二区电影| 1区2区3区国产精品| 91九色最新地址| 婷婷成人综合网| 精品捆绑美女sm三区| 高清不卡在线观看| ...xxx性欧美| 欧美视频一区二区三区四区| 日本欧美加勒比视频| 久久理论电影网| 色综合天天在线| 一区二区三区四区不卡在线 | 亚洲一区电影777| 91精品国产综合久久福利| 久久97超碰国产精品超碰| 久久久久亚洲综合| 在线视频中文字幕一区二区| 日本成人中文字幕| 国产精品美女久久久久久2018| 欧美综合色免费| 激情五月激情综合网| 中文字幕一区二区三中文字幕 | 成人一区二区三区视频在线观看| 亚洲欧美一区二区在线观看| 欧美日韩国产综合一区二区| 国产在线乱码一区二区三区| 亚洲精品中文字幕乱码三区| 欧美一区二区日韩| 91啪亚洲精品| 国产乱妇无码大片在线观看| 亚洲精品中文在线影院| 久久婷婷色综合| 欧美日本韩国一区二区三区视频| 国产精品亚洲а∨天堂免在线| 亚洲曰韩产成在线| 国产精品青草综合久久久久99| 91.麻豆视频| 91蜜桃在线观看| 激情深爱一区二区| 丝袜亚洲另类欧美| 最新高清无码专区| 久久久99精品免费观看不卡| 欧美美女一区二区在线观看| 成人午夜激情片| 激情图片小说一区| 免费成人你懂的| 亚洲大片精品永久免费| 亚洲视频一区在线观看| 国产欧美一区二区在线| 欧美一区日本一区韩国一区| 91蝌蚪porny| 成人黄色小视频| 国内国产精品久久| 免费在线观看日韩欧美| 亚洲成人免费av| 一区二区三区在线视频免费观看| 国产精品久久看| 国产午夜一区二区三区| 精品99久久久久久| 欧美v日韩v国产v| 欧美一区二区大片| 9191国产精品| 在线电影一区二区三区| 欧美日韩国产a| 欧美日韩免费在线视频| 欧洲国产伦久久久久久久| 色婷婷综合在线| 色婷婷精品大视频在线蜜桃视频| 91婷婷韩国欧美一区二区| 成人aaaa免费全部观看| 99麻豆久久久国产精品免费 | 中文字幕亚洲精品在线观看 | 婷婷综合另类小说色区| 亚洲国产精品影院| 亚洲成人动漫av| 日本美女一区二区| 激情综合网天天干| 国产精品一线二线三线精华| 国产精品一二三| 9久草视频在线视频精品| 99视频国产精品| 欧美三级乱人伦电影| 欧美日韩夫妻久久| 日韩欧美成人午夜| 日本一区二区不卡视频| 亚洲欧美中日韩| 亚洲国产精品久久人人爱蜜臀| 日日噜噜夜夜狠狠视频欧美人| 日本欧美在线观看| 岛国精品一区二区| 91黄视频在线| 精品日韩成人av| 国产精品久久久久婷婷二区次| 亚洲欧美激情在线| 日日骚欧美日韩| 国产高清久久久久| 色偷偷成人一区二区三区91| 69成人精品免费视频| 久久免费的精品国产v∧| 日韩美女久久久| 日韩影院精彩在线| 国产91精品精华液一区二区三区| 色94色欧美sute亚洲线路二| 91精品国产91久久久久久一区二区 | 91蜜桃在线免费视频| 91精品一区二区三区在线观看| 久久影视一区二区| 一级日本不卡的影视| 美日韩黄色大片| 99精品欧美一区| 欧美精品一区二区三区蜜臀| 亚洲激情图片一区| 国产精品影视网| 3751色影院一区二区三区| 中文字幕+乱码+中文字幕一区| 亚洲成人午夜电影| 成人aa视频在线观看| 日韩一级免费观看| 亚洲精品国产第一综合99久久| 久草在线在线精品观看| 欧美午夜精品一区| 国产精品久久福利| 黄色精品一二区| 777精品伊人久久久久大香线蕉| 国产精品乱码一区二区三区软件| 欧美aa在线视频| 欧美视频一区在线| 亚洲日本va午夜在线影院| 国产一区二区在线影院| 欧美一级视频精品观看| 亚洲精品乱码久久久久久黑人| 国产.欧美.日韩| 精品国产91乱码一区二区三区| 婷婷综合在线观看| 欧美日韩一区在线| 一个色妞综合视频在线观看| 成人激情av网| 国产欧美精品国产国产专区| 蜜臀精品久久久久久蜜臀| 欧美精品高清视频| 亚洲国产精品自拍| 欧美调教femdomvk| 亚洲一区在线观看免费观看电影高清| 成人免费视频网站在线观看| 久久久一区二区三区| 激情综合网av| 精品国产髙清在线看国产毛片| 亚洲va欧美va人人爽午夜 | 水野朝阳av一区二区三区| 欧美私人免费视频| 亚洲超丰满肉感bbw| 欧美三级电影在线看| 亚洲自拍都市欧美小说| 欧美日韩中字一区|