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

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

?? categoryplottests.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.]
 *
 * ----------------------
 * CategoryPlotTests.java
 * ----------------------
 * (C) Copyright 2003-2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: CategoryPlotTests.java,v 1.8.2.2 2005/10/25 20:52:35 mungady Exp $
 *
 * Changes
 * -------
 * 26-Mar-2003 : Version 1 (DG);
 * 15-Sep-2003 : Added a unit test to reproduce a bug in serialization (now 
 *               fixed) (DG);
 *
 */

package org.jfree.chart.plot.junit;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Stroke;
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 junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.annotations.CategoryTextAnnotation;
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.NumberAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.DatasetRenderingOrder;
import org.jfree.chart.plot.IntervalMarker;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.ValueMarker;
import org.jfree.chart.renderer.category.AreaRenderer;
import org.jfree.chart.renderer.category.BarRenderer;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.chart.renderer.category.LineAndShapeRenderer;
import org.jfree.data.Range;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.ui.Layer;
import org.jfree.ui.RectangleInsets;
import org.jfree.util.SortOrder;

/**
 * Tests for the {@link CategoryPlot} class.
 */
public class CategoryPlotTests extends TestCase {

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

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

    /**
     * A test for a bug reported in the forum.
     */
    public void testAxisRange() {
        DefaultCategoryDataset datasetA = new DefaultCategoryDataset();
        DefaultCategoryDataset datasetB = new DefaultCategoryDataset();
        datasetB.addValue(50.0, "R1", "C1");
        datasetB.addValue(80.0, "R1", "C1");
        CategoryPlot plot = new CategoryPlot(
            datasetA, new CategoryAxis(null), new NumberAxis(null), 
            new LineAndShapeRenderer()
        );
        plot.setDataset(1, datasetB);
        plot.setRenderer(1, new LineAndShapeRenderer());
        Range r = plot.getRangeAxis().getRange();
        assertEquals(84.0, r.getUpperBound(), 0.00001);
    }
    
    /**
     * Test that the equals() method differentiates all the required fields.
     */
    public void testEquals() {
        
        CategoryPlot plot1 = new CategoryPlot();
        CategoryPlot plot2 = new CategoryPlot();
        assertTrue(plot1.equals(plot2));    
        assertTrue(plot2.equals(plot1));
        
        // orientation...
        plot1.setOrientation(PlotOrientation.HORIZONTAL);
        assertFalse(plot1.equals(plot2));
        plot2.setOrientation(PlotOrientation.HORIZONTAL);
        assertTrue(plot1.equals(plot2));
        
        // axisOffset...
        plot1.setAxisOffset(new RectangleInsets(0.05, 0.05, 0.05, 0.05));
        assertFalse(plot1.equals(plot2));
        plot2.setAxisOffset(new RectangleInsets(0.05, 0.05, 0.05, 0.05));
        assertTrue(plot1.equals(plot2));

        // domainAxis - no longer a separate field but test anyway...
        plot1.setDomainAxis(new CategoryAxis("Category Axis"));
        assertFalse(plot1.equals(plot2));
        plot2.setDomainAxis(new CategoryAxis("Category Axis"));
        assertTrue(plot1.equals(plot2));

        // domainAxes...
        plot1.setDomainAxis(11, new CategoryAxis("Secondary Axis"));
        assertFalse(plot1.equals(plot2));
        plot2.setDomainAxis(11, new CategoryAxis("Secondary Axis"));
        assertTrue(plot1.equals(plot2));

        // domainAxisLocation - no longer a separate field but test anyway...
        plot1.setDomainAxisLocation(AxisLocation.TOP_OR_RIGHT);
        assertFalse(plot1.equals(plot2));
        plot2.setDomainAxisLocation(AxisLocation.TOP_OR_RIGHT);
        assertTrue(plot1.equals(plot2));

        // domainAxisLocations...
        plot1.setDomainAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
        assertFalse(plot1.equals(plot2));
        plot2.setDomainAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
        assertTrue(plot1.equals(plot2));

        // draw shared domain axis...
        plot1.setDrawSharedDomainAxis(!plot1.getDrawSharedDomainAxis());
        assertFalse(plot1.equals(plot2));
        plot2.setDrawSharedDomainAxis(!plot2.getDrawSharedDomainAxis());
        assertTrue(plot1.equals(plot2));
        
        // rangeAxis - no longer a separate field but test anyway...
        plot1.setRangeAxis(new NumberAxis("Range Axis"));
        assertFalse(plot1.equals(plot2));
        plot2.setRangeAxis(new NumberAxis("Range Axis"));
        assertTrue(plot1.equals(plot2));

        // rangeAxes...
        plot1.setRangeAxis(11, new NumberAxis("Secondary Range Axis"));
        assertFalse(plot1.equals(plot2));
        plot2.setRangeAxis(11, new NumberAxis("Secondary Range Axis"));
        assertTrue(plot1.equals(plot2));

        // rangeAxisLocation - no longer a separate field but test anyway...
        plot1.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
        assertTrue(plot1.equals(plot2));

        // rangeAxisLocations...
        plot1.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeAxisLocation(11, AxisLocation.TOP_OR_RIGHT);
        assertTrue(plot1.equals(plot2));
        
        // datasetToDomainAxisMap...
        plot1.mapDatasetToDomainAxis(11, 11);
        assertFalse(plot1.equals(plot2));
        plot2.mapDatasetToDomainAxis(11, 11);
        assertTrue(plot1.equals(plot2));

        // datasetToRangeAxisMap...
        plot1.mapDatasetToRangeAxis(11, 11);
        assertFalse(plot1.equals(plot2));
        plot2.mapDatasetToRangeAxis(11, 11);
        assertTrue(plot1.equals(plot2));
        
        // renderer - no longer a separate field but test anyway...
        plot1.setRenderer(new AreaRenderer());
        assertFalse(plot1.equals(plot2));
        plot2.setRenderer(new AreaRenderer());
        assertTrue(plot1.equals(plot2));
        
        // renderers...
        plot1.setRenderer(11, new AreaRenderer());
        assertFalse(plot1.equals(plot2));
        plot2.setRenderer(11, new AreaRenderer());
        assertTrue(plot1.equals(plot2));
        
        // rendering order...
        plot1.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
        assertFalse(plot1.equals(plot2));
        plot2.setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
        assertTrue(plot1.equals(plot2));

        // columnRenderingOrder...
        plot1.setColumnRenderingOrder(SortOrder.DESCENDING);
        assertFalse(plot1.equals(plot2));
        plot2.setColumnRenderingOrder(SortOrder.DESCENDING);
        assertTrue(plot1.equals(plot2));
        
        // rowRenderingOrder...
        plot1.setRowRenderingOrder(SortOrder.DESCENDING);
        assertFalse(plot1.equals(plot2));
        plot2.setRowRenderingOrder(SortOrder.DESCENDING);
        assertTrue(plot1.equals(plot2));
        
        // domainGridlinesVisible
        plot1.setDomainGridlinesVisible(true);
        assertFalse(plot1.equals(plot2));
        plot2.setDomainGridlinesVisible(true);
        assertTrue(plot1.equals(plot2));

        // domainGridlinePosition
        plot1.setDomainGridlinePosition(CategoryAnchor.END);
        assertFalse(plot1.equals(plot2));
        plot2.setDomainGridlinePosition(CategoryAnchor.END);
        assertTrue(plot1.equals(plot2));

        // domainGridlineStroke
        Stroke stroke = new BasicStroke(2.0f);
        plot1.setDomainGridlineStroke(stroke);
        assertFalse(plot1.equals(plot2));
        plot2.setDomainGridlineStroke(stroke);
        assertTrue(plot1.equals(plot2));
        
        // domainGridlinePaint
        plot1.setDomainGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.blue, 
                3.0f, 4.0f, Color.yellow));
        assertFalse(plot1.equals(plot2));
        plot2.setDomainGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.blue, 
                3.0f, 4.0f, Color.yellow));
        assertTrue(plot1.equals(plot2));
        
        // rangeGridlinesVisible
        plot1.setRangeGridlinesVisible(false);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeGridlinesVisible(false);
        assertTrue(plot1.equals(plot2));

        // rangeGridlineStroke
        plot1.setRangeGridlineStroke(stroke);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeGridlineStroke(stroke);
        assertTrue(plot1.equals(plot2));
        
        // rangeGridlinePaint
        plot1.setRangeGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.green, 
                3.0f, 4.0f, Color.yellow));
        assertFalse(plot1.equals(plot2));
        plot2.setRangeGridlinePaint(new GradientPaint(1.0f, 2.0f, Color.green, 
                3.0f, 4.0f, Color.yellow));
        assertTrue(plot1.equals(plot2));
        
        // anchorValue
        plot1.setAnchorValue(100.0);
        assertFalse(plot1.equals(plot2));
        plot2.setAnchorValue(100.0);
        assertTrue(plot1.equals(plot2));
        
        // rangeCrosshairVisible
        plot1.setRangeCrosshairVisible(true);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeCrosshairVisible(true);
        assertTrue(plot1.equals(plot2));
        
        // rangeCrosshairValue
        plot1.setRangeCrosshairValue(100.0);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeCrosshairValue(100.0);
        assertTrue(plot1.equals(plot2));
        
        // rangeCrosshairStroke
        plot1.setRangeCrosshairStroke(stroke);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeCrosshairStroke(stroke);
        assertTrue(plot1.equals(plot2));
        
        // rangeCrosshairPaint
        plot1.setRangeCrosshairPaint(new GradientPaint(1.0f, 2.0f, Color.white, 
                3.0f, 4.0f, Color.yellow));
        assertFalse(plot1.equals(plot2));
        plot2.setRangeCrosshairPaint(new GradientPaint(1.0f, 2.0f, Color.white, 
                3.0f, 4.0f, Color.yellow));
        assertTrue(plot1.equals(plot2));
        
        // rangeCrosshairLockedOnData
        plot1.setRangeCrosshairLockedOnData(false);
        assertFalse(plot1.equals(plot2));
        plot2.setRangeCrosshairLockedOnData(false);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产激情一区二区三区| 麻豆成人91精品二区三区| 日韩免费高清电影| 欧美精品v日韩精品v韩国精品v| 在线日韩av片| 欧美影院精品一区| 91精品国产综合久久久蜜臀图片 | 国产真实乱子伦精品视频| 日韩电影一区二区三区| 免费在线观看成人| 国产ts人妖一区二区| 不卡的电视剧免费网站有什么| 成人av高清在线| 91在线视频在线| 欧美在线免费视屏| 日韩午夜电影av| 久久久久国产成人精品亚洲午夜| 久久综合狠狠综合久久综合88| 久久久久亚洲蜜桃| 亚洲色图一区二区| 奇米影视一区二区三区小说| 国产精品正在播放| 色哟哟在线观看一区二区三区| 欧美人与性动xxxx| 久久美女高清视频| 亚洲在线观看免费视频| 看片网站欧美日韩| 成人国产电影网| 91福利视频在线| 欧美大片在线观看| 亚洲精品国产一区二区三区四区在线| 亚洲一区二区高清| 国产精品88av| 欧美色综合影院| 久久久精品影视| 亚洲综合免费观看高清完整版在线| 日韩精品乱码av一区二区| 懂色一区二区三区免费观看| 欧美视频一二三区| 久久九九久久九九| 免费成人结看片| 一本大道av伊人久久综合| 欧美电影免费观看高清完整版| 最新国产精品久久精品| 久久电影网电视剧免费观看| 欧美专区在线观看一区| 日本一区二区三区电影| 老司机精品视频导航| 欧美亚洲国产一区二区三区va| 久久久不卡影院| 麻豆91免费观看| 精品视频1区2区| 亚洲色图制服丝袜| 成人动漫一区二区三区| 2023国产精品自拍| 美女久久久精品| 欧美亚洲综合一区| 亚洲在线观看免费| 91精彩视频在线观看| 中文字幕一区二区三区在线观看 | 精品国产露脸精彩对白| 婷婷成人激情在线网| 色综合久久天天| 亚洲日本韩国一区| 91在线小视频| 亚洲精品乱码久久久久久| 成人激情黄色小说| 最新国产成人在线观看| 成人av电影在线网| 1024成人网| 成人黄色电影在线| 成人欧美一区二区三区小说| 成人污视频在线观看| 中文字幕av一区 二区| 国产传媒一区在线| 久久精品综合网| 成人av影院在线| 国产精品嫩草久久久久| 成人激情电影免费在线观看| 国产精品午夜电影| 91啪亚洲精品| 亚洲一区二区三区四区在线| 欧美群妇大交群中文字幕| 日韩成人免费看| 日韩一区二区三区视频在线| 国内外成人在线视频| 久久精品视频一区二区三区| 成人高清免费在线播放| 伊人开心综合网| 69久久夜色精品国产69蝌蚪网| 免费在线成人网| 日本一区二区动态图| av在线播放成人| 亚洲电影在线播放| 精品久久国产字幕高潮| 成人小视频在线观看| 亚洲综合久久av| 欧美xxxxx裸体时装秀| 国产白丝精品91爽爽久久| 一区二区三区四区不卡视频| 欧美高清一级片在线| 国产乱子轮精品视频| 一区二区三区欧美日韩| 欧美精品777| 懂色av一区二区三区蜜臀| 亚洲精品久久7777| 欧美激情在线一区二区| 色94色欧美sute亚洲线路一ni| 天天综合色天天综合色h| 久久综合久久久久88| 91美女在线看| 麻豆91精品91久久久的内涵| 国产精品久久福利| 欧美高清视频不卡网| av动漫一区二区| 久久se精品一区二区| 亚洲欧美偷拍三级| 精品乱人伦小说| 欧美日韩精品一区二区天天拍小说 | 欧美在线观看一二区| 国产一区免费电影| 亚洲成人7777| 国产精品久久久久影院老司| 欧美一二三四在线| 97精品久久久午夜一区二区三区 | 欧美日韩国产精选| 成人免费黄色在线| 美女视频一区二区三区| 亚洲蜜桃精久久久久久久| 国产亚洲一区二区三区在线观看| 欧美私模裸体表演在线观看| 不卡的av中国片| 成人不卡免费av| 国产精品一卡二卡| 美腿丝袜亚洲三区| 亚洲人精品一区| 国产精品的网站| 国产精品素人一区二区| 欧美国产日韩亚洲一区| 精品人在线二区三区| 91精品国产91久久久久久一区二区| 91精彩视频在线观看| 一本大道久久a久久综合婷婷| 波多野结衣一区二区三区 | 亚洲综合在线五月| 亚洲色图在线播放| 一区二区三区四区精品在线视频 | 精品在线观看视频| 久久精品久久99精品久久| 免费人成黄页网站在线一区二区| 亚洲最新视频在线观看| 亚洲高清在线视频| 亚洲v精品v日韩v欧美v专区 | 精品国产一二三区| 日韩欧美一区二区久久婷婷| 日韩午夜三级在线| 日韩精品影音先锋| 精品国产伦一区二区三区观看方式 | 一区二区三区在线视频免费观看| 中文字幕五月欧美| 亚洲精品乱码久久久久久日本蜜臀| 综合久久国产九一剧情麻豆| 亚洲天堂2016| 三级精品在线观看| 久草热8精品视频在线观看| 国产一区激情在线| 91网址在线看| 91精品国产综合久久久久| 欧美xfplay| 国产精品水嫩水嫩| 有坂深雪av一区二区精品| 午夜欧美在线一二页| 精品一区二区三区久久久| 国产精品99久久久| 欧美综合欧美视频| 日韩视频不卡中文| 国产精品久久久久永久免费观看| 亚洲精品中文在线影院| 日韩精彩视频在线观看| 九九久久精品视频| 91在线视频免费观看| 欧美一区二区女人| 国产精品久久久久久久久免费桃花 | 日本欧美一区二区三区| 国产精品夜夜爽| 欧美色涩在线第一页| 精品国一区二区三区| 亚洲码国产岛国毛片在线| 免费观看日韩电影| 91农村精品一区二区在线| 欧美一区二区三区电影| 国产精品免费网站在线观看| 欧美aaa在线| 在线免费观看视频一区| 久久精子c满五个校花| 日本不卡免费在线视频| 91丨九色丨尤物| 久久精品亚洲精品国产欧美| 天天综合网天天综合色| 99riav一区二区三区|