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

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

?? combinedrangecategoryplot.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * 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.]
 *
 * ------------------------------
 * CombinedRangeCategoryPlot.java
 * ------------------------------
 * (C) Copyright 2003-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Nicolas Brodu;
 *
 * $Id: CombinedRangeCategoryPlot.java,v 1.13.2.1 2005/10/25 20:52:08 mungady Exp $
 *
 * Changes:
 * --------
 * 16-May-2003 : Version 1 (DG);
 * 08-Aug-2003 : Adjusted totalWeight in remove() method (DG);
 * 19-Aug-2003 : Implemented Cloneable (DG);
 * 11-Sep-2003 : Fix cloning support (subplots) (NB);
 * 15-Sep-2003 : Implemented PublicCloneable.  Fixed errors in cloning and 
 *               serialization (DG);
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 17-Sep-2003 : Updated handling of 'clicks' (DG);
 * 04-May-2004 : Added getter/setter methods for 'gap' attributes (DG);
 * 12-Nov-2004 : Implements the new Zoomable interface (DG);
 * 25-Nov-2004 : Small update to clone() implementation (DG);
 * 21-Feb-2005 : Fixed bug in remove() method (id = 1121172) (DG);
 * 21-Feb-2005 : The getLegendItems() method now returns the fixed legend
 *               items if set (DG);
 * 05-May-2005 : Updated draw() method parameters (DG);
 * 
 */
 
package org.jfree.chart.plot;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.axis.AxisSpace;
import org.jfree.chart.axis.AxisState;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.event.PlotChangeListener;
import org.jfree.data.Range;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RectangleInsets;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;

/**
 * A combined category plot where the range axis is shared.
 */
public class CombinedRangeCategoryPlot extends CategoryPlot 
                                       implements Zoomable,
                                                  Cloneable, PublicCloneable, 
                                                  Serializable,
                                                  PlotChangeListener {

    /** For serialization. */
    private static final long serialVersionUID = 7260210007554504515L;
    
    /** Storage for the subplot references. */
    private List subplots;

    /** Total weight of all charts. */
    private int totalWeight;

    /** The gap between subplots. */
    private double gap;

    /** Temporary storage for the subplot areas. */
    private transient Rectangle2D[] subplotArea;  // TODO: move to plot state

    /**
     * Default constructor.
     */
    public CombinedRangeCategoryPlot() {
        this(new NumberAxis());
    }
    
    /**
     * Creates a new plot.
     *
     * @param rangeAxis  the shared range axis.
     */
    public CombinedRangeCategoryPlot(ValueAxis rangeAxis) {
        super(null, null, rangeAxis, null);
        this.subplots = new java.util.ArrayList();
        this.totalWeight = 0;
        this.gap = 5.0;
    }

    /**
     * Returns the space between subplots.
     *
     * @return The gap (in Java2D units).
     */
    public double getGap() {
        return this.gap;
    }

    /**
     * Sets the amount of space between subplots and sends a 
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param gap  the gap between subplots (in Java2D units).
     */
    public void setGap(double gap) {
        this.gap = gap;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Adds a subplot (with a default 'weight' of 1) and sends a 
     * {@link PlotChangeEvent} to all registered listeners.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     */
    public void add(CategoryPlot subplot) {
        // defer argument checking
        add(subplot, 1);
    }

    /**
     * Adds a subplot and sends a {@link PlotChangeEvent} to all registered 
     * listeners.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     * @param weight  the weight (must be >= 1).
     */
    public void add(CategoryPlot subplot, int weight) {
        if (subplot == null) {
            throw new IllegalArgumentException("Null 'subplot' argument.");
        }
        if (weight <= 0) {
            throw new IllegalArgumentException("Require weight >= 1.");
        }
        // store the plot and its weight
        subplot.setParent(this);
        subplot.setWeight(weight);
        subplot.setInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
        subplot.setRangeAxis(null);
        subplot.setOrientation(getOrientation());
        subplot.addChangeListener(this);
        this.subplots.add(subplot);
        this.totalWeight += weight;
        
        // configure the range axis...
        ValueAxis axis = getRangeAxis();
        if (axis != null) {
            axis.configure();
        }
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Removes a subplot from the combined chart.
     *
     * @param subplot  the subplot (<code>null</code> not permitted).
     */
    public void remove(CategoryPlot subplot) {
        if (subplot == null) {
            throw new IllegalArgumentException(" Null 'subplot' argument.");   
        }
        int position = -1;
        int size = this.subplots.size();
        int i = 0;
        while (position == -1 && i < size) {
            if (this.subplots.get(i) == subplot) {
                position = i;
            }
            i++;
        }
        if (position != -1) {
            this.subplots.remove(position);
            subplot.setParent(null);
            subplot.removeChangeListener(this);
            this.totalWeight -= subplot.getWeight();
        
            ValueAxis range = getRangeAxis();
            if (range != null) {
                range.configure();
            }

            ValueAxis range2 = getRangeAxis(1);
            if (range2 != null) {
                range2.configure();
            }
            notifyListeners(new PlotChangeEvent(this));
        }
    }

    /**
     * Returns the list of subplots.
     *
     * @return The list (unmodifiable).
     */
    public List getSubplots() {
        return Collections.unmodifiableList(this.subplots);
    }

    /**
     * Calculates the space required for the axes.
     * 
     * @param g2  the graphics device.
     * @param plotArea  the plot area.
     * 
     * @return The space required for the axes.
     */
    protected AxisSpace calculateAxisSpace(Graphics2D g2, 
                                           Rectangle2D plotArea) {
        
        AxisSpace space = new AxisSpace();  
        PlotOrientation orientation = getOrientation();
        
        // work out the space required by the domain axis...
        AxisSpace fixed = getFixedRangeAxisSpace();
        if (fixed != null) {
            if (orientation == PlotOrientation.VERTICAL) {
                space.setLeft(fixed.getLeft());
                space.setRight(fixed.getRight());
            }
            else if (orientation == PlotOrientation.HORIZONTAL) {
                space.setTop(fixed.getTop());
                space.setBottom(fixed.getBottom());                
            }
        }
        else {
            ValueAxis valueAxis = getRangeAxis();
            RectangleEdge valueEdge = Plot.resolveRangeAxisLocation(
                getRangeAxisLocation(), orientation
            );
            if (valueAxis != null) {
                space = valueAxis.reserveSpace(
                    g2, this, plotArea, valueEdge, space
                );
            }
        }
        
        Rectangle2D adjustedPlotArea = space.shrink(plotArea, null);
        // work out the maximum height or width of the non-shared axes...
        int n = this.subplots.size();

        // calculate plotAreas of all sub-plots, maximum vertical/horizontal 
        // axis width/height
        this.subplotArea = new Rectangle2D[n];
        double x = adjustedPlotArea.getX();
        double y = adjustedPlotArea.getY();
        double usableSize = 0.0;
        if (orientation == PlotOrientation.VERTICAL) {
            usableSize = adjustedPlotArea.getWidth() - this.gap * (n - 1);
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av高清久久久| 亚洲一区二区三区四区在线观看| 日韩一卡二卡三卡国产欧美| 97精品视频在线观看自产线路二| 91在线精品一区二区| 欧美性三三影院| 欧美本精品男人aⅴ天堂| 日韩理论片在线| 日本色综合中文字幕| 国产成人福利片| 欧美亚洲动漫精品| 久久久久九九视频| 亚洲影视在线观看| 国产成人三级在线观看| 欧美精品亚洲二区| 亚洲免费观看视频| 国产一区二区0| 欧美一区二区三区在线观看视频| 国产精品色噜噜| 男人的天堂久久精品| 91网站最新网址| 国产人妖乱国产精品人妖| 日韩高清不卡一区二区三区| 一本久久a久久精品亚洲| 国产香蕉久久精品综合网| 日日夜夜免费精品视频| 在线免费av一区| 中文字幕一区二区在线播放| 捆绑紧缚一区二区三区视频| 欧美精品三级日韩久久| 亚洲午夜电影在线| 欧美日韩国产综合一区二区 | 麻豆精品一区二区综合av| 99久久久久免费精品国产| 久久嫩草精品久久久久| 国产精品一区二区久激情瑜伽| 日韩欧美精品在线| 精品一区二区精品| 欧美一区二区福利在线| 日产国产欧美视频一区精品| 欧美久久婷婷综合色| 亚洲女同ⅹxx女同tv| 色偷偷久久人人79超碰人人澡| 亚洲美女偷拍久久| 欧美一级久久久久久久大片| 蜜桃视频免费观看一区| 欧美国产激情二区三区 | ●精品国产综合乱码久久久久| 99re热这里只有精品视频| 免费观看日韩电影| 日韩成人dvd| 在线不卡的av| 欧美系列在线观看| 99国产精品久久久久| 亚洲精选在线视频| 欧洲国内综合视频| 亚洲成va人在线观看| 日韩午夜av一区| 激情综合五月天| 国产精品盗摄一区二区三区| 99在线精品观看| 婷婷六月综合亚洲| 中文字幕免费不卡| 亚洲色图.com| 精品久久久久99| 欧美日韩一区三区| 91日韩一区二区三区| 国产成人av电影| 国产原创一区二区| 毛片一区二区三区| 日韩影院精彩在线| 午夜一区二区三区在线观看| 国产精品久久久久久久蜜臀| 精品国产sm最大网站| 欧美丰满一区二区免费视频| 99视频一区二区三区| 不卡的电影网站| 91视频在线观看| 制服丝袜成人动漫| 久久免费精品国产久精品久久久久| 日韩高清在线观看| 精品国产电影一区二区| 国产亚洲精品福利| 欧美xxxxxxxxx| 欧美日韩在线播放一区| 欧美大片日本大片免费观看| 国产亚洲福利社区一区| 亚洲午夜日本在线观看| 精品一区二区三区免费视频| 91亚洲国产成人精品一区二区三| 久久国产麻豆精品| 亚洲一区二区在线免费看| 亚洲国产成人91porn| 一区二区在线观看av| 亚洲国产精品麻豆| 免费美女久久99| 成人一区二区三区| 欧美最猛性xxxxx直播| 欧美v日韩v国产v| 久久久不卡网国产精品一区| 一色屋精品亚洲香蕉网站| 国产精品成人免费在线| 香蕉久久一区二区不卡无毒影院| 奇米影视一区二区三区小说| 福利一区二区在线| 91豆麻精品91久久久久久| 日韩小视频在线观看专区| 国产天堂亚洲国产碰碰| 亚洲成人自拍偷拍| 成人免费视频网站在线观看| 欧美色综合影院| 国产精品午夜久久| 亚洲h精品动漫在线观看| 久久成人免费网站| 欧美日韩一区二区三区四区 | 一区二区三区.www| 成人综合在线观看| 日韩一区二区三区观看| 一区二区日韩av| 国产91富婆露脸刺激对白| 在线电影院国产精品| 亚洲一区在线免费观看| 国产成人av网站| 久久精品一区二区三区不卡牛牛| 日韩av电影天堂| 欧美伦理视频网站| 亚洲一区二区3| 色婷婷av一区二区三区gif| 国产精品日韩精品欧美在线| 国产一区欧美二区| 国产日韩欧美不卡在线| 国产毛片一区二区| 欧美区在线观看| 国产精品久久久久7777按摩| 成人av先锋影音| 亚洲黄色在线视频| 欧美日韩一区二区三区视频| 亚洲高清在线视频| 欧美丰满少妇xxxbbb| 久久成人免费网| 国产精品视频九色porn| 一本到高清视频免费精品| 亚洲国产一区二区三区青草影视 | 国产精品国产三级国产aⅴ入口| 成人精品国产福利| 亚洲国产精品久久艾草纯爱| 69成人精品免费视频| 国产成a人亚洲| 日韩成人免费电影| 国产精品成人网| 91美女在线视频| 91九色02白丝porn| 日韩成人免费看| 国产精品毛片a∨一区二区三区| 91视频国产资源| 美国欧美日韩国产在线播放| 亚洲色图一区二区三区| 欧美一区二区三区免费在线看 | 欧美一区二区三区不卡| 成人性生交大合| 日韩高清一区二区| 亚洲午夜精品网| 亚洲精品一二三四区| 国产校园另类小说区| 精品国产精品网麻豆系列| 91国产免费观看| av一区二区三区| 成人av电影在线观看| 国产精品亚洲专一区二区三区 | 中文字幕第一区二区| 日韩三级免费观看| 91小宝寻花一区二区三区| 99久久精品国产麻豆演员表| 国模冰冰炮一区二区| 国产一区二区精品久久99| 激情综合网天天干| 激情另类小说区图片区视频区| 免费看精品久久片| 日韩精品亚洲一区二区三区免费| 一区二区三区四区视频精品免费 | 成人免费高清在线| www.日韩av| 欧洲色大大久久| 欧美日韩精品电影| 久久综合国产精品| 中文字幕第一区| 一区二区三区欧美视频| 五月综合激情日本mⅴ| 日本欧美在线看| 成人av在线观| 欧美日本一区二区| 国产日韩欧美综合在线| 一区二区免费在线| 国产一区二区三区观看| 色八戒一区二区三区| 日韩午夜av一区| 亚洲一区成人在线| 国产一区二区伦理| 欧美人与性动xxxx| 国产精品麻豆99久久久久久|