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

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

?? categorysteprenderer.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? 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.]
 *
 * -------------------------
 * CategoryStepRenderer.java
 * -------------------------
 *
 * (C) Copyright 2004, 2005, by Brian Cole and Contributors.
 *
 * Original Author:  Brian Cole;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: CategoryStepRenderer.java,v 1.5.2.1 2005/10/25 20:54:16 mungady Exp $
 *
 * Changes
 * -------
 * 21-Apr-2004 : Version 1, contributed by Brian Cole (DG);
 * 22-Apr-2004 : Fixed Checkstyle complaints (DG);
 * 05-Nov-2004 : Modified drawItem() signature (DG);
 * 08-Mar-2005 : Added equals() method (DG);
 * 
 */

package org.jfree.chart.renderer.category;

import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;

import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.RendererChangeEvent;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.renderer.xy.XYStepRenderer;
import org.jfree.data.category.CategoryDataset;
import org.jfree.util.PublicCloneable;

/**
 * A "step" renderer similar to {@link XYStepRenderer} but
 * that can be used with the {@link CategoryPlot} class.
 *
 * @author Brian Cole
 */
public class CategoryStepRenderer extends AbstractCategoryItemRenderer
                                  implements Cloneable, PublicCloneable, 
                                             Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -5121079703118261470L;
    
    /** The stagger width. */
    public static final int STAGGER_WIDTH = 5; // could make this configurable
  
    /** 
     * A flag that controls whether or not the steps for multiple series are 
     * staggered. 
     */
    private boolean stagger = false;
    
    /** A working line - need to remove this. */
    private transient Line2D line = new Line2D.Double(0.0, 0.0, 0.0, 0.0);

    /** 
     * Creates a new renderer (stagger defaults to <code>false</code>).
     */
    public CategoryStepRenderer() {
        this(false);
    }
    
    /**
     * Creates a new renderer.
     *  
     * @param stagger  should the horizontal part of the step be staggered by 
     *                 series? 
     */
    public CategoryStepRenderer(boolean stagger) {
        this.stagger = stagger;
    }
  
    /**
     * Returns the flag that controls whether the series steps are staggered.
     * 
     * @return A boolean.
     */
    public boolean getStagger() {
        return this.stagger;
    }
    
    /**
     * Sets the flag that controls whether or not the series steps are 
     * staggered and sends a {@link RendererChangeEvent} to all registered
     * listeners.
     * 
     * @param shouldStagger  a boolean.
     */
    public void setStagger(boolean shouldStagger) {
        this.stagger = shouldStagger;
        notifyListeners(new RendererChangeEvent(this));
    }
   
    /**
     * Draws the line.
     * 
     * @param g2  the graphics device.
     * @param orientation  the plot orientation.
     * @param x0  the x-coordinate for the start of the line.
     * @param y0  the y-coordinate for the start of the line.
     * @param x1  the x-coordinate for the end of the line.
     * @param y1  the y-coordinate for the end of the line.
     */
    protected void drawLine(Graphics2D g2, PlotOrientation orientation,
                            double x0, double y0, double x1, double y1) {
     
        if (orientation == PlotOrientation.VERTICAL) {
            this.line.setLine(x0, y0, x1, y1);
            g2.draw(this.line);
        }
        else if (orientation == PlotOrientation.HORIZONTAL) {
            this.line.setLine(y0, x0, y1, x1); // switch x and y
            g2.draw(this.line);
        }
        // else unknown orientation (complain?)
    }

    /**
     * Draw a single data item.
     *
     * @param g2  the graphics device.
     * @param state  the renderer state.
     * @param dataArea  the area in which the data is drawn.
     * @param plot  the plot.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     * @param dataset  the dataset.
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     * @param pass  the pass index.
     */
    public void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset dataset,
                         int row,
                         int column,
                         int pass) {

        Number value = dataset.getValue(row, column);
        if (value == null) {
            return;
        }
        PlotOrientation orientation = plot.getOrientation();

        // current data point...
        double x1s = domainAxis.getCategoryStart(
            column, getColumnCount(), dataArea, plot.getDomainAxisEdge()
        );
        double x1 = domainAxis.getCategoryMiddle(
            column, getColumnCount(), dataArea, plot.getDomainAxisEdge()
        );
        double x1e = 2 * x1 - x1s; // or: x1s + 2*(x1-x1s)
        double y1 = rangeAxis.valueToJava2D(
            value.doubleValue(), dataArea, plot.getRangeAxisEdge()
        );
        g2.setPaint(getItemPaint(row, column));
        g2.setStroke(getItemStroke(row, column));

        if (column != 0) {
            Number previousValue = dataset.getValue(row, column - 1);
            if (previousValue != null) {
                // previous data point...
                double previous = previousValue.doubleValue();
                double x0s = domainAxis.getCategoryStart(
                    column - 1, getColumnCount(), dataArea, 
                    plot.getDomainAxisEdge()
                );
                double x0 = domainAxis.getCategoryMiddle(
                    column - 1, getColumnCount(), dataArea, 
                    plot.getDomainAxisEdge()
                );
                double x0e = 2 * x0 - x0s; // or: x0s + 2*(x0-x0s)
                double y0 = rangeAxis.valueToJava2D(
                    previous, dataArea, plot.getRangeAxisEdge()
                );
                if (getStagger()) {
                    int xStagger = row * STAGGER_WIDTH;
                    if (xStagger > (x1s - x0e)) {
                        xStagger = (int) (x1s - x0e);
                    }
                    x1s = x0e + xStagger;
                }
                drawLine(g2, orientation, x0e, y0, x1s, y0); 
                    // extend x0's flat bar

                drawLine(g2, orientation, x1s, y0, x1s, y1); // upright bar
           }
       }
       drawLine(g2, orientation, x1s, y1, x1e, y1); // x1's flat bar

       // draw the item labels if there are any...
       if (isItemLabelVisible(row, column)) {
            drawItemLabel(
                g2, orientation, dataset, row, column, x1, y1, 
                (value.doubleValue() < 0.0)
            );
       }
    /* This is how LineAndShapeRenderer.drawItem() handles tips and URLs, but
       I omit it due to time pressure. It shouldn't be hard to put back
 in.

       // collect entity and tool tip information...
       if (state.getInfo() != null) {
           EntityCollection entities =
 state.getInfo().getOwner().getEntityCollection();
           if (entities != null && shape != null) {
               String tip = null;
               CategoryItemLabelGenerator generator =
 getItemLabelGenerator(row, column);
               if (generator != null) {
                   tip = generator.generateToolTip(dataset, row, column);
               }
               String url = null;
               if (getItemURLGenerator(row, column) != null)                    
               url = getItemURLGenerator(row, column).generateURL(dataset, row, 
                 column);
               }
               CategoryItemEntity entity = new CategoryItemEntity(
                   shape, tip, url, dataset, row,
 dataset.getColumnKey(column), column);
               entities.addEntity(entity);
           }
       }
    */

    }
    
    /**
     * Tests this renderer for equality with an arbitrary object.
     * 
     * @param obj  the object (<code>null</code> permitted).
     * 
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;   
        }
        if (!(obj instanceof CategoryStepRenderer)) {
            return false;   
        }
        if (!super.equals(obj)) {
            return false;   
        }
        CategoryStepRenderer that = (CategoryStepRenderer) obj;
        if (this.stagger != that.stagger) {
            return false;   
        }
        return true;
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品一区二区| 亚洲一二三区视频在线观看| 成人激情开心网| 亚洲色图一区二区| 91精品视频网| 99久久精品免费看国产免费软件| 亚洲一区二区三区中文字幕在线| 欧美精品v国产精品v日韩精品 | 欧美日韩成人高清| 国产在线不卡视频| 一区二区欧美精品| 久久久蜜桃精品| 欧美日韩免费观看一区二区三区 | 在线综合+亚洲+欧美中文字幕| 韩国av一区二区三区四区 | 国产精品毛片a∨一区二区三区| 欧美日韩免费电影| 一本一道综合狠狠老| 韩国女主播一区二区三区| 亚洲一区免费视频| 中国色在线观看另类| 精品久久久久久久久久久久久久久久久| 精东粉嫩av免费一区二区三区| 亚洲二区在线视频| 亚洲美女少妇撒尿| 亚洲欧美韩国综合色| 欧美国产一区二区在线观看| 日韩女优制服丝袜电影| 欧美色区777第一页| 99综合影院在线| 成人福利视频在线| 成人免费看片app下载| 国内精品不卡在线| 国产在线精品一区二区| 美国毛片一区二区三区| 日韩精品国产欧美| 日本色综合中文字幕| 久久精品国产免费| 久久国产成人午夜av影院| 麻豆中文一区二区| 国产黄人亚洲片| av毛片久久久久**hd| 在线视频亚洲一区| 日韩女优视频免费观看| 日韩欧美aaaaaa| 欧美午夜电影在线播放| 国产**成人网毛片九色 | 欧美亚洲高清一区二区三区不卡| 激情综合网av| 久久av中文字幕片| 亚洲a一区二区| 亚洲一区在线观看网站| 亚洲欧美日韩综合aⅴ视频| 中文字幕精品三区| 国产精品视频麻豆| 欧美国产欧美亚州国产日韩mv天天看完整| 欧美乱熟臀69xxxxxx| 在线播放欧美女士性生活| 欧美日韩国产精选| 91精品国产综合久久精品| 在线不卡中文字幕| 宅男在线国产精品| 国产亚洲一二三区| 国产日产亚洲精品系列| 久久久久久毛片| 中文字幕亚洲精品在线观看| 亚洲精品亚洲人成人网在线播放| 亚洲少妇屁股交4| 亚洲成av人片在线观看无码| 爽好久久久欧美精品| 免费观看在线综合| 国产精品性做久久久久久| a亚洲天堂av| 欧美精品乱人伦久久久久久| 2欧美一区二区三区在线观看视频| 久久亚洲精品小早川怜子| 国产精品久久免费看| 日韩av中文字幕一区二区| 成人av午夜影院| 日韩一区二区三区观看| 国产日韩欧美精品在线| 亚洲综合精品久久| 国产一区 二区 三区一级| 91亚洲精品乱码久久久久久蜜桃| 欧美一区二区三区四区久久| 日本aⅴ精品一区二区三区| 美女免费视频一区| 欧美裸体bbwbbwbbw| 亚洲成在人线在线播放| av在线不卡免费看| 国产欧美日韩麻豆91| 国产久卡久卡久卡久卡视频精品| 欧美日韩国产另类一区| 亚洲一二三级电影| 欧美精品久久99久久在免费线 | 久久激情五月激情| 99在线精品免费| 亚洲免费电影在线| 色综合久久久久久久久久久| 亚洲欧洲在线观看av| 成人黄色电影在线| 中文字幕乱码亚洲精品一区| 国产一区二区三区蝌蚪| 精品国产欧美一区二区| 日韩不卡一二三区| 日韩视频不卡中文| 黑人精品欧美一区二区蜜桃| 精品国产伦一区二区三区免费| 美女mm1313爽爽久久久蜜臀| 久久蜜臀精品av| 成人永久看片免费视频天堂| 一区二区三区在线免费播放| 欧美久久久一区| 成人免费三级在线| 午夜激情久久久| 国产农村妇女毛片精品久久麻豆 | 国产欧美日韩精品一区| 成人亚洲一区二区一| 亚洲成人第一页| 久久久精品蜜桃| 在线成人av影院| 成人中文字幕电影| 婷婷国产v国产偷v亚洲高清| 久久精品亚洲精品国产欧美kt∨| 99精品欧美一区二区三区小说| 日韩av在线发布| 亚洲手机成人高清视频| 久久综合给合久久狠狠狠97色69| aaa国产一区| 99视频精品在线| 久久99精品一区二区三区三区| 亚洲人妖av一区二区| 精品福利视频一区二区三区| 欧美性色欧美a在线播放| 国模一区二区三区白浆| 午夜影院久久久| 亚洲三级免费观看| 国产精品毛片久久久久久| 精品人在线二区三区| 欧美一区二区三区四区高清 | 欧美一区二区视频在线观看2022 | 8x8x8国产精品| 日韩一区二区在线播放| 国产日韩欧美精品综合| 亚洲美女在线一区| 久久精品免费观看| 成人av资源在线| 91精品国产综合久久久蜜臀粉嫩| 久久精品在这里| 亚洲一区自拍偷拍| 粗大黑人巨茎大战欧美成人| 欧美午夜精品一区| 91麻豆精品国产91| 欧美国产精品久久| 一区二区三区在线免费播放| 五月天久久比比资源色| 国产精品一品二品| 91视频国产观看| 日韩欧美成人激情| 亚洲图片另类小说| 日韩电影在线免费观看| 国产精品18久久久久久久久| 国产精品一区专区| 成人丝袜18视频在线观看| 欧美三级电影一区| 国产三级精品三级在线专区| 亚洲一区二区三区在线| 亚洲一二三区在线观看| 欧美熟乱第一页| 91精品麻豆日日躁夜夜躁| 欧美视频日韩视频| 久久久久青草大香线综合精品| 亚洲黄色小说网站| 国内精品久久久久影院薰衣草| 日韩午夜激情视频| 国产精品免费久久| 久久99久久久久| 欧美久久高跟鞋激| 亚洲成年人网站在线观看| 国产成人免费av在线| 日韩一区二区免费电影| 亚洲九九爱视频| eeuss国产一区二区三区| 久久免费偷拍视频| 男人的j进女人的j一区| 色噜噜久久综合| 中文字幕一区av| 91污在线观看| 777精品伊人久久久久大香线蕉| 成人在线综合网站| 国产精品系列在线| 国产精品午夜春色av| 午夜欧美2019年伦理| 日韩一区二区精品葵司在线| 国模娜娜一区二区三区| 国产欧美一区二区精品性色超碰| aaa亚洲精品一二三区| 亚洲综合丁香婷婷六月香| 欧美一级日韩免费不卡| 日本中文字幕一区二区视频|