亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美伦理电影网| 美女国产一区二区| 日本欧美肥老太交大片| 国产激情视频一区二区在线观看| 色先锋资源久久综合| 精品三级在线看| 亚洲自拍偷拍综合| 成人性生交大片免费看中文网站| 这里只有精品99re| 一级精品视频在线观看宜春院| 国产高清不卡二三区| 日韩一区二区高清| 午夜成人免费电影| 91黄色小视频| 综合久久综合久久| 成人黄色av网站在线| 久久综合九色综合97婷婷| 亚洲国产sm捆绑调教视频| 99精品久久99久久久久| 日本一区二区在线不卡| 国产麻豆欧美日韩一区| 精品国产一区a| 全部av―极品视觉盛宴亚洲| 欧美酷刑日本凌虐凌虐| 婷婷六月综合网| 在线日韩av片| 亚洲一二三级电影| 欧美日韩一区视频| 亚洲成va人在线观看| 精品视频在线免费| 亚洲大片在线观看| 678五月天丁香亚洲综合网| 亚洲午夜电影在线观看| 欧美色综合网站| 天天操天天综合网| 日韩欧美视频在线| 国内一区二区在线| 久久久91精品国产一区二区精品 | 精品99999| 韩国女主播一区| 欧美国产欧美亚州国产日韩mv天天看完整 | 青青草国产精品亚洲专区无| 欧美军同video69gay| 五月激情综合网| 日韩午夜三级在线| 色婷婷久久99综合精品jk白丝| 国产精品网曝门| 99久久精品国产麻豆演员表| 亚洲综合激情另类小说区| 欧美日韩免费在线视频| 日韩精品电影在线观看| 亚洲精品一区二区三区精华液| 国产精品一区二区不卡| 亚洲精品中文在线观看| 欧美日韩电影一区| 韩国在线一区二区| 成人免费一区二区三区视频| 欧美日韩国产系列| 国产一区二区影院| 成人免费在线播放视频| 欧美日韩一级大片网址| 狠狠色丁香婷婷综合| 亚洲视频在线一区观看| 91精品中文字幕一区二区三区| 精品一区二区三区视频在线观看| 欧美国产欧美综合| 91麻豆精品国产91久久久使用方法 | 欧美福利一区二区| 国产一区激情在线| 亚洲精品视频免费观看| 欧美放荡的少妇| 成人高清视频在线观看| 午夜a成v人精品| 国产精品精品国产色婷婷| 欧美日韩三级一区二区| 国产乱人伦偷精品视频不卡| 亚洲自拍都市欧美小说| 久久久久久夜精品精品免费| 在线观看欧美黄色| 国产精品一区专区| 日韩成人dvd| 亚洲欧美视频在线观看| 久久在线免费观看| 欧美一区二区在线不卡| 91麻豆国产在线观看| 国内精品国产三级国产a久久| 亚洲图片一区二区| 中文字幕一区在线| 国产午夜精品久久久久久免费视| 91麻豆精品国产自产在线| 一本久道久久综合中文字幕| 国产精品资源网| 精一区二区三区| 五月婷婷色综合| 亚洲欧美偷拍三级| 国产精品国模大尺度视频| 精品剧情在线观看| 91麻豆精品国产无毒不卡在线观看| 91福利精品视频| 日本黄色一区二区| 99精品久久99久久久久| 成人福利视频网站| 国产成人在线视频免费播放| 美女视频一区二区| 秋霞电影一区二区| 日本不卡123| 亚洲chinese男男1069| 亚洲精品国产品国语在线app| 国产精品久久久久久久久搜平片| 久久久久久日产精品| 久久久久久久久岛国免费| 久久久亚洲精品石原莉奈 | 久久99这里只有精品| 青青草国产精品亚洲专区无| 婷婷丁香久久五月婷婷| 亚洲国产精品精华液网站| 一区二区高清在线| 亚洲成人动漫一区| 午夜欧美在线一二页| 免费在线观看成人| 麻豆久久一区二区| 国内精品伊人久久久久av一坑| 精品一区二区三区免费| 国产精品18久久久久久久久 | 久久久久久免费| 国产欧美一区二区精品久导航 | 成人av网址在线观看| 91麻豆国产福利在线观看| 色欧美日韩亚洲| 欧美日韩三级在线| 精品剧情v国产在线观看在线| 国产色产综合色产在线视频| 国产精品国产三级国产aⅴ无密码| 亚洲三级在线免费| 午夜av一区二区| 国产精品正在播放| 色哟哟精品一区| 日韩一级视频免费观看在线| 精品国产乱码久久久久久蜜臀| 国产精品美女www爽爽爽| 亚洲免费资源在线播放| 日本特黄久久久高潮| 国产精品正在播放| 一本久道久久综合中文字幕| 欧美一卡2卡三卡4卡5免费| 国产日韩精品一区二区三区在线| 亚洲女女做受ⅹxx高潮| 免费观看在线色综合| 成年人国产精品| 日韩一区二区视频在线观看| 中文字幕第一页久久| 亚洲福利一区二区三区| 国产福利不卡视频| 欧美日韩精品久久久| 中文乱码免费一区二区| 日日嗨av一区二区三区四区| 成人精品一区二区三区四区| 欧美丰满少妇xxxbbb| 国产精品理论片| 免费在线欧美视频| 色久综合一二码| 久久婷婷色综合| 亚洲国产精品久久久男人的天堂| 国产高清成人在线| 欧美精品在线观看一区二区| 久久精品人人做| 日韩高清不卡一区二区| 色哟哟在线观看一区二区三区| 欧美精品一区二区三区蜜桃| 亚欧色一区w666天堂| www.欧美.com| www国产精品av| 奇米色一区二区| 在线看不卡av| 国产精品久久久久久久久快鸭| 精品一区二区三区在线播放| 欧美三级日本三级少妇99| 国产精品免费视频观看| 美女视频黄 久久| 91麻豆精品国产91久久久| 亚洲人成伊人成综合网小说| 国产精品一线二线三线| wwwwww.欧美系列| 麻豆国产精品777777在线| 欧美色爱综合网| 夜夜夜精品看看| 91美女片黄在线观看| 国产精品成人在线观看| 国产成人啪免费观看软件| 日韩免费高清电影| 日韩av电影免费观看高清完整版| 欧美在线色视频| 亚洲国产成人av网| 欧美日韩精品一区二区在线播放| 尤物视频一区二区| 欧美三区免费完整视频在线观看| 一区二区三区不卡在线观看 | 性欧美疯狂xxxxbbbb| 欧美日韩一二区| 日韩高清在线观看|