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

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

?? combinedrangecategoryplottests.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * 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.]
 *
 * ------------------------------------
 * CombinedRangeCategoryPlotTests.java
 * ------------------------------------
 * (C) Copyright 2003, 2004, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: CombinedRangeCategoryPlotTests.java,v 1.2.2.1 2005/10/25 20:52:35 mungady Exp $
 *
 * Changes
 * -------
 * 21-Aug-2003 : Version 1 (DG);
 *
 */

package org.jfree.chart.plot.junit;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.util.List;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.labels.StandardCategoryToolTipGenerator;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.CombinedRangeCategoryPlot;
import org.jfree.chart.renderer.category.BarRenderer;
import org.jfree.chart.renderer.category.LineAndShapeRenderer;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 * Tests for the {@link CombinedRangeCategoryPlot} class.
 */
public class CombinedRangeCategoryPlotTests extends TestCase {

    /**
     * Returns the tests as a test suite.
     *
     * @return The test suite.
     */
    public static Test suite() {
        return new TestSuite(CombinedRangeCategoryPlotTests.class);
    }

    /**
     * Constructs a new set of tests.
     *
     * @param name  the name of the tests.
     */
    public CombinedRangeCategoryPlotTests(String name) {
        super(name);
    }

    /**
     * Test the equals() method.
     */
    public void testEquals() {
        CombinedRangeCategoryPlot plot1 = createPlot();
        CombinedRangeCategoryPlot plot2 = createPlot();
        assertTrue(plot1.equals(plot2));    
    }

    /**
     * Confirm that cloning works.
     */
    public void testCloning() {
        CombinedRangeCategoryPlot plot1 = createPlot();        
        CombinedRangeCategoryPlot plot2 = null;
        try {
            plot2 = (CombinedRangeCategoryPlot) plot1.clone();
        }
        catch (CloneNotSupportedException e) {
            System.err.println("Failed to clone.");
        }
        assertTrue(plot1 != plot2);
        assertTrue(plot1.getClass() == plot2.getClass());
        assertTrue(plot1.equals(plot2));
    }

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {
        CombinedRangeCategoryPlot plot1 = createPlot();
        CombinedRangeCategoryPlot plot2 = null;
        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(plot1);
            out.close();
            ObjectInput in = new ObjectInputStream(
                new ByteArrayInputStream(buffer.toByteArray())
            );
            plot2 = (CombinedRangeCategoryPlot) in.readObject();
            in.close();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        assertEquals(plot1, plot2);

    }
    
    /**
     * This is a test to replicate the bug report 1121172.
     */
    public void testRemoveSubplot() {
        CombinedRangeCategoryPlot plot = new CombinedRangeCategoryPlot();
        CategoryPlot plot1 = new CategoryPlot();
        CategoryPlot plot2 = new CategoryPlot();
        CategoryPlot plot3 = new CategoryPlot();
        plot.add(plot1);
        plot.add(plot2);
        plot.add(plot3);
        plot.remove(plot2);
        List plots = plot.getSubplots();
        assertEquals(2, plots.size());
    }
    
    /**
     * Creates a dataset.
     *
     * @return A dataset.
     */
    public CategoryDataset createDataset1() {

        DefaultCategoryDataset result = new DefaultCategoryDataset();

        // row keys...
        String series1 = "First";
        String series2 = "Second";

        // column keys...
        String type1 = "Type 1";
        String type2 = "Type 2";
        String type3 = "Type 3";
        String type4 = "Type 4";
        String type5 = "Type 5";
        String type6 = "Type 6";
        String type7 = "Type 7";
        String type8 = "Type 8";

        result.addValue(1.0, series1, type1);
        result.addValue(4.0, series1, type2);
        result.addValue(3.0, series1, type3);
        result.addValue(5.0, series1, type4);
        result.addValue(5.0, series1, type5);
        result.addValue(7.0, series1, type6);
        result.addValue(7.0, series1, type7);
        result.addValue(8.0, series1, type8);

        result.addValue(5.0, series2, type1);
        result.addValue(7.0, series2, type2);
        result.addValue(6.0, series2, type3);
        result.addValue(8.0, series2, type4);
        result.addValue(4.0, series2, type5);
        result.addValue(4.0, series2, type6);
        result.addValue(2.0, series2, type7);
        result.addValue(1.0, series2, type8);

        return result;

    }

    /**
     * Creates a dataset.
     *
     * @return A dataset.
     */
    public CategoryDataset createDataset2() {

        DefaultCategoryDataset result = new DefaultCategoryDataset();

        // row keys...
        String series1 = "Third";
        String series2 = "Fourth";

        // column keys...
        String type1 = "Type 1";
        String type2 = "Type 2";
        String type3 = "Type 3";
        String type4 = "Type 4";
        String type5 = "Type 5";
        String type6 = "Type 6";
        String type7 = "Type 7";
        String type8 = "Type 8";

        result.addValue(11.0, series1, type1);
        result.addValue(14.0, series1, type2);
        result.addValue(13.0, series1, type3);
        result.addValue(15.0, series1, type4);
        result.addValue(15.0, series1, type5);
        result.addValue(17.0, series1, type6);
        result.addValue(17.0, series1, type7);
        result.addValue(18.0, series1, type8);

        result.addValue(15.0, series2, type1);
        result.addValue(17.0, series2, type2);
        result.addValue(16.0, series2, type3);
        result.addValue(18.0, series2, type4);
        result.addValue(14.0, series2, type5);
        result.addValue(14.0, series2, type6);
        result.addValue(12.0, series2, type7);
        result.addValue(11.0, series2, type8);

        return result;

    }

    /**
     * Creates a sample plot.
     * 
     * @return A plot.
     */
    private CombinedRangeCategoryPlot createPlot() {
        CategoryDataset dataset1 = createDataset1();
        NumberAxis rangeAxis1 = new NumberAxis("Value");
        rangeAxis1.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
        LineAndShapeRenderer renderer1 = new LineAndShapeRenderer();
        renderer1.setBaseToolTipGenerator(
            new StandardCategoryToolTipGenerator()
        );
        CategoryPlot subplot1 = new CategoryPlot(
            dataset1, null, rangeAxis1, renderer1
        );
        subplot1.setDomainGridlinesVisible(true);
        
        CategoryDataset dataset2 = createDataset2();
        NumberAxis rangeAxis2 = new NumberAxis("Value");
        rangeAxis2.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
        BarRenderer renderer2 = new BarRenderer();
        renderer2.setBaseToolTipGenerator(
            new StandardCategoryToolTipGenerator()
        );
        CategoryPlot subplot2 = new CategoryPlot(
            dataset2, null, rangeAxis2, renderer2
        );
        subplot2.setDomainGridlinesVisible(true);

        NumberAxis rangeAxis = new NumberAxis("Value");
        CombinedRangeCategoryPlot plot 
            = new CombinedRangeCategoryPlot(rangeAxis);
        plot.add(subplot1, 2);
        plot.add(subplot2, 1);
        return plot;
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品精品亚洲| 麻豆视频一区二区| 久久精品国产精品亚洲精品| 成人激情开心网| 日韩欧美在线综合网| 亚洲男同性恋视频| 国产露脸91国语对白| 在线91免费看| 亚洲青青青在线视频| 国产大陆a不卡| 日韩午夜在线影院| 亚洲国产精品一区二区久久| 成人精品免费视频| 久久久久久久久岛国免费| 天天操天天色综合| 色婷婷av一区二区三区之一色屋| 国产午夜精品一区二区三区视频| 午夜电影网亚洲视频| 在线亚洲欧美专区二区| 日本一区二区高清| 国产 欧美在线| 久久婷婷久久一区二区三区| 日本欧美久久久久免费播放网| 在线日韩国产精品| 国产午夜亚洲精品不卡| 国产精品一区三区| 精品国产亚洲在线| 黄色日韩网站视频| 26uuu色噜噜精品一区二区| 日韩专区一卡二卡| 4438x成人网最大色成网站| 亚洲一区二区三区中文字幕| 在线看不卡av| 性做久久久久久| 欧美美女黄视频| 亚洲电影一级黄| 7777精品伊人久久久大香线蕉完整版| 亚洲大尺度视频在线观看| 欧美色图免费看| 亚洲风情在线资源站| 欧美军同video69gay| 婷婷久久综合九色综合伊人色| 欧美性欧美巨大黑白大战| 亚洲成人黄色影院| 日韩一区二区在线观看| 精品在线免费观看| 国产日韩高清在线| 色哟哟在线观看一区二区三区| 有码一区二区三区| 制服丝袜亚洲播放| 精品在线亚洲视频| **欧美大码日韩| 欧美在线一二三四区| 久久av中文字幕片| 国产日韩高清在线| 欧美午夜精品电影| 久久激情五月婷婷| 久久久久亚洲综合| 色呦呦日韩精品| 麻豆极品一区二区三区| 国产精品全国免费观看高清| 色久综合一二码| 石原莉奈在线亚洲二区| 26uuu久久综合| 色一情一乱一乱一91av| 日韩高清国产一区在线| 国产欧美精品日韩区二区麻豆天美| 精品在线视频一区| 欧美丝袜丝交足nylons图片| 精品久久久网站| 奇米精品一区二区三区四区 | 国产欧美日韩另类视频免费观看| 不卡在线观看av| 蜜臀久久久99精品久久久久久| 国产精品日日摸夜夜摸av| 欧美高清激情brazzers| 国产成人午夜精品影院观看视频| 一个色在线综合| 精品久久久久久久久久久久久久久久久 | 国产成人一级电影| 亚洲午夜精品网| 国产亚洲一区二区三区在线观看 | 成人欧美一区二区三区白人| 欧美一卡二卡三卡| 日本精品裸体写真集在线观看| 美女在线视频一区| 一区二区欧美精品| 国产欧美日韩在线观看| 日韩视频在线永久播放| 色香蕉久久蜜桃| 成年人国产精品| 老色鬼精品视频在线观看播放| 亚洲激情在线激情| 欧美国产成人精品| 久久综合999| 日韩美女在线视频| 欧美精品三级日韩久久| 一本大道久久精品懂色aⅴ| 成人爽a毛片一区二区免费| 久色婷婷小香蕉久久| 婷婷综合在线观看| 亚洲一区在线观看视频| 国产精品福利一区二区三区| 久久亚洲私人国产精品va媚药| 欧美美女喷水视频| 欧美日韩国产bt| 欧美午夜宅男影院| 91猫先生在线| 91在线精品一区二区| 懂色一区二区三区免费观看| 国产乱码字幕精品高清av| 久久精品理论片| 舔着乳尖日韩一区| 美国毛片一区二区三区| 日韩经典一区二区| 日韩黄色小视频| 日韩—二三区免费观看av| 午夜视频在线观看一区| 五月激情综合网| 调教+趴+乳夹+国产+精品| 丝袜美腿高跟呻吟高潮一区| 天天综合色天天综合| 亚洲第一会所有码转帖| 日韩av网站在线观看| 日本aⅴ亚洲精品中文乱码| 日本视频一区二区| 久久精品国产999大香线蕉| 精品一区二区三区在线视频| 精品综合久久久久久8888| 国产福利不卡视频| 97久久久精品综合88久久| 91丨九色丨蝌蚪丨老版| 欧美又粗又大又爽| 欧美日本精品一区二区三区| 91精品国产麻豆国产自产在线 | 国产精品免费视频网站| 日韩毛片视频在线看| 亚洲黄色av一区| 天天操天天综合网| 国产一区二区三区av电影| 粉嫩aⅴ一区二区三区四区| 一本大道久久a久久综合| 欧美一区二区在线免费观看| 精品少妇一区二区| 国产精品乱码一区二区三区软件| 亚洲人成小说网站色在线| 午夜视频一区二区| 国产激情精品久久久第一区二区| 成人免费毛片片v| 欧美日韩视频不卡| 久久先锋影音av| 亚洲午夜三级在线| 国产一区二区三区四区五区入口 | 亚洲国产婷婷综合在线精品| 久久99国产精品成人| 99re热视频精品| 欧美一卡2卡3卡4卡| 18欧美亚洲精品| 极品少妇xxxx精品少妇偷拍| 色婷婷综合视频在线观看| 日韩免费一区二区三区在线播放| 国产精品欧美久久久久一区二区| 亚洲超碰精品一区二区| 国产一区二区三区观看| 色94色欧美sute亚洲13| 久久久综合激的五月天| 亚洲午夜羞羞片| 成人性生交大片免费看中文网站| 欧美日韩一区不卡| 国产精品久久久久影视| 免费av网站大全久久| 91视频com| 亚洲国产成人在线| 免费观看久久久4p| 在线中文字幕不卡| 综合婷婷亚洲小说| 精品一区二区三区av| 欧美日韩亚州综合| 国产精品福利一区| 国产aⅴ综合色| 日韩一级二级三级精品视频| 亚洲精品久久久久久国产精华液| 国产精品一二三四| 欧美电视剧在线看免费| 亚洲影视在线播放| 91精彩视频在线| 最新国产精品久久精品| 国产精品一区二区无线| 制服丝袜av成人在线看| 亚洲资源在线观看| jiyouzz国产精品久久| 久久久久久电影| 狠狠色丁香婷综合久久| 日韩欧美一级特黄在线播放| 日韩—二三区免费观看av| 欧美日韩国产综合一区二区| 亚洲免费看黄网站| 99久久免费精品高清特色大片| 国产欧美日韩精品a在线观看| 久草这里只有精品视频|