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

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

?? dateaxis.java

?? Web圖形化的Java庫(kù)
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * 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., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -------------
 * DateAxis.java
 * -------------
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert;
 * Contributor(s):   Jonathan Nash;
 *                   David Li;
 *                   Michael Rauch;
 *                   Bill Kelemen;
 *                   Pawel Pabis;
 *
 * $Id: DateAxis.java,v 1.27 2003/09/11 07:41:53 mungady Exp $
 *
 * Changes (from 23-Jun-2001)
 * --------------------------
 * 23-Jun-2001 : Modified to work with null data source (DG);
 * 18-Sep-2001 : Updated header (DG);
 * 27-Nov-2001 : Changed constructors from public to protected, updated Javadoc comments (DG);
 * 16-Jan-2002 : Added an optional crosshair, based on the implementation by Jonathan Nash (DG);
 * 26-Feb-2002 : Updated import statements (DG);
 * 22-Apr-2002 : Added a setRange() method (DG);
 * 25-Jun-2002 : Removed redundant local variable (DG);
 * 25-Jul-2002 : Changed order of parameters in ValueAxis constructor (DG);
 * 21-Aug-2002 : The setTickUnit(...) method now turns off auto-tick unit selection (fix for
 *               bug id 528885) (DG);
 * 05-Sep-2002 : Updated the constructors to reflect changes in the Axis class (DG);
 * 18-Sep-2002 : Fixed errors reported by Checkstyle (DG);
 * 25-Sep-2002 : Added new setRange(...) methods, and deprecated setAxisRange(...) (DG);
 * 04-Oct-2002 : Changed auto tick selection to parallel number axis classes (DG);
 * 24-Oct-2002 : Added a date format override (DG);
 * 08-Nov-2002 : Moved to new package com.jrefinery.chart.axis (DG);
 * 14-Jan-2003 : Changed autoRangeMinimumSize from Number --> double, moved crosshair settings
 *               to the plot (DG);
 * 15-Jan-2003 : Removed anchor date (DG);
 * 20-Jan-2003 : Removed unnecessary constructors (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 02-May-2003 : Added additional units to createStandardDateTickUnits() method, as suggested
 *               by mhilpert in bug report 723187 (DG);
 * 13-May-2003 : Merged HorizontalDateAxis and VerticalDateAxis (DG);
 * 24-May-2003 : Added support for underlying timeline for SegmentedTimeline (BK);
 * 16-Jul-2003 : Applied patch from Pawel Pabis to fix overlapping dates (DG);
 * 22-Jul-2003 : Applied patch from Pawel Pabis for monthly ticks (DG);
 * 25-Jul-2003 : Fixed bug 777561 and 777586 (DG);
 * 13-Aug-2003 : Implemented Cloneable and added equals(...) method (DG);
 * 02-Sep-2003 : Fixes for bug report 790506 (DG);
 * 04-Sep-2003 : Fixed tick label alignment when axis appears at the top (DG);
 * 10-Sep-2003 : Fixes for segmented timeline (DG);
 *
 */

package org.jfree.chart.axis;

import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.font.FontRenderContext;
import java.awt.font.LineMetrics;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;

import org.jfree.chart.event.AxisChangeEvent;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.ValueAxisPlot;
import org.jfree.data.DateRange;
import org.jfree.data.Range;
import org.jfree.data.time.Month;
import org.jfree.data.time.RegularTimePeriod;
import org.jfree.data.time.Year;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RefineryUtilities;
import org.jfree.util.ObjectUtils;

/**
 * The base class for axes that display dates.
 * <P>
 * You will find it easier to understand how this axis works if you bear in mind that it really
 * displays/measures integer (or long) data, where the integers are milliseconds since midnight,
 * 1-Jan-1970.  When displaying tick labels, the millisecond values are converted back to dates
 * using a <code>DateFormat</code> instance.
 * <P>
 * You can also create a {@link org.jfree.chart.axis.Timeline} and supply in the
 * constructor to create an axis that only contains certain domain values. For example,
 * this allows you to create a Date axis that only contains working days.
 *
 * @author David Gilbert
 * @author Bill Kelemen
 */
public class DateAxis extends ValueAxis implements Cloneable, Serializable {

    /** The default axis range. */
    public static final DateRange DEFAULT_DATE_RANGE = new DateRange();

    /** The default minimum auto range size. */
    public static final double DEFAULT_AUTO_RANGE_MINIMUM_SIZE_IN_MILLISECONDS = 2.0;

    /** The default date tick unit. */
    public static final DateTickUnit DEFAULT_DATE_TICK_UNIT
        = new DateTickUnit(DateTickUnit.DAY, 1, new SimpleDateFormat());

    /** The default anchor date. */
    public static final Date DEFAULT_ANCHOR_DATE = new Date();

    /** The current tick unit. */
    private DateTickUnit tickUnit;

    /** The override date format. */
    private DateFormat dateFormatOverride;

    /** Tick marks can be displayed at the start or the middle of the time period. */
    private DateTickMarkPosition tickMarkPosition = DateTickMarkPosition.MIDDLE;

    /** 
     * A timeline that includes all milliseconds (as defined by java.util.Date) in
     * the real time line. 
     */
    private static class DefaultTimeline implements Timeline, Serializable {

        /**
         * Converts a millisecond into a timeline value.
         *
         * @param millisecond  the millisecond.
         *
         * @return The timeline value.
         */
        public long toTimelineValue(long millisecond) {
            return millisecond;
        }

        /**
         * Converts a date into a timeline value.
         *
         * @param date  the domain value.
         *
         * @return The timeline value.
         */
        public long toTimelineValue(Date date) {
            return date.getTime();
        }

        /**
         * Converts a timeline value into a millisecond (as encoded by java.util.Date).
         *
         * @param value  the value.
         *
         * @return The millisecond.
         */
        public long toMillisecond(long value) {
            return value;
        }

        /**
         * Returns <code>true</code> if the timeline includes the specified domain value.
         *
         * @param millisecond  the millisecond.
         *
         * @return <code>true</code>.
         */
        public boolean containsDomainValue(long millisecond) {
            return true;
        }

        /**
         * Returns <code>true</code> if the timeline includes the specified domain value.
         *
         * @param date  the date.
         *
         * @return <code>true</code>.
         */
        public boolean containsDomainValue(Date date) {
            return true;
        }

        /**
         * Returns <code>true</code> if the timeline includes the specified domain value range.
         *
         * @param from  the start value.
         * @param to  the end value.
         *
         * @return <code>true</code>.
         */
        public boolean containsDomainRange(long from, long to) {
            return true;
        }

        /**
         * Returns <code>true</code> if the timeline includes the specified domain value range.
         *
         * @param from  the start date.
         * @param to  the end date.
         *
         * @return <code>true</code>.
         */
        public boolean containsDomainRange(Date from, Date to) {
            return true;
        }

        /**
         * Tests an object for equality with this instance.
         * 
         * @param object  the object.
         * 
         * @return A boolean.
         */        
        public boolean equals(Object object) {
            
            if (object == null) {
                return false;
            }
            
            if (object == this) {
                return true;
            }
            
            if (object instanceof DefaultTimeline) {
                return true;
            }
            
            return false;
            
        }
    };

    /** A static default timeline shared by all standard DateAxis */
    private static final Timeline DEFAULT_TIMELINE = new DefaultTimeline();

    /** Our underlying timeline. */
    private Timeline timeline;

    /**
     * Tests an object for equality with this instance.
     * 
     * @param object  the object to test.
     * 
     * @return A boolean.
     */
    public boolean equals(Object object) {
        
        if (object == null) {
            return false;        
        }
        
        if (object == this) {
            return true;
        }
        
        if (object instanceof DateAxis) {
            DateAxis axis = (DateAxis) object;    

            boolean b0 = ObjectUtils.equal(this.tickUnit, axis.tickUnit);
            boolean b1 = ObjectUtils.equal(this.dateFormatOverride, axis.dateFormatOverride);
            boolean b2 = ObjectUtils.equal(this.tickMarkPosition, axis.tickMarkPosition);
            boolean b3 = ObjectUtils.equal(this.timeline, axis.timeline);
            return b0 && b1 && b2 && b3;
            
        }
        
        return false;
    }

    /**
     * Default constructor.
     */
    public DateAxis() {
        this(null);    
    }
    
    /**
     * Creates a date axis.
     *
     * @param label  the axis label (<code>null</code> permitted).
     */
    public DateAxis(String label) {
        this(label, DEFAULT_TIMELINE);
    }

    /**
     * Creates a date axis. A timeline is specified for the axis. This allows special
     * transformations to occure between a domain of values and the values included
     * in the axis.
     *
     * @see org.jfree.chart.axis.SegmentedTimeline
     *
     * @param label  the axis label (<code>null</code> permitted).
     * @param timeline  the underlying timeline to use for the axis.
     */
    public DateAxis(String label, Timeline timeline) {

        super(label, DateAxis.createStandardDateTickUnits());

        setTickUnit(DateAxis.DEFAULT_DATE_TICK_UNIT, false, false);
       // setAnchorDate(DateAxis.DEFAULT_ANCHOR_DATE);
        setAutoRangeMinimumSize(DEFAULT_AUTO_RANGE_MINIMUM_SIZE_IN_MILLISECONDS);
        setRange(DEFAULT_DATE_RANGE, false, false);
        this.dateFormatOverride = null;
        this.timeline = timeline;

    }

    /**
     * Returns the underlying timeline used by this axis.
     *
     * @return The timeline.
     */
    public Timeline getTimeline() {
        return this.timeline;
    }

    /**
     * Sets the underlying timeline to use for this axis.
     * <P>
     * If the timeline is changed, an {@link AxisChangeEvent} is sent to all
     * registered listeners.\
     *
     * @param timeline  the new timeline.
     */
    public void setTimeline(Timeline timeline) {
        if (this.timeline != timeline) {
            this.timeline = timeline;
            notifyListeners(new AxisChangeEvent(this));
        }
    }

    /**
     * Returns the tick unit for the axis.
     *
     * @return the tick unit for the axis.
     */
    public DateTickUnit getTickUnit() {
        return tickUnit;
    }

    /**
     * Sets the tick unit for the axis.  The auto-tick-unit-selection flag is set to
     * <code>false</code>, and registered listeners are notified that the axis has been changed.
     *
     * @param unit  the new tick unit.
     */
    public void setTickUnit(DateTickUnit unit) {
        setTickUnit(unit, true, true);
    }

    /**
     * Sets the tick unit attribute without any other side effects.
     *
     * @param unit  the new tick unit.
     * @param notify  notify registered listeners?
     * @param turnOffAutoSelection  turn off auto selection?
     */
    public void setTickUnit(DateTickUnit unit, boolean notify, boolean turnOffAutoSelection) {

        this.tickUnit = unit;
        if (turnOffAutoSelection) {
            setAutoTickUnitSelection(false, false);
        }
        if (notify) {
            notifyListeners(new AxisChangeEvent(this));
        }

    }

    /**
     * Returns the date format override.  If this is non-null, then it will be used to format
     * the dates on the axis.
     *
     * @return the date format override.
     */
    public DateFormat getDateFormatOverride() {
        return this.dateFormatOverride;
    }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天综合天天综合色| 777奇米四色成人影色区| 久久综合九色综合97婷婷女人| 亚洲成人av免费| 在线观看日韩电影| 一区二区三区在线视频播放| 91美女在线看| 夜夜爽夜夜爽精品视频| 色婷婷久久久综合中文字幕| 亚洲黄色尤物视频| 欧美在线免费观看亚洲| 亚洲狠狠爱一区二区三区| 精品视频123区在线观看| 亚洲成av人片一区二区| 欧美一区二区大片| 久久精品国产成人一区二区三区| 欧美草草影院在线视频| 久久99国产精品成人| 2020日本不卡一区二区视频| 国产中文字幕一区| 国产日韩欧美不卡在线| 成人精品在线视频观看| ㊣最新国产の精品bt伙计久久| 91丨九色丨蝌蚪丨老版| 亚洲综合在线五月| 884aa四虎影成人精品一区| 免费看日韩精品| 久久综合给合久久狠狠狠97色69| 国产精品一二二区| 国产精品成人网| 色婷婷一区二区| 日韩激情视频在线观看| 久久综合久久鬼色中文字| 国产不卡免费视频| 亚洲另类中文字| 欧美一区二区视频观看视频| 国产一区二区三区黄视频 | 成人av影院在线| 国产精品国产三级国产| 欧美伊人久久久久久午夜久久久久| 天天操天天综合网| 欧美精品一区二区蜜臀亚洲| 国产福利视频一区二区三区| 亚洲色图视频免费播放| 91精品国产综合久久久蜜臀粉嫩| 韩国一区二区三区| 国产精品麻豆网站| 欧美喷水一区二区| 国产在线精品一区二区不卡了| 国产精品国产三级国产普通话99| 欧美日韩精品一区二区天天拍小说 | 日韩免费视频线观看| 激情另类小说区图片区视频区| 国产精品丝袜91| 欧美日韩精品一区二区在线播放| 韩国av一区二区三区| 亚洲美女偷拍久久| 日韩午夜三级在线| 成人av在线资源网站| 日韩avvvv在线播放| 国产精品嫩草影院av蜜臀| 欧美日韩精品高清| 国产高清成人在线| 亚洲国产视频一区| 久久久久久久电影| 欧美日韩精品免费| 不卡视频在线观看| 美国精品在线观看| 亚洲精品乱码久久久久久黑人| 日韩欧美色综合网站| 91丨九色丨黑人外教| 久久av资源站| 亚洲第一成人在线| 国产精品国产自产拍在线| 日韩一区二区三区在线观看| 99久久99久久久精品齐齐| 男人的天堂久久精品| 亚洲日本成人在线观看| 久久婷婷成人综合色| 欧美精品一二三| youjizz国产精品| 激情六月婷婷综合| 午夜伦欧美伦电影理论片| 欧美国产乱子伦 | 中文字幕一区在线| 精品国产一区二区三区不卡| 欧美午夜片在线看| aa级大片欧美| 国产一区二区三区最好精华液| 午夜精品在线看| 亚洲美女少妇撒尿| 中文字幕乱码一区二区免费| 日韩精品在线一区| 欧美精品在线观看播放| 在线亚洲一区观看| 成人av高清在线| 国产麻豆精品在线观看| 另类小说一区二区三区| 亚洲网友自拍偷拍| 亚洲狼人国产精品| 中文字幕一区二区三区色视频| xfplay精品久久| 欧美不卡激情三级在线观看| 欧美日韩aaa| 欧美视频一区在线观看| 91久久人澡人人添人人爽欧美| 成人深夜福利app| 国产精一区二区三区| 激情综合色丁香一区二区| 日本欧美韩国一区三区| 性久久久久久久久久久久| 成人小视频在线观看| 国内久久婷婷综合| 久久精品噜噜噜成人88aⅴ| 日韩成人免费电影| 图片区小说区区亚洲影院| 亚洲v精品v日韩v欧美v专区| 亚洲国产精品久久一线不卡| 亚洲综合色成人| 亚洲一卡二卡三卡四卡五卡| 亚洲男女一区二区三区| 亚洲精品亚洲人成人网在线播放| 亚洲人成网站在线| 亚洲免费av观看| 亚洲卡通欧美制服中文| 亚洲乱码精品一二三四区日韩在线| 综合亚洲深深色噜噜狠狠网站| 一区在线中文字幕| 亚洲欧洲中文日韩久久av乱码| 18成人在线观看| 亚洲精品国产视频| 亚洲午夜三级在线| 三级久久三级久久| 免费成人av在线| 美女网站一区二区| 韩国精品免费视频| 国产美女在线观看一区| 顶级嫩模精品视频在线看| 不卡一区在线观看| 91精品办公室少妇高潮对白| 欧美日韩一区二区欧美激情| 91麻豆精品国产自产在线| 日韩免费观看高清完整版 | 亚洲资源中文字幕| 偷拍日韩校园综合在线| 日韩av不卡在线观看| 紧缚奴在线一区二区三区| 国产精品123区| 99re热视频这里只精品| 欧亚一区二区三区| 91精品国产高清一区二区三区蜜臀| 日韩精品在线网站| 欧美经典一区二区| 亚洲三级电影网站| 丝袜诱惑制服诱惑色一区在线观看 | 亚洲一区二区影院| 午夜欧美视频在线观看| 久久超级碰视频| 成人午夜视频福利| 91精彩视频在线观看| 91精品免费在线观看| 久久网这里都是精品| 亚洲欧洲精品天堂一级| 亚洲一区欧美一区| 久久超级碰视频| 99久久精品费精品国产一区二区| 欧美在线不卡一区| 日韩三级中文字幕| 欧美激情在线观看视频免费| 亚洲综合久久久| 精彩视频一区二区三区| 91丨porny丨户外露出| 欧美日韩精品一区视频| 久久嫩草精品久久久久| 亚洲男女一区二区三区| 久久精品国产成人一区二区三区| 不卡影院免费观看| 91精品国产综合久久久久| 国产日韩精品一区二区浪潮av| 亚洲精品国产成人久久av盗摄| 另类人妖一区二区av| 97久久超碰国产精品电影| 欧美一区二区三区在线观看| 国产精品午夜免费| 日韩av在线播放中文字幕| 成人黄色电影在线| 欧美一级欧美三级| 亚洲欧洲日韩av| 美女mm1313爽爽久久久蜜臀| 91首页免费视频| 精品美女一区二区三区| 亚洲曰韩产成在线| 日韩欧美国产电影| 亚洲品质自拍视频| 国产一区啦啦啦在线观看| 欧美私人免费视频| 中文字幕高清不卡| 免费看欧美美女黄的网站| 97se亚洲国产综合自在线| 精品国产污污免费网站入口|