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

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

?? candlestickrenderer.java

?? jfreechart1.0.1 jsp繪制圖表的開(kāi)發(fā)包
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* ===========================================================
 * 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.]
 *
 * ------------------------
 * CandlestickRenderer.java
 * ------------------------
 * (C) Copyright 2001-2004, by Object Refinery Limited.
 *
 * Original Authors:  David Gilbert (for Object Refinery Limited);
 *                    Sylvain Vieujot;
 * Contributor(s):    Richard Atkinson;
 *                    Christian W. Zuckschwerdt;
 *                    Jerome Fisher;
 *
 * $Id: CandlestickRenderer.java,v 1.7.2.1 2005/10/25 20:56:21 mungady Exp $
 *
 * Changes
 * -------
 * 13-Dec-2001 : Version 1.  Based on code in the (now redundant) 
 *               CandlestickPlot class, written by Sylvain Vieujot (DG);
 * 23-Jan-2002 : Added DrawInfo parameter to drawItem() method (DG);
 * 28-Mar-2002 : Added a property change listener mechanism so that renderers 
 *               no longer need to be immutable.  Added properties for up and 
 *               down colors (DG);
 * 04-Apr-2002 : Updated with new automatic width calculation and optional 
 *               volume display, contributed by Sylvain Vieujot (DG);
 * 09-Apr-2002 : Removed translatedRangeZero from the drawItem() method, and 
 *               changed the return type of the drawItem method to void, 
 *               reflecting a change in the XYItemRenderer interface.  Added 
 *               tooltip code to drawItem() method (DG);
 * 25-Jun-2002 : Removed redundant code (DG);
 * 05-Aug-2002 : Small modification to drawItem method to support URLs for HTML 
 *               image maps (RA);
 * 19-Sep-2002 : Fixed errors reported by Checkstyle (DG);
 * 25-Mar-2003 : Implemented Serializable (DG);
 * 01-May-2003 : Modified drawItem() method signature (DG);
 * 30-Jun-2003 : Added support for PlotOrientation (for completeness, this 
 *               renderer is unlikely to be used with a HORIZONTAL 
 *               orientation) (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 20-Aug-2003 : Implemented Cloneable and PublicCloneable (DG);
 * 29-Aug-2003 : Moved maxVolume calculation to initialise method (see bug 
 *               report 796619) (DG);
 * 02-Sep-2003 : Added maxCandleWidthInMilliseconds as workaround for bug 
 *               796621 (DG);
 * 08-Sep-2003 : Changed ValueAxis API (DG);
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 13-Oct-2003 : Applied patch from Jerome Fisher to improve auto width 
 *               calculations (DG);
 * 23-Dec-2003 : Fixed bug where up and down paint are used incorrectly (DG);
 * 25-Feb-2004 : Replaced CrosshairInfo with CrosshairState (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 
 */

package org.jfree.chart.renderer.xy;

import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.entity.XYItemEntity;
import org.jfree.chart.event.RendererChangeEvent;
import org.jfree.chart.labels.HighLowItemLabelGenerator;
import org.jfree.chart.labels.XYToolTipGenerator;
import org.jfree.chart.plot.CrosshairState;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.xy.IntervalXYDataset;
import org.jfree.data.xy.OHLCDataset;
import org.jfree.data.xy.XYDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.PublicCloneable;

/**
 * A renderer that draws candlesticks on an {@link XYPlot} (requires a 
 * {@link OHLCDataset}).
 * <P>
 * This renderer does not include code to calculate the crosshair point for the 
 * plot.
 *
 * @author Sylvain Vieujot
 */
public class CandlestickRenderer extends AbstractXYItemRenderer 
                                 implements XYItemRenderer, 
                                            Cloneable,
                                            PublicCloneable,
                                            Serializable {
            
    /** For serialization. */
    private static final long serialVersionUID = 50390395841817121L;
    
    /** The average width method. */                                          
    public static final int WIDTHMETHOD_AVERAGE = 0;
    
    /** The smallest width method. */
    public static final int WIDTHMETHOD_SMALLEST = 1;
    
    /** The interval data method. */
    public static final int WIDTHMETHOD_INTERVALDATA = 2;

    /** The method of automatically calculating the candle width. */
    private int autoWidthMethod = WIDTHMETHOD_AVERAGE;

    /** 
     * The number (generally between 0.0 and 1.0) by which the available space 
     * automatically calculated for the candles will be multiplied to determine
     * the actual width to use. 
     */
    private double autoWidthFactor = 4.5 / 7;

    /** The minimum gap between one candle and the next */
    private double autoWidthGap = 0.0;

    /** The candle width. */
    private double candleWidth;
    
    /** The maximum candlewidth in milliseconds. */
    private double maxCandleWidthInMilliseconds = 1000.0 * 60.0 * 60.0 * 20.0;
    
    /** Temporary storage for the maximum candle width. */
    private double maxCandleWidth;

    /** 
     * The paint used to fill the candle when the price moved up from open to 
     * close. 
     */
    private transient Paint upPaint;

    /** 
     * The paint used to fill the candle when the price moved down from open 
     * to close. 
     */
    private transient Paint downPaint;

    /** A flag controlling whether or not volume bars are drawn on the chart. */
    private boolean drawVolume;
    
    /** Temporary storage for the maximum volume. */
    private transient double maxVolume;

    /**
     * Creates a new renderer for candlestick charts.
     */
    public CandlestickRenderer() {
        this(-1.0);
    }

    /**
     * Creates a new renderer for candlestick charts.
     * <P>
     * Use -1 for the candle width if you prefer the width to be calculated 
     * automatically.
     *
     * @param candleWidth  The candle width.
     */
    public CandlestickRenderer(double candleWidth) {
        this(candleWidth, true, new HighLowItemLabelGenerator());
    }

    /**
     * Creates a new renderer for candlestick charts.
     * <P>
     * Use -1 for the candle width if you prefer the width to be calculated 
     * automatically.
     *
     * @param candleWidth  the candle width.
     * @param drawVolume  a flag indicating whether or not volume bars should 
     *                    be drawn.
     * @param toolTipGenerator  the tool tip generator. <code>null</code> is 
     *                          none.
     */
    public CandlestickRenderer(double candleWidth, boolean drawVolume,
                               XYToolTipGenerator toolTipGenerator) {

        super();
        setToolTipGenerator(toolTipGenerator);
        this.candleWidth = candleWidth;
        this.drawVolume = drawVolume;
        this.upPaint = Color.green;
        this.downPaint = Color.red;

    }

    /**
     * Returns the width of each candle.
     *
     * @return The candle width.
     * 
     * @see #setCandleWidth(double)
     */
    public double getCandleWidth() {
        return this.candleWidth;
    }

    /**
     * Sets the candle width.
     * <P>
     * If you set the width to a negative value, the renderer will calculate
     * the candle width automatically based on the space available on the chart.
     *
     * @param width  The width.
     * @see #setAutoWidthMethod(int)
     * @see #setAutoWidthGap(double)
     * @see #setAutoWidthFactor(double)
     * @see #setMaxCandleWidthInMilliseconds(double)
     */
    public void setCandleWidth(double width) {
        if (width != this.candleWidth) {
            this.candleWidth = width;
            notifyListeners(new RendererChangeEvent(this));
        }
    }

    /**
     * Returns the maximum width (in milliseconds) of each candle.
     *
     * @return The maximum candle width in milliseconds.
     */
    public double getMaxCandleWidthInMilliseconds() {
        return this.maxCandleWidthInMilliseconds;
    }

    /**
     * Sets the maximum candle width (in milliseconds).  
     *
     * @param millis  The maximum width.
     * @see #setCandleWidth(double)
     * @see #setAutoWidthMethod(int)
     * @see #setAutoWidthGap(double)
     * @see #setAutoWidthFactor(double)
     */
    public void setMaxCandleWidthInMilliseconds(double millis) {
        this.maxCandleWidthInMilliseconds = millis;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Returns the method of automatically calculating the candle width.
     *
     * @return The method of automatically calculating the candle width.
     */
    public int getAutoWidthMethod() {
        return this.autoWidthMethod;
    }

    /**
     * Sets the method of automatically calculating the candle width.
     * <p>
     * <code>WIDTHMETHOD_AVERAGE</code>: Divides the entire display (ignoring 
     * scale factor) by the number of items, and uses this as the available 
     * width.<br>
     * <code>WIDTHMETHOD_SMALLEST</code>: Checks the interval between each 
     * item, and uses the smallest as the available width.<br>
     * <code>WIDTHMETHOD_INTERVALDATA</code>: Assumes that the dataset supports
     * the IntervalXYDataset interface, and uses the startXValue - endXValue as 
     * the available width.
     * <br>
     *
     * @param autoWidthMethod  The method of automatically calculating the 
     * candle width.
     *
     * @see #WIDTHMETHOD_AVERAGE
     * @see #WIDTHMETHOD_SMALLEST
     * @see #WIDTHMETHOD_INTERVALDATA
     * @see #setCandleWidth(double)
     * @see #setAutoWidthGap(double)
     * @see #setAutoWidthFactor(double)
     * @see #setMaxCandleWidthInMilliseconds(double)
     */
    public void setAutoWidthMethod(int autoWidthMethod) {
        if (this.autoWidthMethod != autoWidthMethod) {
            this.autoWidthMethod = autoWidthMethod;
            notifyListeners(new RendererChangeEvent(this));
        }
    }

    /**
     * Returns the factor by which the available space automatically 
     * calculated for the candles will be multiplied to determine the actual 
     * width to use.
     *
     * @return The width factor (generally between 0.0 and 1.0).
     */
    public double getAutoWidthFactor() {
        return this.autoWidthFactor;
    }

    /**
     * Sets the factor by which the available space automatically calculated 
     * for the candles will be multiplied to determine the actual width to use.
     *
     * @param autoWidthFactor The width factor (generally between 0.0 and 1.0).
     * @see #setCandleWidth(double)
     * @see #setAutoWidthMethod(int)
     * @see #setAutoWidthGap(double)
     * @see #setMaxCandleWidthInMilliseconds(double)
     */
    public void setAutoWidthFactor(double autoWidthFactor) {
        if (this.autoWidthFactor != autoWidthFactor) {
            this.autoWidthFactor = autoWidthFactor;
            notifyListeners(new RendererChangeEvent(this));
        }
    }

    /**
     * Returns the amount of space to leave on the left and right of each 
     * candle when automatically calculating widths.
     *
     * @return The gap.
     */
    public double getAutoWidthGap() {
        return this.autoWidthGap;
    }

    /**
     * Sets the amount of space to leave on the left and right of each candle 
     * when automatically calculating widths.
     *
     * @param autoWidthGap The gap.
     * @see #setCandleWidth(double)
     * @see #setAutoWidthMethod(int)
     * @see #setAutoWidthFactor(double)
     * @see #setMaxCandleWidthInMilliseconds(double)
     */
    public void setAutoWidthGap(double autoWidthGap) {
        if (this.autoWidthGap != autoWidthGap) {
            this.autoWidthGap = autoWidthGap;
            notifyListeners(new RendererChangeEvent(this));
        }
    }

    /**
     * Returns the paint used to fill candles when the price moves up from open
     * to close.
     *
     * @return The paint.
     */
    public Paint getUpPaint() {
        return this.upPaint;
    }

    /**
     * Sets the paint used to fill candles when the price moves up from open
     * to close.
     * <P>
     * Registered property change listeners are notified that the
     * "CandleStickRenderer.upPaint" property has changed.
     *
     * @param paint The paint.
     */
    public void setUpPaint(Paint paint) {
        this.upPaint = paint;
        notifyListeners(new RendererChangeEvent(this));
    }

    /**
     * Returns the paint used to fill candles when the price moves down from
     * open to close.
     *
     * @return The paint.
     */
    public Paint getDownPaint() {
        return this.downPaint;
    }

    /**
     * Sets the paint used to fill candles when the price moves down from open
     * to close.
     * <P>
     * Registered property change listeners are notified that the
     * "CandleStickRenderer.downPaint" property has changed.
     *

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久影视一区二区| 国产亚洲成aⅴ人片在线观看| 亚洲精品日日夜夜| 久久久夜色精品亚洲| 欧美本精品男人aⅴ天堂| 欧美日韩中文国产| 欧美日韩一区二区三区不卡| 欧美日韩精品二区第二页| 欧美日韩国产天堂| 91精品久久久久久久99蜜桃| 日韩亚洲欧美成人一区| 精品少妇一区二区三区视频免付费 | 一区二区三区四区五区视频在线观看| 国产亚洲一区字幕| 国产精品电影院| 自拍av一区二区三区| 一区二区在线观看不卡| 亚洲国产精品久久人人爱| 日日夜夜一区二区| 蜜桃久久av一区| 国产精品一线二线三线| 国产传媒久久文化传媒| 91美女片黄在线观看91美女| 欧美日韩激情一区| 久久丝袜美腿综合| 日韩伦理电影网| 亚洲第一久久影院| 韩国女主播成人在线| 99re亚洲国产精品| 欧美日韩成人综合在线一区二区| 欧美一区二区美女| 精品久久久久av影院| 日韩久久一区二区| 七七婷婷婷婷精品国产| 高清免费成人av| 91美女在线看| 麻豆一区二区三区| 成人美女在线观看| 欧美精品vⅰdeose4hd| 日韩一级成人av| 亚洲人午夜精品天堂一二香蕉| 一区二区高清在线| 久久99精品一区二区三区三区| 免费观看日韩电影| eeuss鲁一区二区三区| 欧美一级高清片在线观看| 最新欧美精品一区二区三区| 视频一区二区三区在线| 白白色亚洲国产精品| 欧美一区二区三区白人| 夜夜嗨av一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 欧美三级日韩三级| 亚洲欧洲av一区二区三区久久| 蜜桃免费网站一区二区三区| 欧美性一二三区| 亚洲欧美日韩国产综合在线 | 91精品国产91久久综合桃花| 中文字幕av一区二区三区高| 美女精品一区二区| 91老师国产黑色丝袜在线| 日本伊人精品一区二区三区观看方式| 精品亚洲aⅴ乱码一区二区三区| 国产精品性做久久久久久| 麻豆国产精品官网| 91精品视频网| 亚洲欧洲精品一区二区三区不卡| 美女视频黄 久久| 在线电影国产精品| 国产精品视频免费| 亚洲777理论| 国产高清在线精品| 久久午夜免费电影| 国产在线精品一区二区夜色 | 欧美亚日韩国产aⅴ精品中极品| 日本一区二区视频在线| 国产麻豆精品theporn| 欧美一区二区三区在线看| 亚洲成人免费影院| 成人开心网精品视频| 久久久久久久久久久久久女国产乱 | 国产精品天干天干在线综合| 国产一区二区在线电影| 久久久不卡影院| 成人午夜电影网站| 中文字幕在线一区免费| 免费成人你懂的| 国产精品综合久久| 欧美韩日一区二区三区| 成人妖精视频yjsp地址| 亚洲视频电影在线| 欧美在线视频不卡| 三级亚洲高清视频| 日韩精品在线网站| 国产激情一区二区三区| 综合色天天鬼久久鬼色| 欧美午夜一区二区三区| 亚洲成人一区二区在线观看| 欧美精品视频www在线观看| 日韩高清一级片| 久久综合色婷婷| 91在线国内视频| 午夜视黄欧洲亚洲| 国产视频一区不卡| 成人免费av网站| 一区二区三区高清在线| 日韩午夜av电影| 盗摄精品av一区二区三区| 一片黄亚洲嫩模| 日韩欧美aaaaaa| 国产suv精品一区二区883| 亚洲精选视频在线| 欧美va天堂va视频va在线| 99re在线精品| 国产一区二区美女诱惑| 亚洲精品欧美激情| 日韩欧美国产1| 欧美激情综合五月色丁香| 欧美三级视频在线| 成人精品一区二区三区四区| 日韩精品乱码av一区二区| 中文字幕av一区二区三区免费看| av在线免费不卡| 久久精品国产99国产| xnxx国产精品| 在线观看国产日韩| 国产成人在线观看免费网站| 亚洲综合视频在线观看| 久久久.com| 欧美另类一区二区三区| a在线播放不卡| 国产精品原创巨作av| 日日夜夜免费精品| 一区二区三区**美女毛片| 精品伦理精品一区| 91啪九色porn原创视频在线观看| 精品一区二区三区不卡| 午夜欧美2019年伦理| 亚洲精品视频在线观看免费| 国产欧美一区二区精品性色| 日韩一级片网址| 欧美日韩大陆一区二区| 在线免费视频一区二区| 国产高清成人在线| 国产精品一二三| 精品午夜久久福利影院| 日韩激情视频网站| 日本午夜精品一区二区三区电影| 日韩精品中文字幕一区| 亚洲r级在线视频| 亚洲国产精品尤物yw在线观看| 一区二区三区在线高清| 国产精品欧美极品| 国产欧美1区2区3区| 欧美电影免费观看完整版| 欧美伦理影视网| 91精品国产一区二区三区| 欧美一区二区三区白人| 91精品国产综合久久香蕉的特点 | 91老师片黄在线观看| 91色视频在线| 在线观看免费一区| 6080午夜不卡| 精品国产乱码久久久久久久久 | 成人一级视频在线观看| 国产在线不卡一区| 风间由美一区二区三区在线观看 | 亚洲精品乱码久久久久久久久| 国产精品日产欧美久久久久| 中文字幕日韩一区二区| 亚洲欧美日本韩国| 欧美一二三区在线观看| 精品国产乱码久久久久久老虎| 欧美日精品一区视频| 欧美一激情一区二区三区| 久久青草国产手机看片福利盒子 | 国产精品免费丝袜| 亚洲欧美日韩人成在线播放| 天天综合色天天综合色h| 韩国成人福利片在线播放| 国产乱码精品1区2区3区| 成人免费视频免费观看| 欧美亚洲国产怡红院影院| 欧美一区二区视频在线观看2022 | 国产精品你懂的在线欣赏| 日韩美女久久久| 香蕉乱码成人久久天堂爱免费| 日日噜噜夜夜狠狠视频欧美人| 国产呦精品一区二区三区网站| www.综合网.com| 正在播放亚洲一区| 久久精品视频一区二区三区| 亚洲一二三四区不卡| 精品一二线国产| 欧美日免费三级在线| 国产精品私人自拍| 亚洲va在线va天堂| 不卡一卡二卡三乱码免费网站| 欧美放荡的少妇| 亚洲欧美乱综合|